apache / creadur-rat
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
xsl
tpl
project
classpath
c++
cgi
cmd
xsd
cp
bzrignore
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.

main16018 LOC (36%) 256 files
test10806 LOC (24%) 144 files
generated379 LOC (<1%) 2 files
build and deployment2808 LOC (6%) 19 files
other14219 LOC (32%) 106 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
xsl
cgi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 256 files match defined criteria (16,018 LOC, 100.0% vs. main code):
    • 199 *.java files (13,521 LOC)
    • 24 *.xml files (1,309 LOC)
    • 15 *.groovy files (342 LOC)
    • 3 *.tpl files (294 LOC)
    • 2 *.py files (201 LOC)
    • 4 *.xsl files (190 LOC)
    • 6 *.css files (117 LOC)
    • 1 *.cgi files (20 LOC)
    • 1 *.rb files (19 LOC)
    • 1 *.cpp files (5 LOC)
  • " *.java" is biggest, containing 84.41% of LOC.
  • " *.cpp" is smallest, containing 0.03% of LOC.


*.java13521 LOC (84%) 199 files
*.xml1309 LOC (8%) 24 files
*.groovy342 LOC (2%) 15 files
*.tpl294 LOC (1%) 3 files
*.py201 LOC (1%) 2 files
*.xsl190 LOC (1%) 4 files
*.css117 LOC (<1%) 6 files
*.cgi20 LOC (<1%) 1 file
*.rb19 LOC (<1%) 1 file
*.cpp5 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
tpl
c++
cp
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 144 files match defined criteria (10,806 LOC, 67.5% vs. main code):
    • 101 *.java files (9,615 LOC)
    • 30 *.xml files (995 LOC)
    • 1 *.cs files (54 LOC)
    • 2 *.groovy files (48 LOC)
    • 1 *.tpl files (37 LOC)
    • 3 *.html files (28 LOC)
    • 1 *.cc files (5 LOC)
    • 1 *.cxx files (5 LOC)
    • 1 *.c++ files (5 LOC)
    • 1 *.cpp files (5 LOC)
    • 1 *.cp files (5 LOC)
    • 1 *.c files (4 LOC)
  • " *.java" is biggest, containing 88.98% of LOC.
  • " *.c" is smallest, containing 0.04% of LOC.


*.java9615 LOC (88%) 101 files
*.xml995 LOC (9%) 30 files
*.cs54 LOC (<1%) 1 file
*.groovy48 LOC (<1%) 2 files
*.tpl37 LOC (<1%) 1 file
*.html28 LOC (<1%) 3 files
*.cc5 LOC (<1%) 1 file
*.cxx5 LOC (<1%) 1 file
*.c++5 LOC (<1%) 1 file
*.cpp5 LOC (<1%) 1 file
*.cp5 LOC (<1%) 1 file
*.c4 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 2 files match defined criteria (379 LOC, 2.4% vs. main code). All matches are in *.html files.


*.html379 LOC (100%) 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 ".*/assembly/src[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/build[.]xml".
  • 19 files match defined criteria (2,808 LOC, 17.5% vs. main code). All matches are in *.xml files.


*.xml2808 LOC (100%) 19 files
Other Code
txt
properties
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/changes[.]xml".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[.]bzrignore".
  • 106 files match defined criteria (14,219 LOC, 88.8% vs. main code):
    • 55 *.txt files (12,022 LOC)
    • 6 *.xml files (1,213 LOC)
    • 26 *.md files (743 LOC)
    • 12 *.properties files (131 LOC)
    • 1 *.xsd files (71 LOC)
    • 1 *.rb files (19 LOC)
    • 3 *.json files (13 LOC)
    • 2 *.java files (7 LOC)
  • " *.txt" is biggest, containing 84.55% of LOC.
  • " *.java" is smallest, containing 0.05% of LOC.


*.txt12022 LOC (84%) 55 files
*.xml1213 LOC (8%) 6 files
*.md743 LOC (5%) 26 files
*.properties131 LOC (<1%) 12 files
*.xsd71 LOC (<1%) 1 file
*.rb19 LOC (<1%) 1 file
*.json13 LOC (<1%) 3 files
*.java7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:28