apache / groovy-examples
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
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.

main3423 LOC (84%) 70 files
test20 LOC (<1%) 1 file
generated0 LOC (0%) 0 files
build and deployment263 LOC (6%) 6 files
other353 LOC (8%) 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 ".*".
  • 70 files match defined criteria (3,423 LOC, 100.0% vs. main code):
    • 58 *.groovy files (2,359 LOC)
    • 1 *.css files (480 LOC)
    • 6 *.java files (449 LOC)
    • 2 *.xml files (81 LOC)
    • 1 *.xhtml files (24 LOC)
    • 1 *.htm files (21 LOC)
    • 1 *.html files (9 LOC)
  • " *.groovy" is biggest, containing 68.92% of LOC.
  • " *.html" is smallest, containing 0.26% of LOC.


*.groovy2359 LOC (68%) 58 files
*.css480 LOC (14%) 1 file
*.java449 LOC (13%) 6 files
*.xml81 LOC (2%) 2 files
*.xhtml24 LOC (<1%) 1 file
*.htm21 LOC (<1%) 1 file
*.html9 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 ".*[-]test[-].*".
  • 1 file matches defined criteria (20 LOC, 0.6% vs. main code). All matches are in *.groovy files.


*.groovy20 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/build[.]xml".
  • 6 files match defined criteria (263 LOC, 7.7% vs. main code):
    • 4 *.xml files (156 LOC)
    • 1 *.bat files (61 LOC)
    • 1 *.gradle files (46 LOC)
  • " *.xml" is biggest, containing 59.32% of LOC.
  • " *.gradle" is smallest, containing 17.49% of LOC.


*.xml156 LOC (59%) 4 files
*.bat61 LOC (23%) 1 file
*.gradle46 LOC (17%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • 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".
  • 10 files match defined criteria (353 LOC, 10.3% vs. main code):
    • 7 *.txt files (276 LOC)
    • 2 *.properties files (44 LOC)
    • 1 *.md files (33 LOC)
  • " *.txt" is biggest, containing 78.19% of LOC.
  • " *.md" is smallest, containing 9.35% of LOC.


*.txt276 LOC (78%) 7 files
*.properties44 LOC (12%) 2 files
*.md33 LOC (9%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:20