apache / trafficcontrol
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
s
spec
properties
txt
cfg
patch
editorconfig
mod
arpa
ini
proto
cmd
webmanifest
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.

main205045 LOC (49%) 2,338 files
test126992 LOC (30%) 884 files
generated12864 LOC (3%) 3 files
build and deployment6481 LOC (1%) 111 files
other64405 LOC (15%) 274 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
spec
cfg
arpa
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2338 files match defined criteria (205,045 LOC, 100.0% vs. main code):
    • 802 *.go files (116,110 LOC)
    • 691 *.js files (24,988 LOC)
    • 176 *.java files (16,935 LOC)
    • 146 *.ts files (15,112 LOC)
    • 280 *.html files (12,776 LOC)
    • 103 *.scss files (7,299 LOC)
    • 18 *.py files (2,996 LOC)
    • 27 *.sql files (2,765 LOC)
    • 15 *.spec files (1,728 LOC)
    • 20 *.xml files (1,080 LOC)
    • 1 *.c files (799 LOC)
    • 27 *.tsx files (652 LOC)
    • 4 *.pl files (470 LOC)
    • 5 *.css files (403 LOC)
    • 3 *.pm files (332 LOC)
    • 9 *.cfg files (166 LOC)
    • 5 *.dockerignore files (126 LOC)
    • 1 *.ps1 files (109 LOC)
    • 2 *.arpa files (84 LOC)
    • 1 *.rdf files (52 LOC)
    • 1 *.yaml files (43 LOC)
    • 1 *.webmanifest files (20 LOC)
  • " *.go" is biggest, containing 56.63% of LOC.
  • " *.webmanifest" is smallest, containing 0.01% of LOC.


*.go116110 LOC (56%) 802 files
*.js24988 LOC (12%) 691 files
*.java16935 LOC (8%) 176 files
*.ts15112 LOC (7%) 146 files
*.html12776 LOC (6%) 280 files
*.scss7299 LOC (3%) 103 files
*.py2996 LOC (1%) 18 files
*.sql2765 LOC (1%) 27 files
*.spec1728 LOC (<1%) 15 files
*.xml1080 LOC (<1%) 20 files
*.c799 LOC (<1%) 1 file
*.tsx652 LOC (<1%) 27 files
*.pl470 LOC (<1%) 4 files
*.css403 LOC (<1%) 5 files
*.pm332 LOC (<1%) 3 files
*.cfg166 LOC (<1%) 9 files
*.dockerignore126 LOC (<1%) 5 files
*.ps1109 LOC (<1%) 1 file
*.arpa84 LOC (<1%) 2 files
*.rdf52 LOC (<1%) 1 file
*.yaml43 LOC (<1%) 1 file
*.webmanifest20 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
spec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
  • 884 files match defined criteria (126,992 LOC, 61.9% vs. main code):
    • 516 *.go files (92,980 LOC)
    • 219 *.ts files (23,322 LOC)
    • 77 *.java files (7,133 LOC)
    • 37 *.py files (1,636 LOC)
    • 20 *.sh files (585 LOC)
    • 1 *.jsx files (541 LOC)
    • 5 *.js files (459 LOC)
    • 1 *.yaml files (89 LOC)
    • 1 *.spec files (67 LOC)
    • 1 *.html files (62 LOC)
    • 3 *.xml files (55 LOC)
    • 1 *.dockerignore files (30 LOC)
    • 1 *.css files (22 LOC)
    • 1 *.bash files (11 LOC)
  • " *.go" is biggest, containing 73.22% of LOC.
  • " *.bash" is smallest, containing 0.01% of LOC.


*.go92980 LOC (73%) 516 files
*.ts23322 LOC (18%) 219 files
*.java7133 LOC (5%) 77 files
*.py1636 LOC (1%) 37 files
*.sh585 LOC (<1%) 20 files
*.jsx541 LOC (<1%) 1 file
*.js459 LOC (<1%) 5 files
*.yaml89 LOC (<1%) 1 file
*.spec67 LOC (<1%) 1 file
*.html62 LOC (<1%) 1 file
*.xml55 LOC (<1%) 3 files
*.dockerignore30 LOC (<1%) 1 file
*.css22 LOC (<1%) 1 file
*.bash11 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 3 files match defined criteria (12,864 LOC, 6.3% vs. main code). All matches are in *.json files.


*.json12864 LOC (100%) 3 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 111 files match defined criteria (6,481 LOC, 3.2% vs. main code):
    • 96 *.sh files (4,951 LOC)
    • 11 *.xml files (1,253 LOC)
    • 3 *.ts files (234 LOC)
    • 1 *.yaml files (43 LOC)
  • " *.sh" is biggest, containing 76.39% of LOC.
  • " *.yaml" is smallest, containing 0.66% of LOC.


*.sh4951 LOC (76%) 96 files
*.xml1253 LOC (19%) 11 files
*.ts234 LOC (3%) 3 files
*.yaml43 LOC (<1%) 1 file
Other Code
properties
mod
ini
patch
txt
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/go[.]mod".
  • 274 files match defined criteria (64,405 LOC, 31.4% vs. main code):
    • 130 *.json files (52,531 LOC)
    • 114 *.md files (11,131 LOC)
    • 14 *.properties files (258 LOC)
    • 5 *.svg files (186 LOC)
    • 2 *.rst files (104 LOC)
    • 1 *.mod files (97 LOC)
    • 2 *.ini files (46 LOC)
    • 4 *.patch files (34 LOC)
    • 2 *.txt files (18 LOC)
  • " *.json" is biggest, containing 81.56% of LOC.
  • " *.txt" is smallest, containing 0.03% of LOC.


*.json52531 LOC (81%) 130 files
*.md11131 LOC (17%) 114 files
*.properties258 LOC (<1%) 14 files
*.svg186 LOC (<1%) 5 files
*.rst104 LOC (<1%) 2 files
*.mod97 LOC (<1%) 1 file
*.ini46 LOC (<1%) 2 files
*.patch34 LOC (<1%) 4 files
*.txt18 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:04