epam / TimeBaseTutorial
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
tpl
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.

main1485 LOC (16%) 33 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment304 LOC (3%) 9 files
other7444 LOC (80%) 72 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 33 files match defined criteria (1,485 LOC, 100.0% vs. main code):
    • 23 *.yaml files (938 LOC)
    • 2 *.py files (189 LOC)
    • 1 *.ipynb files (184 LOC)
    • 5 *.java files (102 LOC)
    • 2 *.tpl files (72 LOC)
  • " *.yaml" is biggest, containing 63.16% of LOC.
  • " *.tpl" is smallest, containing 4.85% of LOC.


*.yaml938 LOC (63%) 23 files
*.py189 LOC (12%) 2 files
*.ipynb184 LOC (12%) 1 file
*.java102 LOC (6%) 5 files
*.tpl72 LOC (4%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 9 files match defined criteria (304 LOC, 20.5% vs. main code):
    • 3 *.bat files (197 LOC)
    • 6 *.gradle files (107 LOC)
  • " *.bat" is biggest, containing 64.8% of LOC.
  • " *.gradle" is smallest, containing 35.2% of LOC.


*.bat197 LOC (64%) 3 files
*.gradle107 LOC (35%) 6 files
Other Code
properties
txt
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 ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
  • 72 files match defined criteria (7,444 LOC, 501.3% vs. main code):
    • 48 *.java files (6,601 LOC)
    • 11 *.py files (530 LOC)
    • 8 *.md files (290 LOC)
    • 3 *.properties files (17 LOC)
    • 2 *.txt files (6 LOC)
  • " *.java" is biggest, containing 88.68% of LOC.
  • " *.txt" is smallest, containing 0.08% of LOC.


*.java6601 LOC (88%) 48 files
*.py530 LOC (7%) 11 files
*.md290 LOC (3%) 8 files
*.properties17 LOC (<1%) 3 files
*.txt6 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:11