GoogleCloudPlatform / Open_Data_QnA
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
plist
storyboard
properties
ini
in
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.

main16389 LOC (84%) 145 files
test321 LOC (1%) 19 files
generated0 LOC (0%) 0 files
build and deployment311 LOC (1%) 13 files
other2281 LOC (11%) 39 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 145 files match defined criteria (16,389 LOC, 100.0% vs. main code):
    • 29 *.dart files (6,316 LOC)
    • 28 *.py files (2,794 LOC)
    • 5 *.ipynb files (2,293 LOC)
    • 16 *.scss files (1,766 LOC)
    • 26 *.ts files (1,634 LOC)
    • 15 *.html files (586 LOC)
    • 11 *.tf files (539 LOC)
    • 5 *.yaml files (348 LOC)
    • 1 *.toml files (39 LOC)
    • 4 *.xml files (26 LOC)
    • 1 *.in files (24 LOC)
    • 2 *.swift files (19 LOC)
    • 1 *.kt files (4 LOC)
    • 1 *.h files (1 LOC)
  • " *.dart" is biggest, containing 38.54% of LOC.
  • " *.h" is smallest, containing 0.01% of LOC.


*.dart6316 LOC (38%) 29 files
*.py2794 LOC (17%) 28 files
*.ipynb2293 LOC (13%) 5 files
*.scss1766 LOC (10%) 16 files
*.ts1634 LOC (9%) 26 files
*.html586 LOC (3%) 15 files
*.tf539 LOC (3%) 11 files
*.yaml348 LOC (2%) 5 files
*.toml39 LOC (<1%) 1 file
*.xml26 LOC (<1%) 4 files
*.in24 LOC (<1%) 1 file
*.swift19 LOC (<1%) 2 files
*.kt4 LOC (<1%) 1 file
*.h1 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/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]spec[.]ts".
  • 19 files match defined criteria (321 LOC, 2.0% vs. main code):
    • 18 *.ts files (307 LOC)
    • 1 *.dart files (14 LOC)
  • " *.ts" is biggest, containing 95.64% of LOC.
  • " *.dart" is smallest, containing 4.36% of LOC.


*.ts307 LOC (95%) 18 files
*.dart14 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/package[.]json".
  • 13 files match defined criteria (311 LOC, 1.9% vs. main code):
    • 7 *.sh files (175 LOC)
    • 3 *.gradle files (103 LOC)
    • 3 *.xml files (33 LOC)
  • " *.sh" is biggest, containing 56.27% of LOC.
  • " *.xml" is smallest, containing 10.61% of LOC.


*.sh175 LOC (56%) 7 files
*.gradle103 LOC (33%) 3 files
*.xml33 LOC (10%) 3 files
Other Code
plist
storyboard
ini
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Dd]emos?/.*".
  • 39 files match defined criteria (2,281 LOC, 13.9% vs. main code):
    • 9 *.md files (1,535 LOC)
    • 12 *.json files (494 LOC)
    • 5 *.plist files (121 LOC)
    • 2 *.storyboard files (61 LOC)
    • 9 *.svg files (45 LOC)
    • 1 *.ini files (22 LOC)
    • 1 *.properties files (3 LOC)
  • " *.md" is biggest, containing 67.3% of LOC.
  • " *.properties" is smallest, containing 0.13% of LOC.


*.md1535 LOC (67%) 9 files
*.json494 LOC (21%) 12 files
*.plist121 LOC (5%) 5 files
*.storyboard61 LOC (2%) 2 files
*.svg45 LOC (1%) 9 files
*.ini22 LOC (<1%) 1 file
*.properties3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 16:03