apache / allura
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
cfg
ini
in
gitattributes
jscsrc
jshintrc
babelrc
gitmodules
properties
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.

main79670 LOC (63%) 758 files
test34255 LOC (27%) 206 files
generated3719 LOC (2%) 1 file
build and deployment250 LOC (<1%) 7 files
other8231 LOC (6%) 50 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 758 files match defined criteria (79,670 LOC, 100.0% vs. main code):
    • 339 *.py files (47,406 LOC)
    • 308 *.html files (19,776 LOC)
    • 35 *.css files (5,773 LOC)
    • 47 *.js files (4,976 LOC)
    • 4 *.xml files (742 LOC)
    • 4 *.scss files (666 LOC)
    • 17 *.cfg files (162 LOC)
    • 1 *.toml files (80 LOC)
    • 2 *.in files (72 LOC)
    • 1 *.bash files (17 LOC)
  • " *.py" is biggest, containing 59.5% of LOC.
  • " *.bash" is smallest, containing 0.02% of LOC.


*.py47406 LOC (59%) 339 files
*.html19776 LOC (24%) 308 files
*.css5773 LOC (7%) 35 files
*.js4976 LOC (6%) 47 files
*.xml742 LOC (<1%) 4 files
*.scss666 LOC (<1%) 4 files
*.cfg162 LOC (<1%) 17 files
*.toml80 LOC (<1%) 1 file
*.in72 LOC (<1%) 2 files
*.bash17 LOC (<1%) 1 file
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]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/test[.].*".
  • 206 files match defined criteria (34,255 LOC, 43.0% vs. main code):
    • 205 *.py files (33,961 LOC)
    • 1 *.html files (294 LOC)
  • " *.py" is biggest, containing 99.14% of LOC.
  • " *.html" is smallest, containing 0.86% of LOC.


*.py33961 LOC (99%) 205 files
*.html294 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 paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (3,719 LOC, 4.7% vs. main code). All matches are in *.json files.


*.json3719 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 7 files match defined criteria (250 LOC, 0.3% vs. main code):
    • 6 *.sh files (237 LOC)
    • 1 *.xml files (13 LOC)
  • " *.sh" is biggest, containing 94.8% of LOC.
  • " *.xml" is smallest, containing 5.2% of LOC.


*.sh237 LOC (94%) 6 files
*.xml13 LOC (5%) 1 file
Other Code
txt
ini
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]ini".
  • 50 files match defined criteria (8,231 LOC, 10.3% vs. main code):
    • 9 *.json files (4,125 LOC)
    • 22 *.txt files (2,667 LOC)
    • 5 *.ini files (1,131 LOC)
    • 11 *.md files (242 LOC)
    • 2 *.markdown files (63 LOC)
    • 1 *.properties files (3 LOC)
  • " *.json" is biggest, containing 50.12% of LOC.
  • " *.properties" is smallest, containing 0.04% of LOC.


*.json4125 LOC (50%) 9 files
*.txt2667 LOC (32%) 22 files
*.ini1131 LOC (13%) 5 files
*.md242 LOC (2%) 11 files
*.markdown63 LOC (<1%) 2 files
*.properties3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:40