aliyun / saml2alibabacloud
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
mod
ini
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.

main11050 LOC (63%) 88 files
test5483 LOC (31%) 34 files
generated0 LOC (0%) 0 files
build and deployment21 LOC (<1%) 1 file
other768 LOC (4%) 15 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 ".*".
  • 88 files match defined criteria (11,050 LOC, 100.0% vs. main code):
    • 59 *.go files (8,473 LOC)
    • 26 *.html files (2,350 LOC)
    • 1 *.c files (190 LOC)
    • 1 *.ps1 files (25 LOC)
    • 1 *.h files (12 LOC)
  • " *.go" is biggest, containing 76.68% of LOC.
  • " *.h" is smallest, containing 0.11% of LOC.


*.go8473 LOC (76%) 59 files
*.html2350 LOC (21%) 26 files
*.c190 LOC (1%) 1 file
*.ps125 LOC (<1%) 1 file
*.h12 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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*_test[.].*".
  • 34 files match defined criteria (5,483 LOC, 49.6% vs. main code). All matches are in *.go files.


*.go5483 LOC (100%) 34 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]nuspec".
  • 1 file matches defined criteria (21 LOC, 0.2% vs. main code). All matches are in *.nuspec files.


*.nuspec21 LOC (100%) 1 file
Other Code
mod
txt
ini
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 ".*[.]ini".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
  • 15 files match defined criteria (768 LOC, 7.0% vs. main code):
    • 12 *.md files (676 LOC)
    • 1 *.mod files (70 LOC)
    • 1 *.txt files (11 LOC)
    • 1 *.ini files (11 LOC)
  • " *.md" is biggest, containing 88.02% of LOC.
  • " *.ini" is smallest, containing 1.43% of LOC.


*.md676 LOC (88%) 12 files
*.mod70 LOC (9%) 1 file
*.txt11 LOC (1%) 1 file
*.ini11 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:05