GoogleCloudPlatform / federated-learning
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
tpl
hcl
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.

main1808 LOC (18%) 50 files
test0 LOC (0%) 0 files
generated2751 LOC (28%) 1 file
build and deployment131 LOC (1%) 7 files
other4895 LOC (51%) 36 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 ".*".
  • 50 files match defined criteria (1,808 LOC, 100.0% vs. main code):
    • 32 *.tf files (1,220 LOC)
    • 16 *.yaml files (563 LOC)
    • 1 *.sql files (20 LOC)
    • 1 *.js files (5 LOC)
  • " *.tf" is biggest, containing 67.48% of LOC.
  • " *.js" is smallest, containing 0.28% of LOC.


*.tf1220 LOC (67%) 32 files
*.yaml563 LOC (31%) 16 files
*.sql20 LOC (1%) 1 file
*.js5 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 paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (2,751 LOC, 152.2% vs. main code). All matches are in *.json files.


*.json2751 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 7 files match defined criteria (131 LOC, 7.2% vs. main code). All matches are in *.sh files.


*.sh131 LOC (100%) 7 files
Other Code
tpl
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 36 files match defined criteria (4,895 LOC, 270.7% vs. main code):
    • 2 *.json files (2,762 LOC)
    • 6 *.md files (1,045 LOC)
    • 18 *.yaml files (819 LOC)
    • 2 *.py files (149 LOC)
    • 2 *.sh files (68 LOC)
    • 2 *.tpl files (33 LOC)
    • 4 *.txt files (19 LOC)
  • " *.json" is biggest, containing 56.42% of LOC.
  • " *.txt" is smallest, containing 0.39% of LOC.


*.json2762 LOC (56%) 2 files
*.md1045 LOC (21%) 6 files
*.yaml819 LOC (16%) 18 files
*.py149 LOC (3%) 2 files
*.sh68 LOC (1%) 2 files
*.tpl33 LOC (<1%) 2 files
*.txt19 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:44