Hudi
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
properties
txt
proto
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.

main251281 LOC (53%) 2,460 files
test167939 LOC (35%) 959 files
generated0 LOC (0%) 0 files
build and deployment18585 LOC (3%) 149 files
other30496 LOC (6%) 272 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 ".*".
  • 2460 files match defined criteria (251,281 LOC, 100.0% vs. main code):
    • 1,983 *.java files (188,830 LOC)
    • 394 *.scala files (47,022 LOC)
    • 11 *.g4 files (8,481 LOC)
    • 13 *.xml files (2,612 LOC)
    • 33 *.avsc files (2,449 LOC)
    • 7 *.yml files (993 LOC)
    • 2 *.py files (350 LOC)
    • 9 *.sql files (152 LOC)
    • 1 *.rdf files (142 LOC)
    • 2 *.proto files (103 LOC)
    • 4 *.mustache files (82 LOC)
    • 1 *.thrift files (65 LOC)
  • " *.java" is biggest, containing 75.15% of LOC.
  • " *.thrift" is smallest, containing 0.03% of LOC.


*.java188830 LOC (75%) 1,983 files
*.scala47022 LOC (18%) 394 files
*.g48481 LOC (3%) 11 files
*.xml2612 LOC (1%) 13 files
*.avsc2449 LOC (<1%) 33 files
*.yml993 LOC (<1%) 7 files
*.py350 LOC (<1%) 2 files
*.sql152 LOC (<1%) 9 files
*.rdf142 LOC (<1%) 1 file
*.proto103 LOC (<1%) 2 files
*.mustache82 LOC (<1%) 4 files
*.thrift65 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 959 files match defined criteria (167,939 LOC, 66.8% vs. main code):
    • 743 *.java files (126,026 LOC)
    • 141 *.scala files (33,503 LOC)
    • 49 *.avsc files (6,615 LOC)
    • 9 *.xml files (861 LOC)
    • 9 *.sql files (313 LOC)
    • 1 *.py files (202 LOC)
    • 4 *.yaml files (190 LOC)
    • 1 *.sh files (121 LOC)
    • 2 *.proto files (108 LOC)
  • " *.java" is biggest, containing 75.04% of LOC.
  • " *.proto" is smallest, containing 0.06% of LOC.


*.java126026 LOC (75%) 743 files
*.scala33503 LOC (19%) 141 files
*.avsc6615 LOC (3%) 49 files
*.xml861 LOC (<1%) 9 files
*.sql313 LOC (<1%) 9 files
*.py202 LOC (<1%) 1 file
*.yaml190 LOC (<1%) 4 files
*.sh121 LOC (<1%) 1 file
*.proto108 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 149 files match defined criteria (18,585 LOC, 7.4% vs. main code):
    • 84 *.xml files (16,289 LOC)
    • 65 *.sh files (2,296 LOC)
  • " *.xml" is biggest, containing 87.65% of LOC.
  • " *.sh" is smallest, containing 12.35% of LOC.


*.xml16289 LOC (87%) 84 files
*.sh2296 LOC (12%) 65 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
  • 272 files match defined criteria (30,496 LOC, 12.1% vs. main code):
    • 76 *.json files (14,553 LOC)
    • 43 *.md files (7,751 LOC)
    • 46 *.yaml files (2,509 LOC)
    • 73 *.properties files (2,479 LOC)
    • 18 *.java files (1,749 LOC)
    • 5 *.avsc files (780 LOC)
    • 2 *.xml files (243 LOC)
    • 2 *.scala files (195 LOC)
    • 4 *.sh files (147 LOC)
    • 3 *.txt files (90 LOC)
  • " *.json" is biggest, containing 47.72% of LOC.
  • " *.txt" is smallest, containing 0.3% of LOC.


*.json14553 LOC (47%) 76 files
*.md7751 LOC (25%) 43 files
*.yaml2509 LOC (8%) 46 files
*.properties2479 LOC (8%) 73 files
*.java1749 LOC (5%) 18 files
*.avsc780 LOC (2%) 5 files
*.xml243 LOC (<1%) 2 files
*.scala195 LOC (<1%) 2 files
*.sh147 LOC (<1%) 4 files
*.txt90 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2024-04-08 15:08