apache / age
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
mod
gitattributes
l
y
properties
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.

main44135 LOC (90%) 201 files
test2195 LOC (4%) 14 files
generated0 LOC (0%) 0 files
build and deployment260 LOC (<1%) 4 files
other2404 LOC (4%) 30 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
y
l
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 201 files match defined criteria (44,135 LOC, 100.0% vs. main code):
    • 49 *.c files (22,867 LOC)
    • 48 *.sql files (9,034 LOC)
    • 1 *.y files (2,897 LOC)
    • 12 *.go files (2,339 LOC)
    • 17 *.py files (1,683 LOC)
    • 45 *.h files (1,657 LOC)
    • 5 *.ts files (1,210 LOC)
    • 1 *.l files (1,071 LOC)
    • 16 *.java files (747 LOC)
    • 3 *.g4 files (291 LOC)
    • 1 *.pm files (186 LOC)
    • 1 *.pl files (108 LOC)
    • 2 *.kts files (45 LOC)
  • " *.c" is biggest, containing 51.81% of LOC.
  • " *.kts" is smallest, containing 0.1% of LOC.


*.c22867 LOC (51%) 49 files
*.sql9034 LOC (20%) 48 files
*.y2897 LOC (6%) 1 file
*.go2339 LOC (5%) 12 files
*.py1683 LOC (3%) 17 files
*.h1657 LOC (3%) 45 files
*.ts1210 LOC (2%) 5 files
*.l1071 LOC (2%) 1 file
*.java747 LOC (1%) 16 files
*.g4291 LOC (<1%) 3 files
*.pm186 LOC (<1%) 1 file
*.pl108 LOC (<1%) 1 file
*.kts45 LOC (<1%) 2 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 ".*/test_.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*_test[.].*".
  • 14 files match defined criteria (2,195 LOC, 5.0% vs. main code):
    • 3 *.py files (834 LOC)
    • 5 *.java files (672 LOC)
    • 3 *.go files (526 LOC)
    • 2 *.ts files (159 LOC)
    • 1 *.js files (4 LOC)
  • " *.py" is biggest, containing 38% of LOC.
  • " *.js" is smallest, containing 0.18% of LOC.


*.py834 LOC (37%) 3 files
*.java672 LOC (30%) 5 files
*.go526 LOC (23%) 3 files
*.ts159 LOC (7%) 2 files
*.js4 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 4 files match defined criteria (260 LOC, 0.6% vs. main code):
    • 2 *.bat files (148 LOC)
    • 2 *.sh files (112 LOC)
  • " *.bat" is biggest, containing 56.92% of LOC.
  • " *.sh" is smallest, containing 43.08% of LOC.


*.bat148 LOC (56%) 2 files
*.sh112 LOC (43%) 2 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]dockerignore".
  • 30 files match defined criteria (2,404 LOC, 5.4% vs. main code):
    • 4 *.ipynb files (1,314 LOC)
    • 8 *.md files (568 LOC)
    • 3 *.go files (211 LOC)
    • 9 *.svg files (103 LOC)
    • 2 *.json files (92 LOC)
    • 1 *.java files (80 LOC)
    • 1 *.mod files (31 LOC)
    • 1 *.txt files (4 LOC)
    • 1 *.py files (1 LOC)
  • " *.ipynb" is biggest, containing 54.66% of LOC.
  • " *.py" is smallest, containing 0.04% of LOC.


*.ipynb1314 LOC (54%) 4 files
*.md568 LOC (23%) 8 files
*.go211 LOC (8%) 3 files
*.svg103 LOC (4%) 9 files
*.json92 LOC (3%) 2 files
*.java80 LOC (3%) 1 file
*.mod31 LOC (1%) 1 file
*.txt4 LOC (<1%) 1 file
*.py1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:14