Uber / tree-sitter-go
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
txt
scm
in
npmignore
gitattributes
gyp
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.

main1142 LOC (6%) 12 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other17494 LOC (93%) 19 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
gyp
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 12 files match defined criteria (1,142 LOC, 100.0% vs. main code):
    • 2 *.js files (789 LOC)
    • 2 *.h files (196 LOC)
    • 2 *.rs files (36 LOC)
    • 1 *.swift files (36 LOC)
    • 1 *.toml files (27 LOC)
    • 2 *.in files (21 LOC)
    • 1 *.cc files (19 LOC)
    • 1 *.gyp files (18 LOC)
  • " *.js" is biggest, containing 69.09% of LOC.
  • " *.gyp" is smallest, containing 1.58% of LOC.


*.js789 LOC (69%) 2 files
*.h196 LOC (17%) 2 files
*.rs36 LOC (3%) 2 files
*.swift36 LOC (3%) 1 file
*.toml27 LOC (2%) 1 file
*.in21 LOC (1%) 2 files
*.cc19 LOC (1%) 1 file
*.gyp18 LOC (1%) 1 file
Other Code
txt
scm
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]scm".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 19 files match defined criteria (17,494 LOC, 1531.9% vs. main code):
    • 3 *.json files (9,748 LOC)
    • 4 *.go files (4,952 LOC)
    • 7 *.txt files (2,472 LOC)
    • 3 *.scm files (286 LOC)
    • 2 *.md files (36 LOC)
  • " *.json" is biggest, containing 55.72% of LOC.
  • " *.md" is smallest, containing 0.21% of LOC.


*.json9748 LOC (55%) 3 files
*.go4952 LOC (28%) 4 files
*.txt2472 LOC (14%) 7 files
*.scm286 LOC (1%) 3 files
*.md36 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2024-04-03 14:40