apache / kafka-site
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
eps
htaccess
txt
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.

main379284 LOC (68%) 1,056 files
test7193 LOC (1%) 21 files
generated167102 LOC (30%) 355 files
build and deployment3 LOC (<1%) 1 file
other1234 LOC (<1%) 514 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 ".*".
  • 1056 files match defined criteria (379,284 LOC, 100.0% vs. main code):
    • 1,016 *.html files (374,579 LOC)
    • 6 *.css files (3,510 LOC)
    • 6 *.htm files (627 LOC)
    • 28 *.js files (568 LOC)
  • " *.html" is biggest, containing 98.76% of LOC.
  • " *.js" is smallest, containing 0.15% of LOC.


*.html374579 LOC (98%) 1,016 files
*.css3510 LOC (<1%) 6 files
*.htm627 LOC (<1%) 6 files
*.js568 LOC (<1%) 28 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 ".*/testing[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 21 files match defined criteria (7,193 LOC, 1.9% vs. main code). All matches are in *.html files.


*.html7193 LOC (100%) 21 files
Generated Code
Automatically generated files, not manually changed after generation.
eps
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with paths like ".*[.](ps|eps|pfa)".
  • 355 files match defined criteria (167,102 LOC, 44.1% vs. main code):
    • 341 *.html files (107,777 LOC)
    • 6 *.eps files (53,936 LOC)
    • 8 *.yaml files (5,389 LOC)
  • " *.html" is biggest, containing 64.5% of LOC.
  • " *.yaml" is smallest, containing 3.22% of LOC.


*.html107777 LOC (64%) 341 files
*.eps53936 LOC (32%) 6 files
*.yaml5389 LOC (3%) 8 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (3 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh3 LOC (100%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]htaccess".
  • 514 files match defined criteria (1,234 LOC, 0.3% vs. main code):
    • 500 *.html files (976 LOC)
    • 10 *.svg files (220 LOC)
    • 4 *.md files (38 LOC)
  • " *.html" is biggest, containing 79.09% of LOC.
  • " *.md" is smallest, containing 3.08% of LOC.


*.html976 LOC (79%) 500 files
*.svg220 LOC (17%) 10 files
*.md38 LOC (3%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:55