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.
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.
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.
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.
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)