epam / Wilma
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
txt
properties
xsl
csproj
xsd
gitattributes
nuspec
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.

main41055 LOC (49%) 830 files
test29450 LOC (35%) 467 files
generated0 LOC (0%) 0 files
build and deployment1522 LOC (1%) 59 files
other10995 LOC (13%) 286 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 830 files match defined criteria (41,055 LOC, 100.0% vs. main code):
    • 726 *.java files (25,642 LOC)
    • 11 *.css files (12,130 LOC)
    • 32 *.cs files (1,017 LOC)
    • 34 *.xml files (846 LOC)
    • 9 *.html files (616 LOC)
    • 7 *.js files (559 LOC)
    • 7 *.xsl files (122 LOC)
    • 2 *.jsp files (87 LOC)
    • 2 *.xsd files (36 LOC)
  • " *.java" is biggest, containing 62.46% of LOC.
  • " *.xsd" is smallest, containing 0.09% of LOC.


*.java25642 LOC (62%) 726 files
*.css12130 LOC (29%) 11 files
*.cs1017 LOC (2%) 32 files
*.xml846 LOC (2%) 34 files
*.html616 LOC (1%) 9 files
*.js559 LOC (1%) 7 files
*.xsl122 LOC (<1%) 7 files
*.jsp87 LOC (<1%) 2 files
*.xsd36 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
  • 467 files match defined criteria (29,450 LOC, 71.7% vs. main code):
    • 448 *.java files (28,679 LOC)
    • 5 *.cs files (326 LOC)
    • 9 *.xml files (213 LOC)
    • 1 *.csproj files (123 LOC)
    • 4 *.gradle files (109 LOC)
  • " *.java" is biggest, containing 97.38% of LOC.
  • " *.gradle" is smallest, containing 0.37% of LOC.


*.java28679 LOC (97%) 448 files
*.cs326 LOC (1%) 5 files
*.xml213 LOC (<1%) 9 files
*.csproj123 LOC (<1%) 1 file
*.gradle109 LOC (<1%) 4 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]bat".
  • 59 files match defined criteria (1,522 LOC, 3.7% vs. main code):
    • 49 *.gradle files (987 LOC)
    • 3 *.csproj files (344 LOC)
    • 5 *.sh files (97 LOC)
    • 1 *.bat files (71 LOC)
    • 1 *.nuspec files (23 LOC)
  • " *.gradle" is biggest, containing 64.85% of LOC.
  • " *.nuspec" is smallest, containing 1.51% of LOC.


*.gradle987 LOC (64%) 49 files
*.csproj344 LOC (22%) 3 files
*.sh97 LOC (6%) 5 files
*.bat71 LOC (4%) 1 file
*.nuspec23 LOC (1%) 1 file
Other Code
txt
properties
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/COPYRIGHT[.][a-z0-9]+".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
  • 286 files match defined criteria (10,995 LOC, 26.8% vs. main code):
    • 125 *.json files (6,887 LOC)
    • 123 *.txt files (1,923 LOC)
    • 12 *.md files (1,218 LOC)
    • 20 *.properties files (402 LOC)
    • 2 *.xml files (370 LOC)
    • 1 *.xsl files (140 LOC)
    • 3 *.java files (55 LOC)
  • " *.json" is biggest, containing 62.64% of LOC.
  • " *.java" is smallest, containing 0.5% of LOC.


*.json6887 LOC (62%) 125 files
*.txt1923 LOC (17%) 123 files
*.md1218 LOC (11%) 12 files
*.properties402 LOC (3%) 20 files
*.xml370 LOC (3%) 2 files
*.xsl140 LOC (1%) 1 file
*.java55 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:15