twitter / focus
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
snap
txt
ini
gitattributes
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.

main23342 LOC (81%) 127 files
test3419 LOC (11%) 37 files
generated0 LOC (0%) 0 files
build and deployment149 LOC (<1%) 5 files
other1830 LOC (6%) 35 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 ".*".
  • 127 files match defined criteria (23,342 LOC, 100.0% vs. main code):
    • 109 *.rs files (22,877 LOC)
    • 13 *.toml files (438 LOC)
    • 4 *.java files (22 LOC)
    • 1 *.bzl files (5 LOC)
  • " *.rs" is biggest, containing 98.01% of LOC.
  • " *.bzl" is smallest, containing 0.02% of LOC.


*.rs22877 LOC (98%) 109 files
*.toml438 LOC (1%) 13 files
*.java22 LOC (<1%) 4 files
*.bzl5 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*__tests__.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/testing[.].*".
  • 37 files match defined criteria (3,419 LOC, 14.6% vs. main code):
    • 36 *.snap files (3,263 LOC)
    • 1 *.rs files (156 LOC)
  • " *.snap" is biggest, containing 95.44% of LOC.
  • " *.rs" is smallest, containing 4.56% of LOC.


*.snap3263 LOC (95%) 36 files
*.rs156 LOC (4%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 5 files match defined criteria (149 LOC, 0.6% vs. main code). All matches are in *.sh files.


*.sh149 LOC (100%) 5 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 35 files match defined criteria (1,830 LOC, 7.8% vs. main code):
    • 13 *.json files (1,487 LOC)
    • 6 *.md files (231 LOC)
    • 14 *.txt files (48 LOC)
    • 1 *.rs files (46 LOC)
    • 1 *.ini files (18 LOC)
  • " *.json" is biggest, containing 81.26% of LOC.
  • " *.ini" is smallest, containing 0.98% of LOC.


*.json1487 LOC (81%) 13 files
*.md231 LOC (12%) 6 files
*.txt48 LOC (2%) 14 files
*.rs46 LOC (2%) 1 file
*.ini18 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 12:00