epam / Lagerta
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
ini
gitattributes
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.

main15453 LOC (40%) 326 files
test20426 LOC (54%) 353 files
generated0 LOC (0%) 0 files
build and deployment922 LOC (2%) 10 files
other1023 LOC (2%) 29 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 ".*".
  • 326 files match defined criteria (15,453 LOC, 100.0% vs. main code):
    • 322 *.java files (15,314 LOC)
    • 1 *.yaml files (98 LOC)
    • 1 *.xml files (23 LOC)
    • 2 *.clj files (18 LOC)
  • " *.java" is biggest, containing 99.1% of LOC.
  • " *.clj" is smallest, containing 0.12% of LOC.


*.java15314 LOC (99%) 322 files
*.yaml98 LOC (<1%) 1 file
*.xml23 LOC (<1%) 1 file
*.clj18 LOC (<1%) 2 files
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 ".*[-]test[-].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 353 files match defined criteria (20,426 LOC, 132.2% vs. main code):
    • 275 *.java files (16,403 LOC)
    • 22 *.py files (2,060 LOC)
    • 26 *.xml files (1,255 LOC)
    • 13 *.bat files (393 LOC)
    • 13 *.sh files (178 LOC)
    • 1 *.yaml files (98 LOC)
    • 2 *.sql files (33 LOC)
    • 1 *.clj files (6 LOC)
  • " *.java" is biggest, containing 80.3% of LOC.
  • " *.clj" is smallest, containing 0.03% of LOC.


*.java16403 LOC (80%) 275 files
*.py2060 LOC (10%) 22 files
*.xml1255 LOC (6%) 26 files
*.bat393 LOC (1%) 13 files
*.sh178 LOC (<1%) 13 files
*.yaml98 LOC (<1%) 1 file
*.sql33 LOC (<1%) 2 files
*.clj6 LOC (<1%) 1 file
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 ".*/pom[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 10 files match defined criteria (922 LOC, 6.0% vs. main code):
    • 6 *.xml files (856 LOC)
    • 4 *.sh files (66 LOC)
  • " *.xml" is biggest, containing 92.84% of LOC.
  • " *.sh" is smallest, containing 7.16% of LOC.


*.xml856 LOC (92%) 6 files
*.sh66 LOC (7%) 4 files
Other Code
properties
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 29 files match defined criteria (1,023 LOC, 6.6% vs. main code):
    • 20 *.properties files (653 LOC)
    • 4 *.txt files (168 LOC)
    • 3 *.md files (108 LOC)
    • 2 *.ini files (94 LOC)
  • " *.properties" is biggest, containing 63.83% of LOC.
  • " *.ini" is smallest, containing 9.19% of LOC.


*.properties653 LOC (63%) 20 files
*.txt168 LOC (16%) 4 files
*.md108 LOC (10%) 3 files
*.ini94 LOC (9%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:07