apache / groovy
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
tpl
xsd
gitattributes
editorconfig
policy
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.

main213786 LOC (46%) 1,784 files
test215218 LOC (46%) 2,663 files
generated694 LOC (<1%) 15 files
build and deployment3970 LOC (<1%) 65 files
other26078 LOC (5%) 189 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1784 files match defined criteria (213,786 LOC, 100.0% vs. main code):
    • 1,420 *.java files (172,040 LOC)
    • 296 *.groovy files (33,684 LOC)
    • 3 *.css files (3,359 LOC)
    • 2 *.g4 files (1,904 LOC)
    • 5 *.xml files (1,556 LOC)
    • 55 *.html files (968 LOC)
    • 1 *.policy files (226 LOC)
    • 1 *.rdf files (34 LOC)
    • 1 *.js files (15 LOC)
  • " *.java" is biggest, containing 80.47% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.java172040 LOC (80%) 1,420 files
*.groovy33684 LOC (15%) 296 files
*.css3359 LOC (1%) 3 files
*.g41904 LOC (<1%) 2 files
*.xml1556 LOC (<1%) 5 files
*.html968 LOC (<1%) 55 files
*.policy226 LOC (<1%) 1 file
*.rdf34 LOC (<1%) 1 file
*.js15 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[-]resources/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
  • 2663 files match defined criteria (215,218 LOC, 100.7% vs. main code):
    • 2,344 *.groovy files (203,351 LOC)
    • 298 *.java files (11,321 LOC)
    • 8 *.xml files (327 LOC)
    • 9 *.tpl files (187 LOC)
    • 1 *.gradle files (21 LOC)
    • 2 *.html files (10 LOC)
    • 1 *.gvy files (1 LOC)
  • " *.groovy" is biggest, containing 94.49% of LOC.
  • " *.gvy" is smallest, containing 0% of LOC.


*.groovy203351 LOC (94%) 2,344 files
*.java11321 LOC (5%) 298 files
*.xml327 LOC (<1%) 8 files
*.tpl187 LOC (<1%) 9 files
*.gradle21 LOC (<1%) 1 file
*.html10 LOC (<1%) 2 files
*.gvy1 LOC (<1%) 1 file
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/.*".
  • 15 files match defined criteria (694 LOC, 0.3% vs. main code). All matches are in *.groovy files.


*.groovy694 LOC (100%) 15 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 ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
  • 65 files match defined criteria (3,970 LOC, 1.9% vs. main code):
    • 64 *.gradle files (3,897 LOC)
    • 1 *.bat files (73 LOC)
  • " *.gradle" is biggest, containing 98.16% of LOC.
  • " *.bat" is smallest, containing 1.84% of LOC.


*.gradle3897 LOC (98%) 64 files
*.bat73 LOC (1%) 1 file
Other Code
txt
properties
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 189 files match defined criteria (26,078 LOC, 12.2% vs. main code):
    • 86 *.adoc files (23,080 LOC)
    • 41 *.txt files (1,393 LOC)
    • 56 *.properties files (1,287 LOC)
    • 1 *.groovy files (139 LOC)
    • 1 *.xml files (83 LOC)
    • 1 *.xsd files (57 LOC)
    • 2 *.md files (33 LOC)
    • 1 *.json files (6 LOC)
  • " *.adoc" is biggest, containing 88.5% of LOC.
  • " *.json" is smallest, containing 0.02% of LOC.


*.adoc23080 LOC (88%) 86 files
*.txt1393 LOC (5%) 41 files
*.properties1287 LOC (4%) 56 files
*.groovy139 LOC (<1%) 1 file
*.xml83 LOC (<1%) 1 file
*.xsd57 LOC (<1%) 1 file
*.md33 LOC (<1%) 2 files
*.json6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:49