apache / solr
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
bats
properties
hbs
xsl
mod
cmd
prefs
launch
gitattributes
policy
cfg
project
jsonl
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.

main427704 LOC (46%) 3,708 files
test338644 LOC (36%) 1,509 files
generated0 LOC (0%) 0 files
build and deployment7298 LOC (<1%) 102 files
other155208 LOC (16%) 1,161 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
prefs
policy
hbs
project
mod
launch
cfg
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3708 files match defined criteria (427,704 LOC, 100.0% vs. main code):
    • 2,923 *.java files (368,765 LOC)
    • 542 *.xml files (31,625 LOC)
    • 43 *.css files (9,492 LOC)
    • 21 *.py files (5,040 LOC)
    • 65 *.html files (4,693 LOC)
    • 57 *.kt files (2,420 LOC)
    • 1 *.yaml files (1,662 LOC)
    • 1 *.rdf files (919 LOC)
    • 10 *.xsl files (618 LOC)
    • 1 *.toml files (498 LOC)
    • 3 *.prefs files (420 LOC)
    • 12 *.js files (397 LOC)
    • 2 *.policy files (396 LOC)
    • 1 *.mustache files (252 LOC)
    • 10 *.hbs files (193 LOC)
    • 1 *.kts files (123 LOC)
    • 1 *.project files (73 LOC)
    • 9 *.mod files (68 LOC)
    • 2 *.launch files (40 LOC)
    • 2 *.cfg files (8 LOC)
    • 1 *.jsonl files (2 LOC)
  • " *.java" is biggest, containing 86.22% of LOC.
  • " *.jsonl" is smallest, containing 0% of LOC.


*.java368765 LOC (86%) 2,923 files
*.xml31625 LOC (7%) 542 files
*.css9492 LOC (2%) 43 files
*.py5040 LOC (1%) 21 files
*.html4693 LOC (1%) 65 files
*.kt2420 LOC (<1%) 57 files
*.yaml1662 LOC (<1%) 1 file
*.rdf919 LOC (<1%) 1 file
*.xsl618 LOC (<1%) 10 files
*.toml498 LOC (<1%) 1 file
*.prefs420 LOC (<1%) 3 files
*.js397 LOC (<1%) 12 files
*.policy396 LOC (<1%) 2 files
*.mustache252 LOC (<1%) 1 file
*.hbs193 LOC (<1%) 10 files
*.kts123 LOC (<1%) 1 file
*.project73 LOC (<1%) 1 file
*.mod68 LOC (<1%) 9 files
*.launch40 LOC (<1%) 2 files
*.cfg8 LOC (<1%) 2 files
*.jsonl2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
bats
launch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
  • 1509 files match defined criteria (338,644 LOC, 79.2% vs. main code):
    • 1,446 *.java files (333,951 LOC)
    • 7 *.xml files (1,969 LOC)
    • 29 *.bats files (1,558 LOC)
    • 22 *.sh files (712 LOC)
    • 1 *.html files (269 LOC)
    • 2 *.gradle files (104 LOC)
    • 1 *.bash files (64 LOC)
    • 1 *.launch files (17 LOC)
  • " *.java" is biggest, containing 98.61% of LOC.
  • " *.launch" is smallest, containing 0.01% of LOC.


*.java333951 LOC (98%) 1,446 files
*.xml1969 LOC (<1%) 7 files
*.bats1558 LOC (<1%) 29 files
*.sh712 LOC (<1%) 22 files
*.html269 LOC (<1%) 1 file
*.gradle104 LOC (<1%) 2 files
*.bash64 LOC (<1%) 1 file
*.launch17 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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 102 files match defined criteria (7,298 LOC, 1.7% vs. main code):
    • 87 *.gradle files (6,085 LOC)
    • 13 *.sh files (1,109 LOC)
    • 1 *.bat files (101 LOC)
    • 1 *.js files (3 LOC)
  • " *.gradle" is biggest, containing 83.38% of LOC.
  • " *.js" is smallest, containing 0.04% of LOC.


*.gradle6085 LOC (83%) 87 files
*.sh1109 LOC (15%) 13 files
*.bat101 LOC (1%) 1 file
*.js3 LOC (<1%) 1 file
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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Dd]emos?/.*".
  • 1161 files match defined criteria (155,208 LOC, 36.3% vs. main code):
    • 266 *.adoc files (71,553 LOC)
    • 749 *.txt files (68,299 LOC)
    • 76 *.json files (10,075 LOC)
    • 35 *.md files (1,633 LOC)
    • 6 *.java files (1,165 LOC)
    • 1 *.pl files (844 LOC)
    • 6 *.gradle files (658 LOC)
    • 2 *.svg files (609 LOC)
    • 13 *.properties files (261 LOC)
    • 5 *.css files (86 LOC)
    • 1 *.sh files (14 LOC)
    • 1 *.js files (11 LOC)
  • " *.adoc" is biggest, containing 46.1% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.adoc71553 LOC (46%) 266 files
*.txt68299 LOC (44%) 749 files
*.json10075 LOC (6%) 76 files
*.md1633 LOC (1%) 35 files
*.java1165 LOC (<1%) 6 files
*.pl844 LOC (<1%) 1 file
*.gradle658 LOC (<1%) 6 files
*.svg609 LOC (<1%) 2 files
*.properties261 LOC (<1%) 13 files
*.css86 LOC (<1%) 5 files
*.sh14 LOC (<1%) 1 file
*.js11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:26