apache / fineract-credit-scorecard
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
gitattributes
classpath
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.

main9143 LOC (92%) 75 files
test198 LOC (2%) 1 file
generated0 LOC (0%) 0 files
build and deployment294 LOC (2%) 9 files
other262 LOC (2%) 7 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 75 files match defined criteria (9,143 LOC, 100.0% vs. main code):
    • 29 *.java files (3,546 LOC)
    • 3 *.css files (1,401 LOC)
    • 5 *.scss files (1,342 LOC)
    • 27 *.py files (875 LOC)
    • 1 *.ipynb files (736 LOC)
    • 1 *.yml files (547 LOC)
    • 6 *.html files (450 LOC)
    • 3 *.js files (246 LOC)
  • " *.java" is biggest, containing 38.78% of LOC.
  • " *.js" is smallest, containing 2.69% of LOC.


*.java3546 LOC (38%) 29 files
*.css1401 LOC (15%) 3 files
*.scss1342 LOC (14%) 5 files
*.py875 LOC (9%) 27 files
*.ipynb736 LOC (8%) 1 file
*.yml547 LOC (5%) 1 file
*.html450 LOC (4%) 6 files
*.js246 LOC (2%) 3 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 ".*_tests[.].*".
  • 1 file matches defined criteria (198 LOC, 2.2% vs. main code). All matches are in *.ipynb files.


*.ipynb198 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 ".*[.]bat".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]sh".
  • 9 files match defined criteria (294 LOC, 3.2% vs. main code):
    • 4 *.gradle files (167 LOC)
    • 2 *.bat files (95 LOC)
    • 1 *.yml files (26 LOC)
    • 1 *.sh files (3 LOC)
    • 1 *.xml files (3 LOC)
  • " *.gradle" is biggest, containing 56.8% of LOC.
  • " *.xml" is smallest, containing 1.02% of LOC.


*.gradle167 LOC (56%) 4 files
*.bat95 LOC (32%) 2 files
*.yml26 LOC (8%) 1 file
*.sh3 LOC (1%) 1 file
*.xml3 LOC (1%) 1 file
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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
  • 7 files match defined criteria (262 LOC, 2.9% vs. main code):
    • 5 *.md files (220 LOC)
    • 1 *.txt files (21 LOC)
    • 1 *.properties files (21 LOC)
  • " *.md" is biggest, containing 83.97% of LOC.
  • " *.properties" is smallest, containing 8.02% of LOC.


*.md220 LOC (83%) 5 files
*.txt21 LOC (8%) 1 file
*.properties21 LOC (8%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:17