apache / incubator-pegasus
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
ini
txt
patch
properties
mod
clang-format
clang-tidy
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.

main170288 LOC (64%) 995 files
test67424 LOC (25%) 386 files
generated0 LOC (0%) 0 files
build and deployment5758 LOC (2%) 48 files
other18610 LOC (7%) 227 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 ".*".
  • 995 files match defined criteria (170,288 LOC, 100.0% vs. main code):
    • 258 *.cpp files (79,148 LOC)
    • 351 *.h files (35,371 LOC)
    • 200 *.go files (35,319 LOC)
    • 114 *.java files (10,244 LOC)
    • 22 *.py files (3,095 LOC)
    • 10 *.js files (1,908 LOC)
    • 19 *.thrift files (1,719 LOC)
    • 2 *.c files (1,624 LOC)
    • 8 *.scala files (826 LOC)
    • 6 *.cmake files (702 LOC)
    • 2 *.xml files (249 LOC)
    • 1 *.html files (57 LOC)
    • 2 *.sbt files (26 LOC)
  • " *.cpp" is biggest, containing 46.48% of LOC.
  • " *.sbt" is smallest, containing 0.02% of LOC.


*.cpp79148 LOC (46%) 258 files
*.h35371 LOC (20%) 351 files
*.go35319 LOC (20%) 200 files
*.java10244 LOC (6%) 114 files
*.py3095 LOC (1%) 22 files
*.js1908 LOC (1%) 10 files
*.thrift1719 LOC (1%) 19 files
*.c1624 LOC (<1%) 2 files
*.scala826 LOC (<1%) 8 files
*.cmake702 LOC (<1%) 6 files
*.xml249 LOC (<1%) 2 files
*.html57 LOC (<1%) 1 file
*.sbt26 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/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 386 files match defined criteria (67,424 LOC, 39.6% vs. main code):
    • 234 *.cpp files (50,416 LOC)
    • 31 *.java files (8,727 LOC)
    • 42 *.h files (3,406 LOC)
    • 31 *.go files (2,833 LOC)
    • 4 *.py files (801 LOC)
    • 42 *.sh files (718 LOC)
    • 1 *.js files (291 LOC)
    • 1 *.scala files (232 LOC)
  • " *.cpp" is biggest, containing 74.77% of LOC.
  • " *.scala" is smallest, containing 0.34% of LOC.


*.cpp50416 LOC (74%) 234 files
*.java8727 LOC (12%) 31 files
*.h3406 LOC (5%) 42 files
*.go2833 LOC (4%) 31 files
*.py801 LOC (1%) 4 files
*.sh718 LOC (1%) 42 files
*.js291 LOC (<1%) 1 file
*.scala232 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/package[.]json".
  • 48 files match defined criteria (5,758 LOC, 3.4% vs. main code):
    • 47 *.sh files (5,244 LOC)
    • 1 *.xml files (514 LOC)
  • " *.sh" is biggest, containing 91.07% of LOC.
  • " *.xml" is smallest, containing 8.93% of LOC.


*.sh5244 LOC (91%) 47 files
*.xml514 LOC (8%) 1 file
Other Code
ini
txt
mod
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/checkstyle.*".
  • 227 files match defined criteria (18,610 LOC, 10.9% vs. main code):
    • 102 *.ini files (13,062 LOC)
    • 91 *.txt files (3,464 LOC)
    • 22 *.md files (1,624 LOC)
    • 4 *.mod files (254 LOC)
    • 5 *.properties files (132 LOC)
    • 2 *.json files (45 LOC)
    • 1 *.xml files (29 LOC)
  • " *.ini" is biggest, containing 70.19% of LOC.
  • " *.xml" is smallest, containing 0.16% of LOC.


*.ini13062 LOC (70%) 102 files
*.txt3464 LOC (18%) 91 files
*.md1624 LOC (8%) 22 files
*.mod254 LOC (1%) 4 files
*.properties132 LOC (<1%) 5 files
*.json45 LOC (<1%) 2 files
*.xml29 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:54