apache / commons-jcs
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
cgi
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.

main44209 LOC (70%) 450 files
test15797 LOC (25%) 185 files
generated0 LOC (0%) 0 files
build and deployment1624 LOC (2%) 29 files
other1011 LOC (1%) 21 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 ".*".
  • 450 files match defined criteria (44,209 LOC, 100.0% vs. main code):
    • 409 *.java files (38,014 LOC)
    • 39 *.xml files (5,912 LOC)
    • 1 *.jsp files (265 LOC)
    • 1 *.cgi files (18 LOC)
  • " *.java" is biggest, containing 85.99% of LOC.
  • " *.cgi" is smallest, containing 0.04% of LOC.


*.java38014 LOC (85%) 409 files
*.xml5912 LOC (13%) 39 files
*.jsp265 LOC (<1%) 1 file
*.cgi18 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 185 files match defined criteria (15,797 LOC, 35.7% vs. main code):
    • 177 *.java files (15,500 LOC)
    • 7 *.xml files (263 LOC)
    • 1 *.policy files (34 LOC)
  • " *.java" is biggest, containing 98.12% of LOC.
  • " *.policy" is smallest, containing 0.22% of LOC.


*.java15500 LOC (98%) 177 files
*.xml263 LOC (1%) 7 files
*.policy34 LOC (<1%) 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*[.]bat".
  • 29 files match defined criteria (1,624 LOC, 3.7% vs. main code):
    • 11 *.xml files (1,308 LOC)
    • 11 *.bat files (250 LOC)
    • 7 *.sh files (66 LOC)
  • " *.xml" is biggest, containing 80.54% of LOC.
  • " *.sh" is smallest, containing 4.06% of LOC.


*.xml1308 LOC (80%) 11 files
*.bat250 LOC (15%) 11 files
*.sh66 LOC (4%) 7 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 21 files match defined criteria (1,011 LOC, 2.3% vs. main code):
    • 11 *.properties files (416 LOC)
    • 5 *.txt files (296 LOC)
    • 4 *.md files (214 LOC)
    • 1 *.xml files (85 LOC)
  • " *.properties" is biggest, containing 41.15% of LOC.
  • " *.xml" is smallest, containing 8.41% of LOC.


*.properties416 LOC (41%) 11 files
*.txt296 LOC (29%) 5 files
*.md214 LOC (21%) 4 files
*.xml85 LOC (8%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:49