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

main6954 LOC (58%) 90 files
test2740 LOC (23%) 31 files
generated0 LOC (0%) 0 files
build and deployment145 LOC (1%) 3 files
other1994 LOC (16%) 13 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
prefs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 90 files match defined criteria (6,954 LOC, 100.0% vs. main code):
    • 41 *.java files (4,243 LOC)
    • 19 *.scala files (1,126 LOC)
    • 4 *.xml files (652 LOC)
    • 14 *.kts files (480 LOC)
    • 9 *.kt files (371 LOC)
    • 2 *.toml files (75 LOC)
    • 1 *.prefs files (7 LOC)
  • " *.java" is biggest, containing 61.02% of LOC.
  • " *.prefs" is smallest, containing 0.1% of LOC.


*.java4243 LOC (61%) 41 files
*.scala1126 LOC (16%) 19 files
*.xml652 LOC (9%) 4 files
*.kts480 LOC (6%) 14 files
*.kt371 LOC (5%) 9 files
*.toml75 LOC (1%) 2 files
*.prefs7 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/.*".
  • 31 files match defined criteria (2,740 LOC, 39.4% vs. main code):
    • 30 *.java files (2,723 LOC)
    • 1 *.xml files (17 LOC)
  • " *.java" is biggest, containing 99.38% of LOC.
  • " *.xml" is smallest, containing 0.62% of LOC.


*.java2723 LOC (99%) 30 files
*.xml17 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 3 files match defined criteria (145 LOC, 2.1% vs. main code):
    • 1 *.bat files (73 LOC)
    • 2 *.sh files (72 LOC)
  • " *.bat" is biggest, containing 50.34% of LOC.
  • " *.sh" is smallest, containing 49.66% of LOC.


*.bat73 LOC (50%) 1 file
*.sh72 LOC (49%) 2 files
Other Code
properties
txt
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle.*".
  • 13 files match defined criteria (1,994 LOC, 28.7% vs. main code):
    • 3 *.properties files (1,163 LOC)
    • 5 *.md files (664 LOC)
    • 1 *.xml files (133 LOC)
    • 4 *.txt files (34 LOC)
  • " *.properties" is biggest, containing 58.32% of LOC.
  • " *.txt" is smallest, containing 1.71% of LOC.


*.properties1163 LOC (58%) 3 files
*.md664 LOC (33%) 5 files
*.xml133 LOC (6%) 1 file
*.txt34 LOC (1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 21:07