apache / incubator-s2graph
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
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.

main28968 LOC (72%) 354 files
test6753 LOC (16%) 69 files
generated0 LOC (0%) 0 files
build and deployment242 LOC (<1%) 10 files
other4004 LOC (10%) 33 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 (28,968 LOC, 100.0% vs. main code):
    • 310 *.scala files (26,786 LOC)
    • 5 *.java files (526 LOC)
    • 11 *.graphql files (479 LOC)
    • 3 *.sql files (373 LOC)
    • 15 *.sbt files (358 LOC)
    • 3 *.py files (200 LOC)
    • 4 *.xml files (115 LOC)
    • 1 *.html files (111 LOC)
    • 1 *.hql files (19 LOC)
    • 1 *.css files (1 LOC)
  • " *.scala" is biggest, containing 92.47% of LOC.
  • " *.css" is smallest, containing 0% of LOC.


*.scala26786 LOC (92%) 310 files
*.java526 LOC (1%) 5 files
*.graphql479 LOC (1%) 11 files
*.sql373 LOC (1%) 3 files
*.sbt358 LOC (1%) 15 files
*.py200 LOC (<1%) 3 files
*.xml115 LOC (<1%) 4 files
*.html111 LOC (<1%) 1 file
*.hql19 LOC (<1%) 1 file
*.css1 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/.*".
  • 69 files match defined criteria (6,753 LOC, 23.3% vs. main code). All matches are in *.scala files.


*.scala6753 LOC (100%) 69 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]bat".
  • 10 files match defined criteria (242 LOC, 0.8% vs. main code):
    • 8 *.sh files (190 LOC)
    • 1 *.bat files (27 LOC)
    • 1 *.yml files (25 LOC)
  • " *.sh" is biggest, containing 78.51% of LOC.
  • " *.yml" is smallest, containing 10.33% of LOC.


*.sh190 LOC (78%) 8 files
*.bat27 LOC (11%) 1 file
*.yml25 LOC (10%) 1 file
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[Ee]xamples/.*".
  • 33 files match defined criteria (4,004 LOC, 13.8% vs. main code):
    • 10 *.md files (2,059 LOC)
    • 12 *.rst files (1,712 LOC)
    • 7 *.properties files (177 LOC)
    • 3 *.groovy files (53 LOC)
    • 1 *.sh files (3 LOC)
  • " *.md" is biggest, containing 51.42% of LOC.
  • " *.sh" is smallest, containing 0.07% of LOC.


*.md2059 LOC (51%) 10 files
*.rst1712 LOC (42%) 12 files
*.properties177 LOC (4%) 7 files
*.groovy53 LOC (1%) 3 files
*.sh3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 16:12