azure / sap-automation
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
cshtml
txt
cfg
gitattributes
editorconfig
csproj
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.

main75052 LOC (71%) 508 files
test0 LOC (0%) 0 files
generated71 LOC (<1%) 1 file
build and deployment12209 LOC (11%) 46 files
other18023 LOC (17%) 60 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cshtml
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 508 files match defined criteria (75,052 LOC, 100.0% vs. main code):
    • 252 *.yaml files (31,064 LOC)
    • 146 *.tf files (24,846 LOC)
    • 20 *.ps1 files (6,178 LOC)
    • 35 *.cs files (4,595 LOC)
    • 2 *.psm1 files (2,804 LOC)
    • 35 *.cshtml files (2,182 LOC)
    • 3 *.py files (1,882 LOC)
    • 1 *.js files (712 LOC)
    • 1 *.css files (384 LOC)
    • 9 *.tfvars files (173 LOC)
    • 2 *.psd1 files (168 LOC)
    • 2 *.cfg files (64 LOC)
  • " *.yaml" is biggest, containing 41.39% of LOC.
  • " *.cfg" is smallest, containing 0.09% of LOC.


*.yaml31064 LOC (41%) 252 files
*.tf24846 LOC (33%) 146 files
*.ps16178 LOC (8%) 20 files
*.cs4595 LOC (6%) 35 files
*.psm12804 LOC (3%) 2 files
*.cshtml2182 LOC (2%) 35 files
*.py1882 LOC (2%) 3 files
*.js712 LOC (<1%) 1 file
*.css384 LOC (<1%) 1 file
*.tfvars173 LOC (<1%) 9 files
*.psd1168 LOC (<1%) 2 files
*.cfg64 LOC (<1%) 2 files
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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (71 LOC, 0.1% vs. main code). All matches are in *.json files.


*.json71 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 46 files match defined criteria (12,209 LOC, 16.3% vs. main code):
    • 45 *.sh files (12,173 LOC)
    • 1 *.csproj files (36 LOC)
  • " *.sh" is biggest, containing 99.71% of LOC.
  • " *.csproj" is smallest, containing 0.29% of LOC.


*.sh12173 LOC (99%) 45 files
*.csproj36 LOC (<1%) 1 file
Other Code
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 ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 60 files match defined criteria (18,023 LOC, 24.0% vs. main code):
    • 35 *.json files (16,477 LOC)
    • 5 *.txt files (1,226 LOC)
    • 20 *.md files (320 LOC)
  • " *.json" is biggest, containing 91.42% of LOC.
  • " *.md" is smallest, containing 1.78% of LOC.


*.json16477 LOC (91%) 35 files
*.txt1226 LOC (6%) 5 files
*.md320 LOC (1%) 20 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:20