epam / NativeUtils
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
csproj
properties
txt
gitattributes
filters
vcxproj
cake
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.

main4453 LOC (74%) 23 files
test646 LOC (10%) 10 files
generated0 LOC (0%) 0 files
build and deployment485 LOC (8%) 11 files
other375 LOC (6%) 6 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cake
vcxproj
filters
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 23 files match defined criteria (4,453 LOC, 100.0% vs. main code):
    • 8 *.cs files (2,301 LOC)
    • 9 *.java files (1,517 LOC)
    • 1 *.ps1 files (242 LOC)
    • 1 *.cake files (177 LOC)
    • 1 *.vcxproj files (145 LOC)
    • 1 *.cpp files (40 LOC)
    • 1 *.filters files (27 LOC)
    • 1 *.h files (4 LOC)
  • " *.cs" is biggest, containing 51.67% of LOC.
  • " *.h" is smallest, containing 0.09% of LOC.


*.cs2301 LOC (51%) 8 files
*.java1517 LOC (34%) 9 files
*.ps1242 LOC (5%) 1 file
*.cake177 LOC (3%) 1 file
*.vcxproj145 LOC (3%) 1 file
*.cpp40 LOC (<1%) 1 file
*.filters27 LOC (<1%) 1 file
*.h4 LOC (<1%) 1 file
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 ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 10 files match defined criteria (646 LOC, 14.5% vs. main code):
    • 6 *.java files (414 LOC)
    • 3 *.cs files (212 LOC)
    • 1 *.csproj files (20 LOC)
  • " *.java" is biggest, containing 64.09% of LOC.
  • " *.csproj" is smallest, containing 3.1% of LOC.


*.java414 LOC (64%) 6 files
*.cs212 LOC (32%) 3 files
*.csproj20 LOC (3%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]bat".
  • 11 files match defined criteria (485 LOC, 10.9% vs. main code):
    • 7 *.gradle files (254 LOC)
    • 1 *.sh files (85 LOC)
    • 1 *.bat files (76 LOC)
    • 2 *.csproj files (70 LOC)
  • " *.gradle" is biggest, containing 52.37% of LOC.
  • " *.csproj" is smallest, containing 14.43% of LOC.


*.gradle254 LOC (52%) 7 files
*.sh85 LOC (17%) 1 file
*.bat76 LOC (15%) 1 file
*.csproj70 LOC (14%) 2 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 6 files match defined criteria (375 LOC, 8.4% vs. main code):
    • 1 *.txt files (169 LOC)
    • 1 *.md files (160 LOC)
    • 2 *.java files (42 LOC)
    • 2 *.properties files (4 LOC)
  • " *.txt" is biggest, containing 45.07% of LOC.
  • " *.properties" is smallest, containing 1.07% of LOC.


*.txt169 LOC (45%) 1 file
*.md160 LOC (42%) 1 file
*.java42 LOC (11%) 2 files
*.properties4 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:08