apache / airflow
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
jinja2
pyi
cfg
mako
ini
properties
prettierignore
editorconfig
gitattributes
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.

main379846 LOC (43%) 3,529 files
test391089 LOC (44%) 3,080 files
generated19185 LOC (2%) 9 files
build and deployment15070 LOC (1%) 74 files
other69277 LOC (7%) 542 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jinja2
pyi
cfg
mako
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3529 files match defined criteria (379,846 LOC, 100.0% vs. main code):
    • 2,663 *.py files (283,665 LOC)
    • 149 *.ts files (28,004 LOC)
    • 207 *.yaml files (27,335 LOC)
    • 308 *.tsx files (16,459 LOC)
    • 109 *.toml files (13,279 LOC)
    • 5 *.css files (6,725 LOC)
    • 20 *.js files (1,430 LOC)
    • 35 *.jinja2 files (1,351 LOC)
    • 15 *.html files (673 LOC)
    • 9 *.pyi files (610 LOC)
    • 1 *.ipynb files (95 LOC)
    • 2 *.cfg files (94 LOC)
    • 2 *.mako files (72 LOC)
    • 1 *.rdf files (32 LOC)
    • 1 *.xml files (13 LOC)
    • 2 *.sql files (9 LOC)
  • " *.py" is biggest, containing 74.68% of LOC.
  • " *.sql" is smallest, containing 0% of LOC.


*.py283665 LOC (74%) 2,663 files
*.ts28004 LOC (7%) 149 files
*.yaml27335 LOC (7%) 207 files
*.tsx16459 LOC (4%) 308 files
*.toml13279 LOC (3%) 109 files
*.css6725 LOC (1%) 5 files
*.js1430 LOC (<1%) 20 files
*.jinja21351 LOC (<1%) 35 files
*.html673 LOC (<1%) 15 files
*.pyi610 LOC (<1%) 9 files
*.ipynb95 LOC (<1%) 1 file
*.cfg94 LOC (<1%) 2 files
*.mako72 LOC (<1%) 2 files
*.rdf32 LOC (<1%) 1 file
*.xml13 LOC (<1%) 1 file
*.sql9 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/tests_.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
  • 3080 files match defined criteria (391,089 LOC, 103.0% vs. main code):
    • 3,013 *.py files (388,725 LOC)
    • 9 *.ts files (568 LOC)
    • 13 *.yaml files (411 LOC)
    • 10 *.tsx files (337 LOC)
    • 8 *.xml files (234 LOC)
    • 4 *.sh files (213 LOC)
    • 2 *.ipynb files (183 LOC)
    • 3 *.toml files (174 LOC)
    • 6 *.cfg files (73 LOC)
    • 1 *.go files (69 LOC)
    • 3 *.tf files (40 LOC)
    • 1 *.java files (34 LOC)
    • 7 *.sql files (28 LOC)
  • " *.py" is biggest, containing 99.4% of LOC.
  • " *.sql" is smallest, containing 0.01% of LOC.


*.py388725 LOC (99%) 3,013 files
*.ts568 LOC (<1%) 9 files
*.yaml411 LOC (<1%) 13 files
*.tsx337 LOC (<1%) 10 files
*.xml234 LOC (<1%) 8 files
*.sh213 LOC (<1%) 4 files
*.ipynb183 LOC (<1%) 2 files
*.toml174 LOC (<1%) 3 files
*.cfg73 LOC (<1%) 6 files
*.go69 LOC (<1%) 1 file
*.tf40 LOC (<1%) 3 files
*.java34 LOC (<1%) 1 file
*.sql28 LOC (<1%) 7 files
Generated Code
Automatically generated files, not manually changed after generation.
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
    • files with paths like ".*_generated[.][a-z]+".
    • files with paths like ".*/package[-]lock[.]json".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 9 files match defined criteria (19,185 LOC, 5.1% vs. main code):
    • 3 *.json files (18,092 LOC)
    • 2 *.txt files (635 LOC)
    • 2 *.py files (279 LOC)
    • 2 *.md files (179 LOC)
  • " *.json" is biggest, containing 94.3% of LOC.
  • " *.md" is smallest, containing 0.93% of LOC.


*.json18092 LOC (94%) 3 files
*.txt635 LOC (3%) 2 files
*.py279 LOC (1%) 2 files
*.md179 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/pom[.]xml".
  • 74 files match defined criteria (15,070 LOC, 4.0% vs. main code):
    • 2 *.yaml files (12,372 LOC)
    • 71 *.sh files (2,529 LOC)
    • 1 *.js files (169 LOC)
  • " *.yaml" is biggest, containing 82.1% of LOC.
  • " *.js" is smallest, containing 1.12% of LOC.


*.yaml12372 LOC (82%) 2 files
*.sh2529 LOC (16%) 71 files
*.js169 LOC (1%) 1 file
Other Code
txt
ini
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 542 files match defined criteria (69,277 LOC, 18.2% vs. main code):
    • 120 *.json files (28,930 LOC)
    • 192 *.rst files (26,464 LOC)
    • 79 *.md files (10,347 LOC)
    • 134 *.txt files (1,938 LOC)
    • 13 *.svg files (1,368 LOC)
    • 2 *.ini files (176 LOC)
    • 2 *.properties files (54 LOC)
  • " *.json" is biggest, containing 41.76% of LOC.
  • " *.properties" is smallest, containing 0.08% of LOC.


*.json28930 LOC (41%) 120 files
*.rst26464 LOC (38%) 192 files
*.md10347 LOC (14%) 79 files
*.txt1938 LOC (2%) 134 files
*.svg1368 LOC (1%) 13 files
*.ini176 LOC (<1%) 2 files
*.properties54 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:50