epam / sap-commerce-intellij-idea-plugin
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
flex
properties
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.

main74751 LOC (83%) 1,835 files
test2385 LOC (2%) 3 files
generated3430 LOC (3%) 4 files
build and deployment71 LOC (<1%) 1 file
other8430 LOC (9%) 203 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
flex
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1835 files match defined criteria (74,751 LOC, 100.0% vs. main code):
    • 1,044 *.kt files (45,561 LOC)
    • 669 *.java files (26,545 LOC)
    • 15 *.xml files (1,181 LOC)
    • 101 *.html files (580 LOC)
    • 3 *.flex files (552 LOC)
    • 2 *.kts files (267 LOC)
    • 1 *.toml files (65 LOC)
  • " *.kt" is biggest, containing 60.95% of LOC.
  • " *.toml" is smallest, containing 0.09% of LOC.


*.kt45561 LOC (60%) 1,044 files
*.java26545 LOC (35%) 669 files
*.xml1181 LOC (1%) 15 files
*.html580 LOC (<1%) 101 files
*.flex552 LOC (<1%) 3 files
*.kts267 LOC (<1%) 2 files
*.toml65 LOC (<1%) 1 file
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 ".*/[Ss]pecs/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 3 files match defined criteria (2,385 LOC, 3.2% vs. main code):
    • 2 *.yaml files (2,322 LOC)
    • 1 *.kt files (63 LOC)
  • " *.yaml" is biggest, containing 97.36% of LOC.
  • " *.kt" is smallest, containing 2.64% of LOC.


*.yaml2322 LOC (97%) 2 files
*.kt63 LOC (2%) 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 ".*[.]java" AND any line of content like ".*[/][/] This is a generated file[.] Not intended for manual editing[.].*".
    • files with any line of content like "//[ ]*Generated by .*".
  • 4 files match defined criteria (3,430 LOC, 4.6% vs. main code). All matches are in *.java files.


*.java3430 LOC (100%) 4 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 ".*[.]bat".
  • 1 file matches defined criteria (71 LOC, 0.1% vs. main code). All matches are in *.bat files.


*.bat71 LOC (100%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]ocumentation/.*".
  • 203 files match defined criteria (8,430 LOC, 11.3% vs. main code):
    • 182 *.svg files (4,857 LOC)
    • 5 *.md files (1,552 LOC)
    • 8 *.kt files (758 LOC)
    • 2 *.properties files (697 LOC)
    • 3 *.json files (503 LOC)
    • 3 *.txt files (63 LOC)
  • " *.svg" is biggest, containing 57.62% of LOC.
  • " *.txt" is smallest, containing 0.75% of LOC.


*.svg4857 LOC (57%) 182 files
*.md1552 LOC (18%) 5 files
*.kt758 LOC (8%) 8 files
*.properties697 LOC (8%) 2 files
*.json503 LOC (5%) 3 files
*.txt63 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 15:35