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
cgi
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.

main7013 LOC (27%) 141 files
test4979 LOC (19%) 78 files
generated379 LOC (1%) 2 files
build and deployment1553 LOC (6%) 12 files
other11879 LOC (46%) 24 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
cgi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 141 files match defined criteria (7,013 LOC, 100.0% vs. main code):
    • 113 *.java files (5,686 LOC)
    • 14 *.xml files (960 LOC)
    • 1 *.py files (200 LOC)
    • 2 *.xsl files (84 LOC)
    • 5 *.css files (45 LOC)
    • 1 *.cgi files (20 LOC)
    • 3 *.html files (11 LOC)
    • 2 *.groovy files (7 LOC)
  • " *.java" is biggest, containing 81.08% of LOC.
  • " *.groovy" is smallest, containing 0.1% of LOC.


*.java5686 LOC (81%) 113 files
*.xml960 LOC (13%) 14 files
*.py200 LOC (2%) 1 file
*.xsl84 LOC (1%) 2 files
*.css45 LOC (<1%) 5 files
*.cgi20 LOC (<1%) 1 file
*.html11 LOC (<1%) 3 files
*.groovy7 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/.*".
  • 78 files match defined criteria (4,979 LOC, 71.0% vs. main code):
    • 62 *.java files (4,236 LOC)
    • 11 *.xml files (642 LOC)
    • 1 *.cs files (54 LOC)
    • 3 *.html files (28 LOC)
    • 1 *.rb files (19 LOC)
  • " *.java" is biggest, containing 85.08% of LOC.
  • " *.rb" is smallest, containing 0.38% of LOC.


*.java4236 LOC (85%) 62 files
*.xml642 LOC (12%) 11 files
*.cs54 LOC (1%) 1 file
*.html28 LOC (<1%) 3 files
*.rb19 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, 5.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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*/build[.]xml".
  • 12 files match defined criteria (1,553 LOC, 22.1% vs. main code). All matches are in *.xml files.


*.xml1553 LOC (100%) 12 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]bzrignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 24 files match defined criteria (11,879 LOC, 169.4% vs. main code):
    • 18 *.txt files (11,762 LOC)
    • 4 *.properties files (67 LOC)
    • 1 *.md files (47 LOC)
    • 1 *.json files (3 LOC)
  • " *.txt" is biggest, containing 99.02% of LOC.
  • " *.json" is smallest, containing 0.03% of LOC.


*.txt11762 LOC (99%) 18 files
*.properties67 LOC (<1%) 4 files
*.md47 LOC (<1%) 1 file
*.json3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:21