apache / manifoldcf-integration-sharepoint-2013
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
txt
aspx
asmx
wsdl
csproj
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main743 LOC (38%) 7 files
test0 LOC (0%) 0 files
generated287 LOC (14%) 2 files
build and deployment334 LOC (17%) 6 files
other569 LOC (29%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
wsdl
aspx
asmx
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 7 files match defined criteria (743 LOC, 100.0% vs. main code):
    • 1 *.wsdl files (289 LOC)
    • 2 *.cs files (258 LOC)
    • 2 *.aspx files (170 LOC)
    • 1 *.asmx files (15 LOC)
    • 1 *.xml files (11 LOC)
  • " *.wsdl" is biggest, containing 38.9% of LOC.
  • " *.xml" is smallest, containing 1.48% of LOC.


*.wsdl289 LOC (38%) 1 file
*.cs258 LOC (34%) 2 files
*.aspx170 LOC (22%) 2 files
*.asmx15 LOC (2%) 1 file
*.xml11 LOC (1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 2 files match defined criteria (287 LOC, 38.6% vs. main code). All matches are in *.cs files.


*.cs287 LOC (100%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]bat".
  • 6 files match defined criteria (334 LOC, 45.0% vs. main code):
    • 1 *.xml files (117 LOC)
    • 1 *.csproj files (116 LOC)
    • 4 *.bat files (101 LOC)
  • " *.xml" is biggest, containing 35.03% of LOC.
  • " *.bat" is smallest, containing 30.24% of LOC.


*.xml117 LOC (35%) 1 file
*.csproj116 LOC (34%) 1 file
*.bat101 LOC (30%) 4 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 10 files match defined criteria (569 LOC, 76.6% vs. main code). All matches are in *.txt files.


*.txt569 LOC (100%) 10 files
Analyzers
Info about analyzers used for source code examinations.
  • *.wsdl files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.cs files are analyzed with CSharpAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis (based on namespace heuristics)
  • *.aspx files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.asmx files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.xml files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2023-08-10 21:13