GoogleCloudPlatform / functions-framework-dart
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
plist
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.

main2824 LOC (21%) 87 files
test2034 LOC (15%) 31 files
generated1625 LOC (12%) 12 files
build and deployment112 LOC (<1%) 2 files
other6470 LOC (49%) 128 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 ".*".
  • 87 files match defined criteria (2,824 LOC, 100.0% vs. main code):
    • 60 *.dart files (2,430 LOC)
    • 27 *.yaml files (394 LOC)
  • " *.dart" is biggest, containing 86.05% of LOC.
  • " *.yaml" is smallest, containing 13.95% of LOC.


*.dart2430 LOC (86%) 60 files
*.yaml394 LOC (13%) 27 files
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 ".*_test[.].*".
  • 31 files match defined criteria (2,034 LOC, 72.0% vs. main code):
    • 28 *.dart files (2,025 LOC)
    • 3 *.yaml files (9 LOC)
  • " *.dart" is biggest, containing 99.56% of LOC.
  • " *.yaml" is smallest, containing 0.44% of LOC.


*.dart2025 LOC (99%) 28 files
*.yaml9 LOC (<1%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]dart" AND any line of content like ".*GENERATED CODE.*DO NOT MODIFY.*".
  • 12 files match defined criteria (1,625 LOC, 57.5% vs. main code). All matches are in *.dart files.


*.dart1625 LOC (100%) 12 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (112 LOC, 4.0% vs. main code). All matches are in *.sh files.


*.sh112 LOC (100%) 2 files
Other Code
txt
plist
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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]xib".
  • 128 files match defined criteria (6,470 LOC, 229.1% vs. main code):
    • 52 *.dart files (3,092 LOC)
    • 22 *.md files (1,554 LOC)
    • 5 *.cpp files (365 LOC)
    • 5 *.txt files (361 LOC)
    • 1 *.xib files (339 LOC)
    • 15 *.yaml files (193 LOC)
    • 6 *.json files (148 LOC)
    • 8 *.h files (127 LOC)
    • 4 *.cc files (86 LOC)
    • 1 *.html files (79 LOC)
    • 3 *.plist files (48 LOC)
    • 2 *.cmake files (36 LOC)
    • 3 *.swift files (24 LOC)
    • 1 *.sh files (18 LOC)
  • " *.dart" is biggest, containing 47.79% of LOC.
  • " *.sh" is smallest, containing 0.28% of LOC.


*.dart3092 LOC (47%) 52 files
*.md1554 LOC (24%) 22 files
*.cpp365 LOC (5%) 5 files
*.txt361 LOC (5%) 5 files
*.xib339 LOC (5%) 1 file
*.yaml193 LOC (2%) 15 files
*.json148 LOC (2%) 6 files
*.h127 LOC (1%) 8 files
*.cc86 LOC (1%) 4 files
*.html79 LOC (1%) 1 file
*.plist48 LOC (<1%) 3 files
*.cmake36 LOC (<1%) 2 files
*.swift24 LOC (<1%) 3 files
*.sh18 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:29