JetBrains / mnemonics
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
fs
nuspec
dotsettings
txt
xsd
csproj
gitattributes
resx
vbproj
fsproj
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.

main10706 LOC (92%) 26 files
test0 LOC (0%) 0 files
generated432 LOC (3%) 2 files
build and deployment260 LOC (2%) 6 files
other202 LOC (1%) 2 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
fs
fsproj
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 26 files match defined criteria (10,706 LOC, 100.0% vs. main code):
    • 2 *.xml files (8,977 LOC)
    • 11 *.fs files (1,390 LOC)
    • 5 *.vb files (103 LOC)
    • 1 *.fsproj files (94 LOC)
    • 2 *.xsd files (90 LOC)
    • 3 *.cs files (41 LOC)
    • 1 *.py files (7 LOC)
    • 1 *.kt files (4 LOC)
  • " *.xml" is biggest, containing 83.85% of LOC.
  • " *.kt" is smallest, containing 0.04% of LOC.


*.xml8977 LOC (83%) 2 files
*.fs1390 LOC (12%) 11 files
*.vb103 LOC (<1%) 5 files
*.fsproj94 LOC (<1%) 1 file
*.xsd90 LOC (<1%) 2 files
*.cs41 LOC (<1%) 3 files
*.py7 LOC (<1%) 1 file
*.kt4 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 (432 LOC, 4.0% vs. main code). All matches are in *.cs files.


*.cs432 LOC (100%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
vbproj
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]vbproj".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 6 files match defined criteria (260 LOC, 2.4% vs. main code):
    • 2 *.csproj files (107 LOC)
    • 1 *.vbproj files (105 LOC)
    • 2 *.nuspec files (47 LOC)
    • 1 *.bat files (1 LOC)
  • " *.csproj" is biggest, containing 41.15% of LOC.
  • " *.bat" is smallest, containing 0.38% of LOC.


*.csproj107 LOC (41%) 2 files
*.vbproj105 LOC (40%) 1 file
*.nuspec47 LOC (18%) 2 files
*.bat1 LOC (<1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (202 LOC, 1.9% vs. main code):
    • 1 *.txt files (169 LOC)
    • 1 *.md files (33 LOC)
  • " *.txt" is biggest, containing 83.66% of LOC.
  • " *.md" is smallest, containing 16.34% of LOC.


*.txt169 LOC (83%) 1 file
*.md33 LOC (16%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.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
  • *.fs 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
  • *.vb files are analyzed with VisualBasicAnalyzer:
    • 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
  • *.fsproj 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
  • *.xsd 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)
  • *.py files are analyzed with PythonAnalyzer:
    • 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
    • Basic heuristic dependency analysis
  • *.kt files are analyzed with KotlinAnalyzer:
    • 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
    • Basic heuristic dependency analysis (based on imports and package statements)


2026-01-18 16:36