apache / solr-sandbox
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
gitattributes
txt
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.

main6187 LOC (45%) 65 files
test6440 LOC (47%) 59 files
generated0 LOC (0%) 0 files
build and deployment547 LOC (4%) 16 files
other340 LOC (2%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 65 files match defined criteria (6,187 LOC, 100.0% vs. main code):
    • 60 *.java files (5,943 LOC)
    • 4 *.xml files (166 LOC)
    • 1 *.py files (78 LOC)
  • " *.java" is biggest, containing 96.06% of LOC.
  • " *.py" is smallest, containing 1.26% of LOC.


*.java5943 LOC (96%) 60 files
*.xml166 LOC (2%) 4 files
*.py78 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/.*".
  • 59 files match defined criteria (6,440 LOC, 104.1% vs. main code):
    • 43 *.java files (5,734 LOC)
    • 16 *.xml files (706 LOC)
  • " *.java" is biggest, containing 89.04% of LOC.
  • " *.xml" is smallest, containing 10.96% of LOC.


*.java5734 LOC (89%) 43 files
*.xml706 LOC (10%) 16 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 16 files match defined criteria (547 LOC, 8.8% vs. main code):
    • 8 *.sh files (211 LOC)
    • 6 *.gradle files (197 LOC)
    • 2 *.bat files (139 LOC)
  • " *.sh" is biggest, containing 38.57% of LOC.
  • " *.bat" is smallest, containing 25.41% of LOC.


*.sh211 LOC (38%) 8 files
*.gradle197 LOC (36%) 6 files
*.bat139 LOC (25%) 2 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 10 files match defined criteria (340 LOC, 5.5% vs. main code):
    • 5 *.md files (330 LOC)
    • 5 *.properties files (10 LOC)
  • " *.md" is biggest, containing 97.06% of LOC.
  • " *.properties" is smallest, containing 2.94% of LOC.


*.md330 LOC (97%) 5 files
*.properties10 LOC (2%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:22