apache / maven-pmd-plugin
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.

main3965 LOC (30%) 161 files
test4139 LOC (31%) 111 files
generated0 LOC (0%) 0 files
build and deployment3294 LOC (24%) 79 files
other1808 LOC (13%) 71 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 ".*".
  • 161 files match defined criteria (3,965 LOC, 100.0% vs. main code):
    • 90 *.java files (3,268 LOC)
    • 47 *.groovy files (347 LOC)
    • 19 *.xml files (306 LOC)
    • 1 *.cgi files (22 LOC)
    • 2 *.cs files (14 LOC)
    • 2 *.js files (8 LOC)
  • " *.java" is biggest, containing 82.42% of LOC.
  • " *.js" is smallest, containing 0.2% of LOC.


*.java3268 LOC (82%) 90 files
*.groovy347 LOC (8%) 47 files
*.xml306 LOC (7%) 19 files
*.cgi22 LOC (<1%) 1 file
*.cs14 LOC (<1%) 2 files
*.js8 LOC (<1%) 2 files
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[-].*".
  • 111 files match defined criteria (4,139 LOC, 104.4% vs. main code):
    • 49 *.xml files (1,896 LOC)
    • 48 *.java files (1,801 LOC)
    • 9 *.html files (333 LOC)
    • 1 *.css files (99 LOC)
    • 2 *.js files (6 LOC)
    • 2 *.jsp files (4 LOC)
  • " *.xml" is biggest, containing 45.81% of LOC.
  • " *.jsp" is smallest, containing 0.1% of LOC.


*.xml1896 LOC (45%) 49 files
*.java1801 LOC (43%) 48 files
*.html333 LOC (8%) 9 files
*.css99 LOC (2%) 1 file
*.js6 LOC (<1%) 2 files
*.jsp4 LOC (<1%) 2 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 79 files match defined criteria (3,294 LOC, 83.1% vs. main code). All matches are in *.xml files.


*.xml3294 LOC (100%) 79 files
Other Code
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 ".*[.]properties".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 71 files match defined criteria (1,808 LOC, 45.6% vs. main code):
    • 68 *.properties files (1,377 LOC)
    • 2 *.md files (424 LOC)
    • 1 *.xml files (7 LOC)
  • " *.properties" is biggest, containing 76.16% of LOC.
  • " *.xml" is smallest, containing 0.39% of LOC.


*.properties1377 LOC (76%) 68 files
*.md424 LOC (23%) 2 files
*.xml7 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:29