apache / geode-native
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
in
properties
clang-format
clang-tidy
xsd
cfg
vssettings
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.

main207146 LOC (77%) 1,425 files
test49225 LOC (18%) 376 files
generated0 LOC (0%) 0 files
build and deployment176 LOC (<1%) 18 files
other11064 LOC (4%) 218 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
vssettings
in
xsd
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1425 files match defined criteria (207,146 LOC, 100.0% vs. main code):
    • 476 *.cpp files (93,435 LOC)
    • 545 *.hpp files (50,317 LOC)
    • 117 *.cs files (46,522 LOC)
    • 209 *.xml files (7,180 LOC)
    • 14 *.cmake files (4,895 LOC)
    • 23 *.py files (2,590 LOC)
    • 8 *.h files (588 LOC)
    • 8 *.yml files (570 LOC)
    • 13 *.ps1 files (489 LOC)
    • 1 *.vssettings files (292 LOC)
    • 8 *.in files (248 LOC)
    • 2 *.xsd files (19 LOC)
    • 1 *.cfg files (1 LOC)
  • " *.cpp" is biggest, containing 45.11% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.cpp93435 LOC (45%) 476 files
*.hpp50317 LOC (24%) 545 files
*.cs46522 LOC (22%) 117 files
*.xml7180 LOC (3%) 209 files
*.cmake4895 LOC (2%) 14 files
*.py2590 LOC (1%) 23 files
*.h588 LOC (<1%) 8 files
*.yml570 LOC (<1%) 8 files
*.ps1489 LOC (<1%) 13 files
*.vssettings292 LOC (<1%) 1 file
*.in248 LOC (<1%) 8 files
*.xsd19 LOC (<1%) 2 files
*.cfg1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 376 files match defined criteria (49,225 LOC, 23.8% vs. main code):
    • 136 *.cpp files (17,973 LOC)
    • 58 *.cs files (15,990 LOC)
    • 116 *.java files (9,910 LOC)
    • 55 *.hpp files (5,024 LOC)
    • 6 *.xml files (187 LOC)
    • 2 *.h files (63 LOC)
    • 1 *.in files (29 LOC)
    • 1 *.yml files (26 LOC)
    • 1 *.cfg files (23 LOC)
  • " *.cpp" is biggest, containing 36.51% of LOC.
  • " *.cfg" is smallest, containing 0.05% of LOC.


*.cpp17973 LOC (36%) 136 files
*.cs15990 LOC (32%) 58 files
*.java9910 LOC (20%) 116 files
*.hpp5024 LOC (10%) 55 files
*.xml187 LOC (<1%) 6 files
*.h63 LOC (<1%) 2 files
*.in29 LOC (<1%) 1 file
*.yml26 LOC (<1%) 1 file
*.cfg23 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 ".*/docker[-]compose[.]yml".
  • 18 files match defined criteria (176 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh176 LOC (100%) 18 files
Other Code
txt
in
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]properties".
  • 218 files match defined criteria (11,064 LOC, 5.3% vs. main code):
    • 51 *.txt files (3,611 LOC)
    • 29 *.md files (1,629 LOC)
    • 40 *.ps1 files (1,523 LOC)
    • 12 *.json files (1,177 LOC)
    • 20 *.cs files (991 LOC)
    • 17 *.cpp files (754 LOC)
    • 9 *.in files (376 LOC)
    • 6 *.properties files (311 LOC)
    • 21 *.sh files (293 LOC)
    • 6 *.java files (217 LOC)
    • 7 *.hpp files (182 LOC)
  • " *.txt" is biggest, containing 32.64% of LOC.
  • " *.hpp" is smallest, containing 1.64% of LOC.


*.txt3611 LOC (32%) 51 files
*.md1629 LOC (14%) 29 files
*.ps11523 LOC (13%) 40 files
*.json1177 LOC (10%) 12 files
*.cs991 LOC (8%) 20 files
*.cpp754 LOC (6%) 17 files
*.in376 LOC (3%) 9 files
*.properties311 LOC (2%) 6 files
*.sh293 LOC (2%) 21 files
*.java217 LOC (1%) 6 files
*.hpp182 LOC (1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:15