epam / Cake.Sitecore.Recipe
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
cake
txt
nuspec
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.

main4541 LOC (89%) 41 files
test338 LOC (6%) 3 files
generated0 LOC (0%) 0 files
build and deployment22 LOC (<1%) 1 file
other200 LOC (3%) 3 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 ".*".
  • 41 files match defined criteria (4,541 LOC, 100.0% vs. main code):
    • 17 *.ps1 files (2,096 LOC)
    • 17 *.cake files (1,284 LOC)
    • 2 *.ps1xml files (832 LOC)
    • 2 *.psm1 files (201 LOC)
    • 1 *.psd1 files (94 LOC)
    • 1 *.html files (26 LOC)
    • 1 *.xml files (8 LOC)
  • " *.ps1" is biggest, containing 46.16% of LOC.
  • " *.xml" is smallest, containing 0.18% of LOC.


*.ps12096 LOC (46%) 17 files
*.cake1284 LOC (28%) 17 files
*.ps1xml832 LOC (18%) 2 files
*.psm1201 LOC (4%) 2 files
*.psd194 LOC (2%) 1 file
*.html26 LOC (<1%) 1 file
*.xml8 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cake
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
  • 3 files match defined criteria (338 LOC, 7.4% vs. main code):
    • 1 *.ps1 files (197 LOC)
    • 2 *.cake files (141 LOC)
  • " *.ps1" is biggest, containing 58.28% of LOC.
  • " *.cake" is smallest, containing 41.72% of LOC.


*.ps1197 LOC (58%) 1 file
*.cake141 LOC (41%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (22 LOC, 0.5% vs. main code). All matches are in *.nuspec files.


*.nuspec22 LOC (100%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (200 LOC, 4.4% vs. main code):
    • 2 *.md files (197 LOC)
    • 1 *.txt files (3 LOC)
  • " *.md" is biggest, containing 98.5% of LOC.
  • " *.txt" is smallest, containing 1.5% of LOC.


*.md197 LOC (98%) 2 files
*.txt3 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:12