aliyun / aliyun-maxcompute-data-collectors
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
properties
q
ini
cmd
xsl
aj
gitattributes
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.

main83348 LOC (64%) 860 files
test37746 LOC (29%) 255 files
generated0 LOC (0%) 0 files
build and deployment4040 LOC (3%) 35 files
other3785 LOC (2%) 56 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 860 files match defined criteria (83,348 LOC, 100.0% vs. main code):
    • 764 *.java files (68,418 LOC)
    • 73 *.scala files (13,157 LOC)
    • 17 *.xml files (1,308 LOC)
    • 2 *.py files (257 LOC)
    • 3 *.cmd files (166 LOC)
    • 1 *.css files (42 LOC)
  • " *.java" is biggest, containing 82.09% of LOC.
  • " *.css" is smallest, containing 0.05% of LOC.


*.java68418 LOC (82%) 764 files
*.scala13157 LOC (15%) 73 files
*.xml1308 LOC (1%) 17 files
*.py257 LOC (<1%) 2 files
*.cmd166 LOC (<1%) 3 files
*.css42 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
aj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 255 files match defined criteria (37,746 LOC, 45.3% vs. main code):
    • 223 *.java files (35,719 LOC)
    • 16 *.scala files (1,023 LOC)
    • 13 *.xml files (744 LOC)
    • 2 *.aj files (210 LOC)
    • 1 *.sql files (50 LOC)
  • " *.java" is biggest, containing 94.63% of LOC.
  • " *.sql" is smallest, containing 0.13% of LOC.


*.java35719 LOC (94%) 223 files
*.scala1023 LOC (2%) 16 files
*.xml744 LOC (1%) 13 files
*.aj210 LOC (<1%) 2 files
*.sql50 LOC (<1%) 1 file
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".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 35 files match defined criteria (4,040 LOC, 4.8% vs. main code):
    • 25 *.xml files (3,830 LOC)
    • 10 *.sh files (210 LOC)
  • " *.xml" is biggest, containing 94.8% of LOC.
  • " *.sh" is smallest, containing 5.2% of LOC.


*.xml3830 LOC (94%) 25 files
*.sh210 LOC (5%) 10 files
Other Code
txt
properties
xsl
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 ".*/[Dd]emos?/.*".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Mm]an/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
  • 56 files match defined criteria (3,785 LOC, 4.5% vs. main code):
    • 14 *.md files (1,374 LOC)
    • 11 *.txt files (1,058 LOC)
    • 8 *.java files (466 LOC)
    • 11 *.properties files (355 LOC)
    • 2 *.xml files (314 LOC)
    • 1 *.xsl files (140 LOC)
    • 2 *.svg files (50 LOC)
    • 7 *.ini files (28 LOC)
  • " *.md" is biggest, containing 36.3% of LOC.
  • " *.ini" is smallest, containing 0.74% of LOC.


*.md1374 LOC (36%) 14 files
*.txt1058 LOC (27%) 11 files
*.java466 LOC (12%) 8 files
*.properties355 LOC (9%) 11 files
*.xml314 LOC (8%) 2 files
*.xsl140 LOC (3%) 1 file
*.svg50 LOC (1%) 2 files
*.ini28 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 04:55