epam / fix-antenna-net-core
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
csproj
properties
xsd
targets
resx
txt
gitattributes
xsl
editorconfig
cfg
props
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.

main71837 LOC (51%) 641 files
test59046 LOC (42%) 820 files
generated206 LOC (<1%) 2 files
build and deployment394 LOC (<1%) 6 files
other7135 LOC (5%) 70 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
xsl
targets
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 641 files match defined criteria (71,837 LOC, 100.0% vs. main code):
    • 630 *.cs files (59,857 LOC)
    • 3 *.xml files (9,354 LOC)
    • 4 *.xsd files (2,330 LOC)
    • 1 *.xsl files (242 LOC)
    • 2 *.targets files (31 LOC)
    • 1 *.props files (23 LOC)
  • " *.cs" is biggest, containing 83.32% of LOC.
  • " *.props" is smallest, containing 0.03% of LOC.


*.cs59857 LOC (83%) 630 files
*.xml9354 LOC (13%) 3 files
*.xsd2330 LOC (3%) 4 files
*.xsl242 LOC (<1%) 1 file
*.targets31 LOC (<1%) 2 files
*.props23 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 820 files match defined criteria (59,046 LOC, 82.2% vs. main code):
    • 333 *.cs files (35,500 LOC)
    • 472 *.xml files (21,465 LOC)
    • 8 *.csproj files (2,039 LOC)
    • 1 *.inc files (31 LOC)
    • 1 *.cfg files (6 LOC)
    • 5 *.bat files (5 LOC)
  • " *.cs" is biggest, containing 60.12% of LOC.
  • " *.bat" is smallest, containing 0.01% of LOC.


*.cs35500 LOC (60%) 333 files
*.xml21465 LOC (36%) 472 files
*.csproj2039 LOC (3%) 8 files
*.inc31 LOC (<1%) 1 file
*.cfg6 LOC (<1%) 1 file
*.bat5 LOC (<1%) 5 files
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 (206 LOC, 0.3% vs. main code). All matches are in *.cs files.


*.cs206 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 ".*[.]csproj".
    • 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 (394 LOC, 0.5% vs. main code). All matches are in *.csproj files.


*.csproj394 LOC (100%) 6 files
Other Code
properties
txt
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 70 files match defined criteria (7,135 LOC, 9.9% vs. main code):
    • 25 *.md files (4,274 LOC)
    • 22 *.properties files (1,160 LOC)
    • 10 *.cs files (952 LOC)
    • 1 *.txt files (503 LOC)
    • 9 *.csproj files (222 LOC)
    • 3 *.json files (24 LOC)
  • " *.md" is biggest, containing 59.9% of LOC.
  • " *.json" is smallest, containing 0.34% of LOC.


*.md4274 LOC (59%) 25 files
*.properties1160 LOC (16%) 22 files
*.cs952 LOC (13%) 10 files
*.txt503 LOC (7%) 1 file
*.csproj222 LOC (3%) 9 files
*.json24 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.
  • *.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)
  • *.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
  • *.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
  • *.xsl 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
  • *.targets 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
  • *.props 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


2025-01-10 14:23