apache / maven-enforcer
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
cgi
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.

main5885 LOC (31%) 155 files
test4024 LOC (21%) 54 files
generated0 LOC (0%) 0 files
build and deployment7244 LOC (39%) 179 files
other1336 LOC (7%) 70 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cgi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 155 files match defined criteria (5,885 LOC, 100.0% vs. main code):
    • 75 *.java files (5,326 LOC)
    • 12 *.xml files (285 LOC)
    • 67 *.groovy files (252 LOC)
    • 1 *.cgi files (22 LOC)
  • " *.java" is biggest, containing 90.5% of LOC.
  • " *.cgi" is smallest, containing 0.37% of LOC.


*.java5326 LOC (90%) 75 files
*.xml285 LOC (4%) 12 files
*.groovy252 LOC (4%) 67 files
*.cgi22 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/.*".
    • files with paths like ".*[-]test[-].*".
  • 54 files match defined criteria (4,024 LOC, 68.4% vs. main code):
    • 41 *.java files (3,718 LOC)
    • 13 *.xml files (306 LOC)
  • " *.java" is biggest, containing 92.4% of LOC.
  • " *.xml" is smallest, containing 7.6% of LOC.


*.java3718 LOC (92%) 41 files
*.xml306 LOC (7%) 13 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 ".*/pom[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 179 files match defined criteria (7,244 LOC, 123.1% vs. main code):
    • 177 *.xml files (7,222 LOC)
    • 1 *.bat files (20 LOC)
    • 1 *.sh files (2 LOC)
  • " *.xml" is biggest, containing 99.7% of LOC.
  • " *.sh" is smallest, containing 0.03% of LOC.


*.xml7222 LOC (99%) 177 files
*.bat20 LOC (<1%) 1 file
*.sh2 LOC (<1%) 1 file
Other Code
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".
  • 70 files match defined criteria (1,336 LOC, 22.7% vs. main code):
    • 68 *.properties files (1,193 LOC)
    • 2 *.md files (143 LOC)
  • " *.properties" is biggest, containing 89.3% of LOC.
  • " *.md" is smallest, containing 10.7% of LOC.


*.properties1193 LOC (89%) 68 files
*.md143 LOC (10%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 10:51