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

main10722 LOC (26%) 129 files
test17310 LOC (43%) 87 files
generated0 LOC (0%) 0 files
build and deployment1911 LOC (4%) 21 files
other9942 LOC (24%) 67 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 ".*".
  • 129 files match defined criteria (10,722 LOC, 100.0% vs. main code):
    • 82 *.java files (8,969 LOC)
    • 44 *.xml files (1,731 LOC)
    • 1 *.cgi files (20 LOC)
    • 2 *.css files (2 LOC)
  • " *.java" is biggest, containing 83.65% of LOC.
  • " *.css" is smallest, containing 0.02% of LOC.


*.java8969 LOC (83%) 82 files
*.xml1731 LOC (16%) 44 files
*.cgi20 LOC (<1%) 1 file
*.css2 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/.*".
  • 87 files match defined criteria (17,310 LOC, 161.4% vs. main code):
    • 86 *.java files (17,216 LOC)
    • 1 *.pl files (94 LOC)
  • " *.java" is biggest, containing 99.46% of LOC.
  • " *.pl" is smallest, containing 0.54% of LOC.


*.java17216 LOC (99%) 86 files
*.pl94 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 ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly/src[.]xml".
  • 21 files match defined criteria (1,911 LOC, 17.8% vs. main code):
    • 20 *.xml files (1,874 LOC)
    • 1 *.sh files (37 LOC)
  • " *.xml" is biggest, containing 98.06% of LOC.
  • " *.sh" is smallest, containing 1.94% of LOC.


*.xml1874 LOC (98%) 20 files
*.sh37 LOC (1%) 1 file
Other Code
txt
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
  • 67 files match defined criteria (9,942 LOC, 92.7% vs. main code):
    • 26 *.java files (5,235 LOC)
    • 20 *.txt files (3,039 LOC)
    • 19 *.md files (1,489 LOC)
    • 2 *.xml files (179 LOC)
  • " *.java" is biggest, containing 52.66% of LOC.
  • " *.xml" is smallest, containing 1.8% of LOC.


*.java5235 LOC (52%) 26 files
*.txt3039 LOC (30%) 20 files
*.md1489 LOC (14%) 19 files
*.xml179 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 17:29