ScpToolkit
Source Code Overview

Source Code Analysis Scope
Files includes and excluded from analyses
  • 12 extensions are included in analyses: cs, xaml, csproj, cpp, h, txt, xml, manifest, md, XML, gitattributes, gitignore
  • 1 criterion is used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (0 files).
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.

main60177 LOC (85%) 352 files
other5947 LOC (8%) 13 files
build and deployment4081 LOC (5%) 31 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 352 files match defined criteria (60,177 lines of code, 100.0% vs. main code):
    • 70 *.xaml files (32,032 lines of code)
    • 234 *.cs files (21,335 lines of code)
    • 20 *.cpp files (4,191 lines of code)
    • 10 *.xml files (1,487 lines of code)
    • 18 *.h files (1,132 lines of code)
  • " *.xaml" is biggest, containing 53.23% of code.
  • " *.h" is smallest, containing 1.88% of code.


*.xaml32032 LOC (53%) 70 files
*.cs21335 LOC (35%) 234 files
*.cpp4191 LOC (6%) 20 files
*.xml1487 LOC (2%) 10 files
*.h1132 LOC (1%) 18 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]manifest".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*[.]gitignore".
    • files with paths like ".*[.]gitattributes".
  • 31 files match defined criteria (4,081 lines of code, 6.8% vs. main code):
    • 23 *.csproj files (3,742 lines of code)
    • 8 *.manifest files (339 lines of code)
  • " *.csproj" is biggest, containing 91.69% of code.
  • " *.manifest" is smallest, containing 8.31% of code.


*.csproj3742 LOC (91%) 23 files
*.manifest339 LOC (8%) 8 files
Other Code
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
  • 13 files match defined criteria (5,947 lines of code, 9.9% vs. main code):
    • 11 *.txt files (5,338 lines of code)
    • 2 *.md files (609 lines of code)
  • " *.txt" is biggest, containing 89.76% of code.
  • " *.md" is smallest, containing 10.24% of code.


*.txt5338 LOC (89%) 11 files
*.md609 LOC (10%) 2 files
Analyzers
Info about analyzers used for source code examinations.
  • *.xaml 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)
  • *.cpp files are analyzed with CppAnalyzer:
    • 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
  • *.h files are analyzed with CppAnalyzer:
    • 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


2020-09-12 21:03