apache / griffin
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
editorconfig
orc
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.

main27288 LOC (58%) 354 files
test6981 LOC (14%) 105 files
generated0 LOC (0%) 0 files
build and deployment1391 LOC (2%) 11 files
other11188 LOC (23%) 90 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 354 files match defined criteria (27,288 LOC, 100.0% vs. main code):
    • 135 *.scala files (7,616 LOC)
    • 106 *.java files (7,160 LOC)
    • 43 *.ts files (4,207 LOC)
    • 28 *.html files (3,844 LOC)
    • 28 *.css files (2,839 LOC)
    • 5 *.sql files (800 LOC)
    • 1 *.py files (395 LOC)
    • 6 *.xml files (353 LOC)
    • 2 *.js files (74 LOC)
  • " *.scala" is biggest, containing 27.91% of LOC.
  • " *.js" is smallest, containing 0.27% of LOC.


*.scala7616 LOC (27%) 135 files
*.java7160 LOC (26%) 106 files
*.ts4207 LOC (15%) 43 files
*.html3844 LOC (14%) 28 files
*.css2839 LOC (10%) 28 files
*.sql800 LOC (2%) 5 files
*.py395 LOC (1%) 1 file
*.xml353 LOC (1%) 6 files
*.js74 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
orc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/protractor[.]conf[.]js".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 105 files match defined criteria (6,981 LOC, 25.6% vs. main code):
    • 36 *.java files (3,433 LOC)
    • 29 *.scala files (2,343 LOC)
    • 33 *.ts files (887 LOC)
    • 3 *.sql files (231 LOC)
    • 2 *.js files (56 LOC)
    • 1 *.html files (17 LOC)
    • 1 *.orc files (14 LOC)
  • " *.java" is biggest, containing 49.18% of LOC.
  • " *.orc" is smallest, containing 0.2% of LOC.


*.java3433 LOC (49%) 36 files
*.scala2343 LOC (33%) 29 files
*.ts887 LOC (12%) 33 files
*.sql231 LOC (3%) 3 files
*.js56 LOC (<1%) 2 files
*.html17 LOC (<1%) 1 file
*.orc14 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 ".*/pom[.]xml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly[.]xml".
  • 11 files match defined criteria (1,391 LOC, 5.1% vs. main code):
    • 5 *.xml files (1,183 LOC)
    • 5 *.sh files (151 LOC)
    • 1 *.js files (57 LOC)
  • " *.xml" is biggest, containing 85.05% of LOC.
  • " *.js" is smallest, containing 4.1% of LOC.


*.xml1183 LOC (85%) 5 files
*.sh151 LOC (10%) 5 files
*.js57 LOC (4%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
  • 90 files match defined criteria (11,188 LOC, 41.0% vs. main code):
    • 30 *.md files (6,153 LOC)
    • 47 *.json files (4,514 LOC)
    • 11 *.properties files (500 LOC)
    • 2 *.txt files (21 LOC)
  • " *.md" is biggest, containing 55% of LOC.
  • " *.txt" is smallest, containing 0.19% of LOC.


*.md6153 LOC (54%) 30 files
*.json4514 LOC (40%) 47 files
*.properties500 LOC (4%) 11 files
*.txt21 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:08