epam / OneDrive-L
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
in
txt
ini
cfg
proto
gitattributes
mako
gitmodules
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.

main6082 LOC (80%) 57 files
test563 LOC (7%) 26 files
generated436 LOC (5%) 2 files
build and deployment0 LOC (0%) 0 files
other486 LOC (6%) 15 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
in
mako
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 57 files match defined criteria (6,082 LOC, 100.0% vs. main code):
    • 38 *.py files (5,874 LOC)
    • 2 *.proto files (108 LOC)
    • 11 *.in files (36 LOC)
    • 1 *.mako files (32 LOC)
    • 4 *.cfg files (24 LOC)
    • 1 *.yaml files (8 LOC)
  • " *.py" is biggest, containing 96.58% of LOC.
  • " *.yaml" is smallest, containing 0.13% of LOC.


*.py5874 LOC (96%) 38 files
*.proto108 LOC (1%) 2 files
*.in36 LOC (<1%) 11 files
*.mako32 LOC (<1%) 1 file
*.cfg24 LOC (<1%) 4 files
*.yaml8 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
  • 26 files match defined criteria (563 LOC, 9.3% vs. main code):
    • 25 *.py files (533 LOC)
    • 1 *.proto files (30 LOC)
  • " *.py" is biggest, containing 94.67% of LOC.
  • " *.proto" is smallest, containing 5.33% of LOC.


*.py533 LOC (94%) 25 files
*.proto30 LOC (5%) 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 ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 2 files match defined criteria (436 LOC, 7.2% vs. main code). All matches are in *.py files.


*.py436 LOC (100%) 2 files
Other Code
ini
txt
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 ".*[.]json".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 15 files match defined criteria (486 LOC, 8.0% vs. main code):
    • 6 *.ini files (304 LOC)
    • 3 *.rst files (135 LOC)
    • 6 *.txt files (47 LOC)
  • " *.ini" is biggest, containing 62.55% of LOC.
  • " *.txt" is smallest, containing 9.67% of LOC.


*.ini304 LOC (62%) 6 files
*.rst135 LOC (27%) 3 files
*.txt47 LOC (9%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:06