apache / incubator-datalab
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
tpl
properties
ini
editorconfig
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.

main133243 LOC (79%) 1,714 files
test12027 LOC (7%) 95 files
generated6 LOC (<1%) 1 file
build and deployment2335 LOC (1%) 32 files
other19758 LOC (11%) 335 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1714 files match defined criteria (133,243 LOC, 100.0% vs. main code):
    • 291 *.py files (43,996 LOC)
    • 687 *.java files (35,926 LOC)
    • 276 *.ts files (15,679 LOC)
    • 123 *.yaml files (8,893 LOC)
    • 65 *.scss files (8,416 LOC)
    • 63 *.html files (7,390 LOC)
    • 80 *.xml files (5,395 LOC)
    • 88 *.tf files (4,258 LOC)
    • 19 *.tpl files (1,525 LOC)
    • 7 *.css files (743 LOC)
    • 10 *.yml files (684 LOC)
    • 4 *.groovy files (317 LOC)
    • 1 *.rb files (21 LOC)
  • " *.py" is biggest, containing 33.02% of LOC.
  • " *.rb" is smallest, containing 0.02% of LOC.


*.py43996 LOC (33%) 291 files
*.java35926 LOC (26%) 687 files
*.ts15679 LOC (11%) 276 files
*.yaml8893 LOC (6%) 123 files
*.scss8416 LOC (6%) 65 files
*.html7390 LOC (5%) 63 files
*.xml5395 LOC (4%) 80 files
*.tf4258 LOC (3%) 88 files
*.tpl1525 LOC (1%) 19 files
*.css743 LOC (<1%) 7 files
*.yml684 LOC (<1%) 10 files
*.groovy317 LOC (<1%) 4 files
*.rb21 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/.*".
  • 95 files match defined criteria (12,027 LOC, 9.0% vs. main code):
    • 89 *.java files (11,827 LOC)
    • 6 *.yaml files (200 LOC)
  • " *.java" is biggest, containing 98.34% of LOC.
  • " *.yaml" is smallest, containing 1.66% of LOC.


*.java11827 LOC (98%) 89 files
*.yaml200 LOC (1%) 6 files
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".
  • 1 file matches defined criteria (6 LOC, 0.0% vs. main code). All matches are in *.json files.


*.json6 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/docker[-]compose[.]yml".
  • 32 files match defined criteria (2,335 LOC, 1.8% vs. main code):
    • 13 *.xml files (1,338 LOC)
    • 18 *.sh files (876 LOC)
    • 1 *.yml files (121 LOC)
  • " *.xml" is biggest, containing 57.3% of LOC.
  • " *.yml" is smallest, containing 5.18% of LOC.


*.xml1338 LOC (57%) 13 files
*.sh876 LOC (37%) 18 files
*.yml121 LOC (5%) 1 file
Other Code
txt
ini
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
  • 335 files match defined criteria (19,758 LOC, 14.8% vs. main code):
    • 288 *.json files (11,646 LOC)
    • 10 *.md files (3,834 LOC)
    • 4 *.svg files (2,424 LOC)
    • 27 *.txt files (1,211 LOC)
    • 2 *.ini files (505 LOC)
    • 4 *.properties files (138 LOC)
  • " *.json" is biggest, containing 58.94% of LOC.
  • " *.properties" is smallest, containing 0.7% of LOC.


*.json11646 LOC (58%) 288 files
*.md3834 LOC (19%) 10 files
*.svg2424 LOC (12%) 4 files
*.txt1211 LOC (6%) 27 files
*.ini505 LOC (2%) 2 files
*.properties138 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:03