apache / linkis
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
gitattributes
eslintignore
editorconfig
jshintrc
tpl
gitmodules
cmd
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.

main307999 LOC (64%) 4,758 files
test19446 LOC (4%) 394 files
generated0 LOC (0%) 0 files
build and deployment14066 LOC (2%) 140 files
other134808 LOC (28%) 596 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 4758 files match defined criteria (307,999 LOC, 100.0% vs. main code):
    • 1,786 *.java files (108,115 LOC)
    • 1,707 *.scala files (88,711 LOC)
    • 183 *.vue files (36,715 LOC)
    • 610 *.rb files (28,395 LOC)
    • 169 *.js files (13,662 LOC)
    • 145 *.xml files (12,774 LOC)
    • 41 *.sql files (6,340 LOC)
    • 23 *.yaml files (4,161 LOC)
    • 55 *.scss files (4,040 LOC)
    • 27 *.ts files (3,999 LOC)
    • 2 *.py files (423 LOC)
    • 1 *.tpl files (349 LOC)
    • 2 *.css files (171 LOC)
    • 5 *.less files (114 LOC)
    • 2 *.html files (30 LOC)
  • " *.java" is biggest, containing 35.1% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.java108115 LOC (35%) 1,786 files
*.scala88711 LOC (28%) 1,707 files
*.vue36715 LOC (11%) 183 files
*.rb28395 LOC (9%) 610 files
*.js13662 LOC (4%) 169 files
*.xml12774 LOC (4%) 145 files
*.sql6340 LOC (2%) 41 files
*.yaml4161 LOC (1%) 23 files
*.scss4040 LOC (1%) 55 files
*.ts3999 LOC (1%) 27 files
*.py423 LOC (<1%) 2 files
*.tpl349 LOC (<1%) 1 file
*.css171 LOC (<1%) 2 files
*.less114 LOC (<1%) 5 files
*.html30 LOC (<1%) 2 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/.*".
  • 394 files match defined criteria (19,446 LOC, 6.3% vs. main code):
    • 259 *.java files (14,054 LOC)
    • 111 *.scala files (4,001 LOC)
    • 21 *.sql files (1,311 LOC)
    • 3 *.xml files (80 LOC)
  • " *.java" is biggest, containing 72.27% of LOC.
  • " *.xml" is smallest, containing 0.41% of LOC.


*.java14054 LOC (72%) 259 files
*.scala4001 LOC (20%) 111 files
*.sql1311 LOC (6%) 21 files
*.xml80 LOC (<1%) 3 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
  • 140 files match defined criteria (14,066 LOC, 4.6% vs. main code):
    • 105 *.xml files (12,332 LOC)
    • 35 *.sh files (1,734 LOC)
  • " *.xml" is biggest, containing 87.67% of LOC.
  • " *.sh" is smallest, containing 12.33% of LOC.


*.xml12332 LOC (87%) 105 files
*.sh1734 LOC (12%) 35 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]editorconfig".
  • 596 files match defined criteria (134,808 LOC, 43.8% vs. main code):
    • 512 *.txt files (128,655 LOC)
    • 11 *.json files (2,599 LOC)
    • 55 *.properties files (1,743 LOC)
    • 10 *.md files (1,500 LOC)
    • 8 *.svg files (311 LOC)
  • " *.txt" is biggest, containing 95.44% of LOC.
  • " *.svg" is smallest, containing 0.23% of LOC.


*.txt128655 LOC (95%) 512 files
*.json2599 LOC (1%) 11 files
*.properties1743 LOC (1%) 55 files
*.md1500 LOC (1%) 10 files
*.svg311 LOC (<1%) 8 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:57