aliyun / aliyun-odps-java-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
proto
txt
properties
mdx
policy
x
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.

main121672 LOC (58%) 1,344 files
test26405 LOC (12%) 241 files
generated56550 LOC (26%) 40 files
build and deployment1723 LOC (<1%) 34 files
other3419 LOC (1%) 58 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1344 files match defined criteria (121,672 LOC, 100.0% vs. main code):
    • 1,281 *.java files (114,268 LOC)
    • 4 *.g4 files (5,636 LOC)
    • 8 *.xml files (890 LOC)
    • 39 *.proto files (723 LOC)
    • 6 *.sql files (83 LOC)
    • 2 *.policy files (56 LOC)
    • 4 *.py files (16 LOC)
  • " *.java" is biggest, containing 93.91% of LOC.
  • " *.py" is smallest, containing 0.01% of LOC.


*.java114268 LOC (93%) 1,281 files
*.g45636 LOC (4%) 4 files
*.xml890 LOC (<1%) 8 files
*.proto723 LOC (<1%) 39 files
*.sql83 LOC (<1%) 6 files
*.policy56 LOC (<1%) 2 files
*.py16 LOC (<1%) 4 files
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[.].*".
  • 241 files match defined criteria (26,405 LOC, 21.7% vs. main code):
    • 232 *.java files (26,150 LOC)
    • 5 *.xml files (141 LOC)
    • 1 *.sh files (78 LOC)
    • 1 *.yaml files (22 LOC)
    • 2 *.py files (14 LOC)
  • " *.java" is biggest, containing 99.03% of LOC.
  • " *.py" is smallest, containing 0.05% of LOC.


*.java26150 LOC (99%) 232 files
*.xml141 LOC (<1%) 5 files
*.sh78 LOC (<1%) 1 file
*.yaml22 LOC (<1%) 1 file
*.py14 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 any line of content like "// This file was generated .*".
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 40 files match defined criteria (56,550 LOC, 46.5% vs. main code). All matches are in *.java files.


*.java56550 LOC (100%) 40 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/package[.]json".
  • 34 files match defined criteria (1,723 LOC, 1.4% vs. main code):
    • 28 *.xml files (1,681 LOC)
    • 6 *.sh files (42 LOC)
  • " *.xml" is biggest, containing 97.56% of LOC.
  • " *.sh" is smallest, containing 2.44% of LOC.


*.xml1681 LOC (97%) 28 files
*.sh42 LOC (2%) 6 files
Other Code
txt
properties
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]mdx".
  • 58 files match defined criteria (3,419 LOC, 2.8% vs. main code):
    • 23 *.java files (1,729 LOC)
    • 7 *.md files (1,301 LOC)
    • 18 *.txt files (256 LOC)
    • 7 *.properties files (109 LOC)
    • 3 *.json files (24 LOC)
  • " *.java" is biggest, containing 50.57% of LOC.
  • " *.json" is smallest, containing 0.7% of LOC.


*.java1729 LOC (50%) 23 files
*.md1301 LOC (38%) 7 files
*.txt256 LOC (7%) 18 files
*.properties109 LOC (3%) 7 files
*.json24 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 04:53