epam / DFP
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
csproj
properties
mak
gitattributes
cake
editorconfig
in
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.

main25051 LOC (82%) 75 files
test3671 LOC (12%) 11 files
generated0 LOC (0%) 0 files
build and deployment1235 LOC (4%) 17 files
other297 LOC (<1%) 9 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cake
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 75 files match defined criteria (25,051 LOC, 100.0% vs. main code):
    • 53 *.java files (16,187 LOC)
    • 15 *.cs files (7,964 LOC)
    • 3 *.c files (463 LOC)
    • 1 *.ps1 files (242 LOC)
    • 1 *.cake files (106 LOC)
    • 2 *.h files (89 LOC)
  • " *.java" is biggest, containing 64.62% of LOC.
  • " *.h" is smallest, containing 0.36% of LOC.


*.java16187 LOC (64%) 53 files
*.cs7964 LOC (31%) 15 files
*.c463 LOC (1%) 3 files
*.ps1242 LOC (<1%) 1 file
*.cake106 LOC (<1%) 1 file
*.h89 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 ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
  • 11 files match defined criteria (3,671 LOC, 14.7% vs. main code):
    • 8 *.java files (2,526 LOC)
    • 2 *.cs files (1,117 LOC)
    • 1 *.csproj files (28 LOC)
  • " *.java" is biggest, containing 68.81% of LOC.
  • " *.csproj" is smallest, containing 0.76% of LOC.


*.java2526 LOC (68%) 8 files
*.cs1117 LOC (30%) 2 files
*.csproj28 LOC (<1%) 1 file
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 ".*[.]gradle".
    • files with paths like ".*[.]mak".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]csproj".
  • 17 files match defined criteria (1,235 LOC, 4.9% vs. main code):
    • 11 *.gradle files (951 LOC)
    • 4 *.csproj files (131 LOC)
    • 1 *.sh files (85 LOC)
    • 1 *.bat files (68 LOC)
  • " *.gradle" is biggest, containing 77% of LOC.
  • " *.bat" is smallest, containing 5.51% of LOC.


*.gradle951 LOC (77%) 11 files
*.csproj131 LOC (10%) 4 files
*.sh85 LOC (6%) 1 file
*.bat68 LOC (5%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 9 files match defined criteria (297 LOC, 1.2% vs. main code):
    • 2 *.txt files (142 LOC)
    • 2 *.java files (78 LOC)
    • 2 *.md files (45 LOC)
    • 1 *.json files (29 LOC)
    • 2 *.properties files (3 LOC)
  • " *.txt" is biggest, containing 47.81% of LOC.
  • " *.properties" is smallest, containing 1.01% of LOC.


*.txt142 LOC (47%) 2 files
*.java78 LOC (26%) 2 files
*.md45 LOC (15%) 2 files
*.json29 LOC (9%) 1 file
*.properties3 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:12