aliyun / alibabacloud-hologres-connectors
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
properties
txt
mod
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.

main44093 LOC (59%) 433 files
test22725 LOC (30%) 61 files
generated0 LOC (0%) 0 files
build and deployment2680 LOC (3%) 19 files
other4744 LOC (6%) 56 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 ".*".
  • 433 files match defined criteria (44,093 LOC, 100.0% vs. main code):
    • 282 *.java files (29,218 LOC)
    • 25 *.c files (6,018 LOC)
    • 40 *.scala files (2,793 LOC)
    • 43 *.h files (2,073 LOC)
    • 16 *.xml files (1,823 LOC)
    • 20 *.py files (1,531 LOC)
    • 4 *.go files (577 LOC)
    • 1 *.sql files (39 LOC)
    • 1 *.css files (13 LOC)
    • 1 *.html files (8 LOC)
  • " *.java" is biggest, containing 66.26% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.java29218 LOC (66%) 282 files
*.c6018 LOC (13%) 25 files
*.scala2793 LOC (6%) 40 files
*.h2073 LOC (4%) 43 files
*.xml1823 LOC (4%) 16 files
*.py1531 LOC (3%) 20 files
*.go577 LOC (1%) 4 files
*.sql39 LOC (<1%) 1 file
*.css13 LOC (<1%) 1 file
*.html8 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test[.].*".
  • 61 files match defined criteria (22,725 LOC, 51.5% vs. main code):
    • 48 *.java files (18,680 LOC)
    • 6 *.c files (2,742 LOC)
    • 7 *.scala files (1,303 LOC)
  • " *.java" is biggest, containing 82.2% of LOC.
  • " *.scala" is smallest, containing 5.73% of LOC.


*.java18680 LOC (82%) 48 files
*.c2742 LOC (12%) 6 files
*.scala1303 LOC (5%) 7 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 19 files match defined criteria (2,680 LOC, 6.1% vs. main code):
    • 18 *.xml files (2,632 LOC)
    • 1 *.sh files (48 LOC)
  • " *.xml" is biggest, containing 98.21% of LOC.
  • " *.sh" is smallest, containing 1.79% of LOC.


*.xml2632 LOC (98%) 18 files
*.sh48 LOC (1%) 1 file
Other Code
properties
txt
mod
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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
    • 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/.*".
  • 56 files match defined criteria (4,744 LOC, 10.8% vs. main code):
    • 24 *.md files (3,503 LOC)
    • 2 *.xml files (555 LOC)
    • 17 *.properties files (261 LOC)
    • 4 *.txt files (224 LOC)
    • 2 *.py files (96 LOC)
    • 5 *.json files (93 LOC)
    • 1 *.sh files (10 LOC)
    • 1 *.mod files (2 LOC)
  • " *.md" is biggest, containing 73.84% of LOC.
  • " *.mod" is smallest, containing 0.04% of LOC.


*.md3503 LOC (73%) 24 files
*.xml555 LOC (11%) 2 files
*.properties261 LOC (5%) 17 files
*.txt224 LOC (4%) 4 files
*.py96 LOC (2%) 2 files
*.json93 LOC (1%) 5 files
*.sh10 LOC (<1%) 1 file
*.mod2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:06