apache / polaris
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
mod
prefs
tpl
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.

main73546 LOC (62%) 690 files
test29361 LOC (25%) 340 files
generated4448 LOC (3%) 1 file
build and deployment1227 LOC (1%) 25 files
other8451 LOC (7%) 111 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
prefs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 690 files match defined criteria (73,546 LOC, 100.0% vs. main code):
    • 380 *.java files (37,394 LOC)
    • 182 *.py files (22,005 LOC)
    • 27 *.yaml files (7,122 LOC)
    • 40 *.kts files (2,005 LOC)
    • 2 *.ipynb files (1,655 LOC)
    • 13 *.kt files (1,211 LOC)
    • 21 *.html files (839 LOC)
    • 9 *.mustache files (554 LOC)
    • 1 *.tpl files (307 LOC)
    • 4 *.toml files (195 LOC)
    • 3 *.sql files (158 LOC)
    • 4 *.xml files (63 LOC)
    • 1 *.prefs files (26 LOC)
    • 2 *.scss files (7 LOC)
    • 1 *.js files (5 LOC)
  • " *.java" is biggest, containing 50.84% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.java37394 LOC (50%) 380 files
*.py22005 LOC (29%) 182 files
*.yaml7122 LOC (9%) 27 files
*.kts2005 LOC (2%) 40 files
*.ipynb1655 LOC (2%) 2 files
*.kt1211 LOC (1%) 13 files
*.html839 LOC (1%) 21 files
*.mustache554 LOC (<1%) 9 files
*.tpl307 LOC (<1%) 1 file
*.toml195 LOC (<1%) 4 files
*.sql158 LOC (<1%) 3 files
*.xml63 LOC (<1%) 4 files
*.prefs26 LOC (<1%) 1 file
*.scss7 LOC (<1%) 2 files
*.js5 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 340 files match defined criteria (29,361 LOC, 39.9% vs. main code):
    • 162 *.java files (22,825 LOC)
    • 159 *.py files (3,717 LOC)
    • 15 *.yaml files (2,697 LOC)
    • 2 *.kts files (98 LOC)
    • 2 *.xml files (24 LOC)
  • " *.java" is biggest, containing 77.74% of LOC.
  • " *.xml" is smallest, containing 0.08% of LOC.


*.java22825 LOC (77%) 162 files
*.py3717 LOC (12%) 159 files
*.yaml2697 LOC (9%) 15 files
*.kts98 LOC (<1%) 2 files
*.xml24 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 paths like ".*/generated/.*".
  • 1 file matches defined criteria (4,448 LOC, 6.0% vs. main code). All matches are in *.yaml files.


*.yaml4448 LOC (100%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 25 files match defined criteria (1,227 LOC, 1.7% vs. main code). All matches are in *.sh files.


*.sh1227 LOC (100%) 25 files
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 ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]adoc".
  • 111 files match defined criteria (8,451 LOC, 11.5% vs. main code):
    • 68 *.md files (6,840 LOC)
    • 11 *.properties files (660 LOC)
    • 13 *.json files (443 LOC)
    • 6 *.adoc files (321 LOC)
    • 11 *.txt files (160 LOC)
    • 1 *.mod files (23 LOC)
    • 1 *.svg files (4 LOC)
  • " *.md" is biggest, containing 80.94% of LOC.
  • " *.svg" is smallest, containing 0.05% of LOC.


*.md6840 LOC (80%) 68 files
*.properties660 LOC (7%) 11 files
*.json443 LOC (5%) 13 files
*.adoc321 LOC (3%) 6 files
*.txt160 LOC (1%) 11 files
*.mod23 LOC (<1%) 1 file
*.svg4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:59