azure / dalec
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
mod
txt
hcl
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.

main10122 LOC (45%) 82 files
test11689 LOC (52%) 39 files
generated0 LOC (0%) 0 files
build and deployment15 LOC (<1%) 1 file
other300 LOC (1%) 12 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hcl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 82 files match defined criteria (10,122 LOC, 100.0% vs. main code):
    • 76 *.go files (9,761 LOC)
    • 1 *.hcl files (208 LOC)
    • 2 *.ts files (115 LOC)
    • 1 *.css files (33 LOC)
    • 1 *.js files (3 LOC)
    • 1 *.toml files (2 LOC)
  • " *.go" is biggest, containing 96.43% of LOC.
  • " *.toml" is smallest, containing 0.02% of LOC.


*.go9761 LOC (96%) 76 files
*.hcl208 LOC (2%) 1 file
*.ts115 LOC (1%) 2 files
*.css33 LOC (<1%) 1 file
*.js3 LOC (<1%) 1 file
*.toml2 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 ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 39 files match defined criteria (11,689 LOC, 115.5% vs. main code). All matches are in *.go files.


*.go11689 LOC (100%) 39 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 ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (15 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh15 LOC (100%) 1 file
Other Code
mod
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]dockerignore".
  • 12 files match defined criteria (300 LOC, 3.0% vs. main code):
    • 2 *.mod files (125 LOC)
    • 7 *.md files (116 LOC)
    • 2 *.json files (54 LOC)
    • 1 *.txt files (5 LOC)
  • " *.mod" is biggest, containing 41.67% of LOC.
  • " *.txt" is smallest, containing 1.67% of LOC.


*.mod125 LOC (41%) 2 files
*.md116 LOC (38%) 7 files
*.json54 LOC (18%) 2 files
*.txt5 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:55