epam / NGB
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
properties
txt
npmignore
editorconfig
babelrc
eslintignore
xsd
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.

main212833 LOC (73%) 3,054 files
test30404 LOC (10%) 188 files
generated11020 LOC (3%) 38 files
build and deployment1371 LOC (<1%) 18 files
other34413 LOC (11%) 71 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3054 files match defined criteria (212,833 LOC, 100.0% vs. main code):
    • 1,297 *.js files (101,683 LOC)
    • 905 *.java files (73,841 LOC)
    • 351 *.html files (13,195 LOC)
    • 272 *.scss files (12,815 LOC)
    • 67 *.xml files (6,608 LOC)
    • 17 *.tsx files (1,825 LOC)
    • 116 *.sql files (1,532 LOC)
    • 24 *.ts files (1,139 LOC)
    • 4 *.css files (142 LOC)
    • 1 *.py files (53 LOC)
  • " *.js" is biggest, containing 47.78% of LOC.
  • " *.py" is smallest, containing 0.02% of LOC.


*.js101683 LOC (47%) 1,297 files
*.java73841 LOC (34%) 905 files
*.html13195 LOC (6%) 351 files
*.scss12815 LOC (6%) 272 files
*.xml6608 LOC (3%) 67 files
*.tsx1825 LOC (<1%) 17 files
*.sql1532 LOC (<1%) 116 files
*.ts1139 LOC (<1%) 24 files
*.css142 LOC (<1%) 4 files
*.py53 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
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 ".*/e2e/.*".
  • 188 files match defined criteria (30,404 LOC, 14.3% vs. main code):
    • 172 *.java files (22,004 LOC)
    • 11 *.xml files (8,146 LOC)
    • 1 *.html files (161 LOC)
    • 1 *.gradle files (66 LOC)
    • 1 *.sh files (21 LOC)
    • 2 *.sql files (6 LOC)
  • " *.java" is biggest, containing 72.37% of LOC.
  • " *.sql" is smallest, containing 0.02% of LOC.


*.java22004 LOC (72%) 172 files
*.xml8146 LOC (26%) 11 files
*.html161 LOC (<1%) 1 file
*.gradle66 LOC (<1%) 1 file
*.sh21 LOC (<1%) 1 file
*.sql6 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "// This file was generated .*".
    • files with paths like ".*/package[-]lock[.]json".
  • 38 files match defined criteria (11,020 LOC, 5.2% vs. main code):
    • 2 *.json files (8,662 LOC)
    • 36 *.java files (2,358 LOC)
  • " *.json" is biggest, containing 78.6% of LOC.
  • " *.java" is smallest, containing 21.4% of LOC.


*.json8662 LOC (78%) 2 files
*.java2358 LOC (21%) 36 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[-]lock[.]json".
  • 18 files match defined criteria (1,371 LOC, 0.6% vs. main code):
    • 10 *.gradle files (914 LOC)
    • 5 *.sh files (191 LOC)
    • 1 *.js files (139 LOC)
    • 2 *.bat files (127 LOC)
  • " *.gradle" is biggest, containing 66.67% of LOC.
  • " *.bat" is smallest, containing 9.26% of LOC.


*.gradle914 LOC (66%) 10 files
*.sh191 LOC (13%) 5 files
*.js139 LOC (10%) 1 file
*.bat127 LOC (9%) 2 files
Other Code
txt
xsd
properties
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]editorconfig".
  • 71 files match defined criteria (34,413 LOC, 16.2% vs. main code):
    • 21 *.json files (18,959 LOC)
    • 13 *.txt files (11,365 LOC)
    • 1 *.xsd files (1,517 LOC)
    • 16 *.properties files (1,170 LOC)
    • 10 *.svg files (867 LOC)
    • 8 *.md files (313 LOC)
    • 2 *.xml files (222 LOC)
  • " *.json" is biggest, containing 55.09% of LOC.
  • " *.xml" is smallest, containing 0.65% of LOC.


*.json18959 LOC (55%) 21 files
*.txt11365 LOC (33%) 13 files
*.xsd1517 LOC (4%) 1 file
*.properties1170 LOC (3%) 16 files
*.svg867 LOC (2%) 10 files
*.md313 LOC (<1%) 8 files
*.xml222 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:18