apache / atlas
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
properties
txt
tpl
ini
cfg
xsl
in
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.

main198700 LOC (53%) 1,331 files
test52093 LOC (14%) 299 files
generated22503 LOC (6%) 4 files
build and deployment11888 LOC (3%) 93 files
other85332 LOC (23%) 316 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 ".*".
  • 1331 files match defined criteria (198,700 LOC, 100.0% vs. main code):
    • 752 *.java files (112,396 LOC)
    • 257 *.js files (61,583 LOC)
    • 61 *.scss files (11,428 LOC)
    • 168 *.html files (6,824 LOC)
    • 48 *.xml files (3,149 LOC)
    • 33 *.py files (2,325 LOC)
    • 6 *.css files (492 LOC)
    • 4 *.tpl files (306 LOC)
    • 2 *.g4 files (197 LOC)
  • " *.java" is biggest, containing 56.57% of LOC.
  • " *.g4" is smallest, containing 0.1% of LOC.


*.java112396 LOC (56%) 752 files
*.js61583 LOC (30%) 257 files
*.scss11428 LOC (5%) 61 files
*.html6824 LOC (3%) 168 files
*.xml3149 LOC (1%) 48 files
*.py2325 LOC (1%) 33 files
*.css492 LOC (<1%) 6 files
*.tpl306 LOC (<1%) 4 files
*.g4197 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
  • 299 files match defined criteria (52,093 LOC, 26.2% vs. main code):
    • 250 *.java files (44,422 LOC)
    • 18 *.py files (5,569 LOC)
    • 28 *.xml files (2,031 LOC)
    • 2 *.cfg files (69 LOC)
    • 1 *.in files (2 LOC)
  • " *.java" is biggest, containing 85.27% of LOC.
  • " *.in" is smallest, containing 0% of LOC.


*.java44422 LOC (85%) 250 files
*.py5569 LOC (10%) 18 files
*.xml2031 LOC (3%) 28 files
*.cfg69 LOC (<1%) 2 files
*.in2 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".
  • 4 files match defined criteria (22,503 LOC, 11.3% vs. main code). All matches are in *.json files.


*.json22503 LOC (100%) 4 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 93 files match defined criteria (11,888 LOC, 6.0% vs. main code):
    • 45 *.xml files (9,932 LOC)
    • 46 *.sh files (1,858 LOC)
    • 2 *.js files (98 LOC)
  • " *.xml" is biggest, containing 83.55% of LOC.
  • " *.js" is smallest, containing 0.82% of LOC.


*.xml9932 LOC (83%) 45 files
*.sh1858 LOC (15%) 46 files
*.js98 LOC (<1%) 2 files
Other Code
properties
txt
xsl
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/[.]dockerignore".
  • 316 files match defined criteria (85,332 LOC, 42.9% vs. main code):
    • 218 *.json files (77,407 LOC)
    • 10 *.svg files (2,106 LOC)
    • 11 *.java files (1,936 LOC)
    • 37 *.properties files (1,736 LOC)
    • 30 *.txt files (1,416 LOC)
    • 5 *.md files (260 LOC)
    • 2 *.xml files (254 LOC)
    • 1 *.xsl files (165 LOC)
    • 2 *.ini files (52 LOC)
  • " *.json" is biggest, containing 90.71% of LOC.
  • " *.ini" is smallest, containing 0.06% of LOC.


*.json77407 LOC (90%) 218 files
*.svg2106 LOC (2%) 10 files
*.java1936 LOC (2%) 11 files
*.properties1736 LOC (2%) 37 files
*.txt1416 LOC (1%) 30 files
*.md260 LOC (<1%) 5 files
*.xml254 LOC (<1%) 2 files
*.xsl165 LOC (<1%) 1 file
*.ini52 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:00