apache / flagon
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
ini
in
babelrc
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.

main53394 LOC (74%) 210 files
test3190 LOC (4%) 31 files
generated2310 LOC (3%) 1 file
build and deployment302 LOC (<1%) 6 files
other12506 LOC (17%) 80 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 210 files match defined criteria (53,394 LOC, 100.0% vs. main code):
    • 75 *.js files (29,269 LOC)
    • 47 *.less files (19,099 LOC)
    • 35 *.py files (2,060 LOC)
    • 16 *.ts files (1,279 LOC)
    • 25 *.html files (1,222 LOC)
    • 5 *.scss files (180 LOC)
    • 2 *.toml files (153 LOC)
    • 3 *.css files (75 LOC)
    • 1 *.rdf files (33 LOC)
    • 1 *.in files (24 LOC)
  • " *.js" is biggest, containing 54.82% of LOC.
  • " *.in" is smallest, containing 0.04% of LOC.


*.js29269 LOC (54%) 75 files
*.less19099 LOC (35%) 47 files
*.py2060 LOC (3%) 35 files
*.ts1279 LOC (2%) 16 files
*.html1222 LOC (2%) 25 files
*.scss180 LOC (<1%) 5 files
*.toml153 LOC (<1%) 2 files
*.css75 LOC (<1%) 3 files
*.rdf33 LOC (<1%) 1 file
*.in24 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 ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 31 files match defined criteria (3,190 LOC, 6.0% vs. main code):
    • 11 *.py files (1,827 LOC)
    • 16 *.ts files (1,321 LOC)
    • 3 *.html files (40 LOC)
    • 1 *.js files (2 LOC)
  • " *.py" is biggest, containing 57.27% of LOC.
  • " *.js" is smallest, containing 0.06% of LOC.


*.py1827 LOC (57%) 11 files
*.ts1321 LOC (41%) 16 files
*.html40 LOC (1%) 3 files
*.js2 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 (2,310 LOC, 4.3% vs. main code). All matches are in *.json files.


*.json2310 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]bat".
  • 6 files match defined criteria (302 LOC, 0.6% vs. main code):
    • 5 *.sh files (294 LOC)
    • 1 *.js files (8 LOC)
  • " *.sh" is biggest, containing 97.35% of LOC.
  • " *.js" is smallest, containing 2.65% of LOC.


*.sh294 LOC (97%) 5 files
*.js8 LOC (2%) 1 file
Other Code
ini
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 80 files match defined criteria (12,506 LOC, 23.4% vs. main code):
    • 8 *.svg files (6,328 LOC)
    • 24 *.json files (3,183 LOC)
    • 32 *.md files (2,163 LOC)
    • 2 *.rst files (409 LOC)
    • 3 *.sh files (262 LOC)
    • 3 *.yaml files (84 LOC)
    • 2 *.py files (50 LOC)
    • 2 *.ini files (23 LOC)
    • 4 *.txt files (4 LOC)
  • " *.svg" is biggest, containing 50.6% of LOC.
  • " *.txt" is smallest, containing 0.03% of LOC.


*.svg6328 LOC (50%) 8 files
*.json3183 LOC (25%) 24 files
*.md2163 LOC (17%) 32 files
*.rst409 LOC (3%) 2 files
*.sh262 LOC (2%) 3 files
*.yaml84 LOC (<1%) 3 files
*.py50 LOC (<1%) 2 files
*.ini23 LOC (<1%) 2 files
*.txt4 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:08