apache / bigtop
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
diff
spec
properties
cfg
tpl
patch
xsl
pub
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.

main31801 LOC (25%) 342 files
test67032 LOC (54%) 448 files
generated488 LOC (<1%) 1 file
build and deployment5407 LOC (4%) 68 files
other19216 LOC (15%) 148 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
spec
tpl
cfg
xsl
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 342 files match defined criteria (31,801 LOC, 100.0% vs. main code):
    • 39 *.xml files (12,724 LOC)
    • 117 *.java files (4,951 LOC)
    • 18 *.spec files (3,751 LOC)
    • 48 *.pp files (3,443 LOC)
    • 19 *.py files (2,438 LOC)
    • 68 *.yaml files (2,402 LOC)
    • 6 *.scala files (573 LOC)
    • 5 *.tpl files (550 LOC)
    • 1 *.html files (369 LOC)
    • 3 *.groovy files (213 LOC)
    • 2 *.css files (159 LOC)
    • 8 *.rb files (118 LOC)
    • 5 *.cfg files (53 LOC)
    • 1 *.rdf files (32 LOC)
    • 1 *.xsl files (24 LOC)
    • 1 *.pub files (1 LOC)
  • " *.xml" is biggest, containing 40.01% of LOC.
  • " *.pub" is smallest, containing 0% of LOC.


*.xml12724 LOC (40%) 39 files
*.java4951 LOC (15%) 117 files
*.spec3751 LOC (11%) 18 files
*.pp3443 LOC (10%) 48 files
*.py2438 LOC (7%) 19 files
*.yaml2402 LOC (7%) 68 files
*.scala573 LOC (1%) 6 files
*.tpl550 LOC (1%) 5 files
*.html369 LOC (1%) 1 file
*.groovy213 LOC (<1%) 3 files
*.css159 LOC (<1%) 2 files
*.rb118 LOC (<1%) 8 files
*.cfg53 LOC (<1%) 5 files
*.rdf32 LOC (<1%) 1 file
*.xsl24 LOC (<1%) 1 file
*.pub1 LOC (<1%) 1 file
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 ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test_.*".
  • 448 files match defined criteria (67,032 LOC, 210.8% vs. main code):
    • 175 *.xml files (52,387 LOC)
    • 123 *.groovy files (9,088 LOC)
    • 66 *.java files (3,480 LOC)
    • 28 *.py files (905 LOC)
    • 21 *.gradle files (578 LOC)
    • 5 *.scala files (243 LOC)
    • 2 *.sh files (196 LOC)
    • 16 *.yaml files (97 LOC)
    • 10 *.pp files (56 LOC)
    • 2 *.sql files (2 LOC)
  • " *.xml" is biggest, containing 78.15% of LOC.
  • " *.sql" is smallest, containing 0% of LOC.


*.xml52387 LOC (78%) 175 files
*.groovy9088 LOC (13%) 123 files
*.java3480 LOC (5%) 66 files
*.py905 LOC (1%) 28 files
*.gradle578 LOC (<1%) 21 files
*.scala243 LOC (<1%) 5 files
*.sh196 LOC (<1%) 2 files
*.yaml97 LOC (<1%) 16 files
*.pp56 LOC (<1%) 10 files
*.sql2 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 1 file matches defined criteria (488 LOC, 1.5% vs. main code). All matches are in *.gradle files.


*.gradle488 LOC (100%) 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 ".*[.]gradle".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/jenkins/.*[.]groovy".
  • 68 files match defined criteria (5,407 LOC, 17.0% vs. main code):
    • 47 *.sh files (3,690 LOC)
    • 19 *.gradle files (1,139 LOC)
    • 1 *.xml files (402 LOC)
    • 1 *.groovy files (176 LOC)
  • " *.sh" is biggest, containing 68.24% of LOC.
  • " *.groovy" is smallest, containing 3.26% of LOC.


*.sh3690 LOC (68%) 47 files
*.gradle1139 LOC (21%) 19 files
*.xml402 LOC (7%) 1 file
*.groovy176 LOC (3%) 1 file
Other Code
txt
diff
patch
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 ".*/[.]dockerignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]diff".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Ee]xamples/.*".
  • 148 files match defined criteria (19,216 LOC, 60.4% vs. main code):
    • 75 *.txt files (12,378 LOC)
    • 31 *.md files (3,506 LOC)
    • 21 *.diff files (989 LOC)
    • 3 *.patch files (987 LOC)
    • 13 *.properties files (771 LOC)
    • 4 *.json files (564 LOC)
    • 1 *.svg files (21 LOC)
  • " *.txt" is biggest, containing 64.42% of LOC.
  • " *.svg" is smallest, containing 0.11% of LOC.


*.txt12378 LOC (64%) 75 files
*.md3506 LOC (18%) 31 files
*.diff989 LOC (5%) 21 files
*.patch987 LOC (5%) 3 files
*.properties771 LOC (4%) 13 files
*.json564 LOC (2%) 4 files
*.svg21 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:25