twitter / bijection
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
proto
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.

main4859 LOC (49%) 75 files
test2940 LOC (29%) 40 files
generated1760 LOC (17%) 4 files
build and deployment0 LOC (0%) 0 files
other315 LOC (3%) 5 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 ".*".
  • 75 files match defined criteria (4,859 LOC, 100.0% vs. main code):
    • 71 *.scala files (4,014 LOC)
    • 2 *.java files (452 LOC)
    • 2 *.sbt files (393 LOC)
  • " *.scala" is biggest, containing 82.61% of LOC.
  • " *.sbt" is smallest, containing 8.09% of LOC.


*.scala4014 LOC (82%) 71 files
*.java452 LOC (9%) 2 files
*.sbt393 LOC (8%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
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 ".*UnitTests[.][a-zA-Z0-9_]+".
  • 40 files match defined criteria (2,940 LOC, 60.5% vs. main code):
    • 34 *.scala files (2,339 LOC)
    • 4 *.java files (590 LOC)
    • 1 *.proto files (10 LOC)
    • 1 *.sh files (1 LOC)
  • " *.scala" is biggest, containing 79.56% of LOC.
  • " *.sh" is smallest, containing 0.03% of LOC.


*.scala2339 LOC (79%) 34 files
*.java590 LOC (20%) 4 files
*.proto10 LOC (<1%) 1 file
*.sh1 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 any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 4 files match defined criteria (1,760 LOC, 36.2% vs. main code):
    • 2 *.java files (1,012 LOC)
    • 2 *.scala files (748 LOC)
  • " *.java" is biggest, containing 57.5% of LOC.
  • " *.scala" is smallest, containing 42.5% of LOC.


*.java1012 LOC (57%) 2 files
*.scala748 LOC (42%) 2 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
  • 5 files match defined criteria (315 LOC, 6.5% vs. main code):
    • 4 *.md files (314 LOC)
    • 1 *.properties files (1 LOC)
  • " *.md" is biggest, containing 99.68% of LOC.
  • " *.properties" is smallest, containing 0.32% of LOC.


*.md314 LOC (99%) 4 files
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:58