aliyun / aliyun-odps-go-sdk
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
s
txt
mod
ini
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.

main43481 LOC (58%) 352 files
test25336 LOC (34%) 119 files
generated232 LOC (<1%) 1 file
build and deployment0 LOC (0%) 0 files
other5080 LOC (6%) 82 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
s
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 352 files match defined criteria (43,481 LOC, 100.0% vs. main code):
    • 321 *.go files (40,954 LOC)
    • 17 *.s files (1,942 LOC)
    • 5 *.c files (340 LOC)
    • 7 *.h files (180 LOC)
    • 1 *.cc files (44 LOC)
    • 1 *.toml files (21 LOC)
  • " *.go" is biggest, containing 94.19% of LOC.
  • " *.toml" is smallest, containing 0.05% of LOC.


*.go40954 LOC (94%) 321 files
*.s1942 LOC (4%) 17 files
*.c340 LOC (<1%) 5 files
*.h180 LOC (<1%) 7 files
*.cc44 LOC (<1%) 1 file
*.toml21 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 ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 119 files match defined criteria (25,336 LOC, 58.3% vs. main code):
    • 118 *.go files (25,236 LOC)
    • 1 *.py files (100 LOC)
  • " *.go" is biggest, containing 99.61% of LOC.
  • " *.py" is smallest, containing 0.39% of LOC.


*.go25236 LOC (99%) 118 files
*.py100 LOC (<1%) 1 file
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 ".*/gen/.*[.]go".
  • 1 file matches defined criteria (232 LOC, 0.5% vs. main code). All matches are in *.go files.


*.go232 LOC (100%) 1 file
Other Code
txt
mod
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/go[.]mod".
    • 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 ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 82 files match defined criteria (5,080 LOC, 11.7% vs. main code):
    • 71 *.go files (3,237 LOC)
    • 3 *.txt files (1,482 LOC)
    • 3 *.md files (300 LOC)
    • 3 *.mod files (33 LOC)
    • 1 *.json files (15 LOC)
    • 1 *.ini files (13 LOC)
  • " *.go" is biggest, containing 63.72% of LOC.
  • " *.ini" is smallest, containing 0.26% of LOC.


*.go3237 LOC (63%) 71 files
*.txt1482 LOC (29%) 3 files
*.md300 LOC (5%) 3 files
*.mod33 LOC (<1%) 3 files
*.json15 LOC (<1%) 1 file
*.ini13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:16