apache / incubator-nemo
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
proto
editorconfig
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.

main32605 LOC (69%) 480 files
test8264 LOC (17%) 86 files
generated0 LOC (0%) 0 files
build and deployment1035 LOC (2%) 16 files
other4921 LOC (10%) 84 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 480 files match defined criteria (32,605 LOC, 100.0% vs. main code):
    • 452 *.java files (28,426 LOC)
    • 14 *.vue files (2,473 LOC)
    • 2 *.scala files (619 LOC)
    • 1 *.xml files (397 LOC)
    • 3 *.py files (365 LOC)
    • 2 *.proto files (254 LOC)
    • 6 *.js files (71 LOC)
  • " *.java" is biggest, containing 87.18% of LOC.
  • " *.js" is smallest, containing 0.22% of LOC.


*.java28426 LOC (87%) 452 files
*.vue2473 LOC (7%) 14 files
*.scala619 LOC (1%) 2 files
*.xml397 LOC (1%) 1 file
*.py365 LOC (1%) 3 files
*.proto254 LOC (<1%) 2 files
*.js71 LOC (<1%) 6 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/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 86 files match defined criteria (8,264 LOC, 25.3% vs. main code):
    • 78 *.java files (7,747 LOC)
    • 6 *.js files (431 LOC)
    • 2 *.xml files (86 LOC)
  • " *.java" is biggest, containing 93.74% of LOC.
  • " *.xml" is smallest, containing 1.04% of LOC.


*.java7747 LOC (93%) 78 files
*.js431 LOC (5%) 6 files
*.xml86 LOC (1%) 2 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 ".*/package[.]json".
  • 16 files match defined criteria (1,035 LOC, 3.2% vs. main code):
    • 14 *.xml files (1,001 LOC)
    • 2 *.sh files (34 LOC)
  • " *.xml" is biggest, containing 96.71% of LOC.
  • " *.sh" is smallest, containing 3.29% of LOC.


*.xml1001 LOC (96%) 14 files
*.sh34 LOC (3%) 2 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 84 files match defined criteria (4,921 LOC, 15.1% vs. main code):
    • 61 *.java files (3,850 LOC)
    • 5 *.xml files (446 LOC)
    • 3 *.md files (245 LOC)
    • 4 *.scala files (191 LOC)
    • 7 *.json files (111 LOC)
    • 2 *.properties files (66 LOC)
    • 2 *.txt files (12 LOC)
  • " *.java" is biggest, containing 78.24% of LOC.
  • " *.txt" is smallest, containing 0.24% of LOC.


*.java3850 LOC (78%) 61 files
*.xml446 LOC (9%) 5 files
*.md245 LOC (4%) 3 files
*.scala191 LOC (3%) 4 files
*.json111 LOC (2%) 7 files
*.properties66 LOC (1%) 2 files
*.txt12 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:12