apache / incubator-sdap-mudrod
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
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.

main11323 LOC (79%) 155 files
test337 LOC (2%) 4 files
generated0 LOC (0%) 0 files
build and deployment1043 LOC (7%) 5 files
other1483 LOC (10%) 19 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 ".*".
  • 155 files match defined criteria (11,323 LOC, 100.0% vs. main code):
    • 128 *.java files (9,235 LOC)
    • 9 *.xml files (1,032 LOC)
    • 10 *.html files (412 LOC)
    • 3 *.css files (362 LOC)
    • 3 *.js files (266 LOC)
    • 2 *.yml files (16 LOC)
  • " *.java" is biggest, containing 81.56% of LOC.
  • " *.yml" is smallest, containing 0.14% of LOC.


*.java9235 LOC (81%) 128 files
*.xml1032 LOC (9%) 9 files
*.html412 LOC (3%) 10 files
*.css362 LOC (3%) 3 files
*.js266 LOC (2%) 3 files
*.yml16 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/.*".
  • 4 files match defined criteria (337 LOC, 3.0% vs. main code). All matches are in *.java files.


*.java337 LOC (100%) 4 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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 5 files match defined criteria (1,043 LOC, 9.2% vs. main code):
    • 4 *.xml files (1,038 LOC)
    • 1 *.sh files (5 LOC)
  • " *.xml" is biggest, containing 99.52% of LOC.
  • " *.sh" is smallest, containing 0.48% of LOC.


*.xml1038 LOC (99%) 4 files
*.sh5 LOC (<1%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
  • 19 files match defined criteria (1,483 LOC, 13.1% vs. main code):
    • 8 *.txt files (786 LOC)
    • 6 *.properties files (347 LOC)
    • 3 *.md files (246 LOC)
    • 2 *.json files (104 LOC)
  • " *.txt" is biggest, containing 53% of LOC.
  • " *.json" is smallest, containing 7.01% of LOC.


*.txt786 LOC (53%) 8 files
*.properties347 LOC (23%) 6 files
*.md246 LOC (16%) 3 files
*.json104 LOC (7%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:02