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 ".*".
765 files match defined criteria (124,365 lines of code, 100.0% vs. main code):
609 *.js files (89,431 lines of code)
47 *.html files (16,360 lines of code)
63 *.snippets files (12,326 lines of code)
46 *.css files (6,248 lines of code)
" *.js" is biggest, containing 71.91% of code.
" *.css" is smallest, containing 5.02% of code.
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
The following criteria are used to filter files:
files with paths like ".*/_test/.*".
files with paths like ".*_test[.].*".
files with paths like ".*/test/.*".
241 files match defined criteria (66,262 lines of code, 53.3% vs. main code):
157 *.json files (49,293 lines of code)
82 *.js files (16,925 lines of code)
1 *.html files (38 lines of code)
1 *.md files (6 lines of code)
" *.json" is biggest, containing 74.39% of code.
" *.md" is smallest, containing 0.01% 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 ".*([.]|/)webpack([.]|/).*".
files with paths like ".*/package[.]json".
7 files match defined criteria (128 lines of code, 0.1% vs. main code):
4 *.json files (81 lines of code)
2 *.js files (42 lines of code)
1 *.html files (5 lines of code)
" *.json" is biggest, containing 63.28% of code.
" *.html" is smallest, containing 3.91% of code.
Other Code
The following criteria are used to filter files:
files with paths like ".*/additionalObjs[.]json".
files with paths like ".*[.]md".
files with paths like ".*[.]tmtheme".
9 files match defined criteria (189 lines of code, 0.2% vs. main code):
8 *.md files (163 lines of code)
1 *.json files (26 lines of code)
" *.md" is biggest, containing 86.24% of code.
" *.json" is smallest, containing 13.76% of code.
Analyzers
Info about analyzers used for source code examinations.
*.js files are analyzed with JavaScriptAnalyzer:
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
No dependency analysis
*.html 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
*.snippets files are analyzed with DefaultLanguageAnalyzer:
All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
No unit size analysis
No conditional complexity analysis
No dependency analysis
*.css files are analyzed with CssAnalyzer:
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)