GoogleCloudPlatform / iam-federation-tools
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
resx
properties
cfg
txt
csproj
xsl
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.

main8087 LOC (57%) 99 files
test5047 LOC (35%) 44 files
generated242 LOC (1%) 1 file
build and deployment157 LOC (1%) 3 files
other531 LOC (3%) 7 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 99 files match defined criteria (8,087 LOC, 100.0% vs. main code):
    • 59 *.cs files (6,005 LOC)
    • 33 *.java files (1,755 LOC)
    • 2 *.ps1 files (146 LOC)
    • 2 *.html files (101 LOC)
    • 1 *.xsl files (59 LOC)
    • 2 *.cfg files (21 LOC)
  • " *.cs" is biggest, containing 74.25% of LOC.
  • " *.cfg" is smallest, containing 0.26% of LOC.


*.cs6005 LOC (74%) 59 files
*.java1755 LOC (21%) 33 files
*.ps1146 LOC (1%) 2 files
*.html101 LOC (1%) 2 files
*.xsl59 LOC (<1%) 1 file
*.cfg21 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 44 files match defined criteria (5,047 LOC, 62.4% vs. main code):
    • 28 *.cs files (3,499 LOC)
    • 14 *.java files (1,182 LOC)
    • 1 *.ps1 files (347 LOC)
    • 1 *.csproj files (19 LOC)
  • " *.cs" is biggest, containing 69.33% of LOC.
  • " *.csproj" is smallest, containing 0.38% of LOC.


*.cs3499 LOC (69%) 28 files
*.java1182 LOC (23%) 14 files
*.ps1347 LOC (6%) 1 file
*.csproj19 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 any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 1 file matches defined criteria (242 LOC, 3.0% vs. main code). All matches are in *.svg files.


*.svg242 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
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 ".*[.]csproj".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/pom[.]xml".
  • 3 files match defined criteria (157 LOC, 1.9% vs. main code):
    • 1 *.xml files (97 LOC)
    • 1 *.bat files (33 LOC)
    • 1 *.csproj files (27 LOC)
  • " *.xml" is biggest, containing 61.78% of LOC.
  • " *.csproj" is smallest, containing 17.2% of LOC.


*.xml97 LOC (61%) 1 file
*.bat33 LOC (21%) 1 file
*.csproj27 LOC (17%) 1 file
Other Code
txt
properties
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 ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 7 files match defined criteria (531 LOC, 6.6% vs. main code):
    • 1 *.svg files (242 LOC)
    • 1 *.txt files (170 LOC)
    • 3 *.md files (83 LOC)
    • 2 *.properties files (36 LOC)
  • " *.svg" is biggest, containing 45.57% of LOC.
  • " *.properties" is smallest, containing 6.78% of LOC.


*.svg242 LOC (45%) 1 file
*.txt170 LOC (32%) 1 file
*.md83 LOC (15%) 3 files
*.properties36 LOC (6%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:48