epam / headless-commerce-salesforce-accelerator
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
snap
properties
txt
eslintignore
project
editorconfig
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.

main6118 LOC (46%) 34 files
test6626 LOC (50%) 194 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other433 LOC (3%) 16 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 34 files match defined criteria (6,118 LOC, 100.0% vs. main code):
    • 7 *.xml files (4,948 LOC)
    • 26 *.js files (1,146 LOC)
    • 1 *.html files (24 LOC)
  • " *.xml" is biggest, containing 80.88% of LOC.
  • " *.html" is smallest, containing 0.39% of LOC.


*.xml4948 LOC (80%) 7 files
*.js1146 LOC (18%) 26 files
*.html24 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
  • 194 files match defined criteria (6,626 LOC, 108.3% vs. main code):
    • 108 *.js files (3,806 LOC)
    • 86 *.snap files (2,820 LOC)
  • " *.js" is biggest, containing 57.44% of LOC.
  • " *.snap" is smallest, containing 42.56% of LOC.


*.js3806 LOC (57%) 108 files
*.snap2820 LOC (42%) 86 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]editorconfig".
  • 16 files match defined criteria (433 LOC, 7.1% vs. main code):
    • 4 *.md files (214 LOC)
    • 5 *.json files (199 LOC)
    • 6 *.properties files (17 LOC)
    • 1 *.txt files (3 LOC)
  • " *.md" is biggest, containing 49.42% of LOC.
  • " *.txt" is smallest, containing 0.69% of LOC.


*.md214 LOC (49%) 4 files
*.json199 LOC (45%) 5 files
*.properties17 LOC (3%) 6 files
*.txt3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:10