apache / airavata-django-portal
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
prettierignore
txt
npmignore
editorconfig
ini
cfg
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.

main42934 LOC (91%) 601 files
test3116 LOC (6%) 20 files
generated0 LOC (0%) 0 files
build and deployment64 LOC (<1%) 5 files
other805 LOC (1%) 16 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 601 files match defined criteria (42,934 LOC, 100.0% vs. main code):
    • 182 *.vue files (21,288 LOC)
    • 153 *.py files (10,119 LOC)
    • 170 *.js files (7,770 LOC)
    • 4 *.css files (1,886 LOC)
    • 87 *.html files (1,515 LOC)
    • 3 *.scss files (309 LOC)
    • 1 *.yml files (33 LOC)
    • 1 *.cfg files (14 LOC)
  • " *.vue" is biggest, containing 49.58% of LOC.
  • " *.cfg" is smallest, containing 0.03% of LOC.


*.vue21288 LOC (49%) 182 files
*.py10119 LOC (23%) 153 files
*.js7770 LOC (18%) 170 files
*.css1886 LOC (4%) 4 files
*.html1515 LOC (3%) 87 files
*.scss309 LOC (<1%) 3 files
*.yml33 LOC (<1%) 1 file
*.cfg14 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 ".*/__mocks?__/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 20 files match defined criteria (3,116 LOC, 7.3% vs. main code):
    • 6 *.js files (1,757 LOC)
    • 13 *.py files (1,352 LOC)
    • 1 *.sh files (7 LOC)
  • " *.js" is biggest, containing 56.39% of LOC.
  • " *.sh" is smallest, containing 0.22% of LOC.


*.js1757 LOC (56%) 6 files
*.py1352 LOC (43%) 13 files
*.sh7 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 ".*[.]bat".
    • 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 ".*([.]|/)webpack([.]|/).*".
  • 5 files match defined criteria (64 LOC, 0.1% vs. main code):
    • 1 *.bat files (28 LOC)
    • 3 *.sh files (26 LOC)
    • 1 *.js files (10 LOC)
  • " *.bat" is biggest, containing 43.75% of LOC.
  • " *.js" is smallest, containing 15.62% of LOC.


*.bat28 LOC (43%) 1 file
*.sh26 LOC (40%) 3 files
*.js10 LOC (15%) 1 file
Other Code
txt
ini
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 ".*[.]md".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]ini".
  • 16 files match defined criteria (805 LOC, 1.9% vs. main code):
    • 8 *.json files (588 LOC)
    • 4 *.md files (165 LOC)
    • 3 *.txt files (41 LOC)
    • 1 *.ini files (11 LOC)
  • " *.json" is biggest, containing 73.04% of LOC.
  • " *.ini" is smallest, containing 1.37% of LOC.


*.json588 LOC (73%) 8 files
*.md165 LOC (20%) 4 files
*.txt41 LOC (5%) 3 files
*.ini11 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 20:11