GoogleCloudPlatform / iap-desktop
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
csproj
patch
txt
targets
cfg
gitattributes
xsl
vcxproj
editorconfig
admx
wxl
filters
adml
props
wxs
cmd
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.

main71373 LOC (52%) 814 files
test63112 LOC (46%) 472 files
generated672 LOC (<1%) 9 files
build and deployment1338 LOC (<1%) 21 files
other562 LOC (<1%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
wxs
admx
adml
xsl
props
cfg
cmd
wxl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 814 files match defined criteria (71,373 LOC, 100.0% vs. main code):
    • 792 *.cs files (69,820 LOC)
    • 11 *.ps1 files (618 LOC)
    • 1 *.wxs files (399 LOC)
    • 1 *.admx files (197 LOC)
    • 2 *.html files (101 LOC)
    • 1 *.adml files (67 LOC)
    • 1 *.xsl files (59 LOC)
    • 1 *.props files (52 LOC)
    • 2 *.cfg files (25 LOC)
    • 1 *.cmd files (25 LOC)
    • 1 *.wxl files (10 LOC)
  • " *.cs" is biggest, containing 97.82% of LOC.
  • " *.wxl" is smallest, containing 0.01% of LOC.


*.cs69820 LOC (97%) 792 files
*.ps1618 LOC (<1%) 11 files
*.wxs399 LOC (<1%) 1 file
*.admx197 LOC (<1%) 1 file
*.html101 LOC (<1%) 2 files
*.adml67 LOC (<1%) 1 file
*.xsl59 LOC (<1%) 1 file
*.props52 LOC (<1%) 1 file
*.cfg25 LOC (<1%) 2 files
*.cmd25 LOC (<1%) 1 file
*.wxl10 LOC (<1%) 1 file
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 ".*[.][Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*/[Mm]ocks/.*".
  • 472 files match defined criteria (63,112 LOC, 88.4% vs. main code):
    • 459 *.cs files (62,625 LOC)
    • 13 *.csproj files (487 LOC)
  • " *.cs" is biggest, containing 99.23% of LOC.
  • " *.csproj" is smallest, containing 0.77% of LOC.


*.cs62625 LOC (99%) 459 files
*.csproj487 LOC (<1%) 13 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 ".*[.]designer[.](cs|vb)".
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 9 files match defined criteria (672 LOC, 0.9% vs. main code). All matches are in *.cs files.


*.cs672 LOC (100%) 9 files
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 ".*/[.]gitattributes".
  • 21 files match defined criteria (1,338 LOC, 1.9% vs. main code):
    • 19 *.csproj files (1,277 LOC)
    • 2 *.bat files (61 LOC)
  • " *.csproj" is biggest, containing 95.44% of LOC.
  • " *.bat" is smallest, containing 4.56% of LOC.


*.csproj1277 LOC (95%) 19 files
*.bat61 LOC (4%) 2 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]patch".
  • 10 files match defined criteria (562 LOC, 0.8% vs. main code):
    • 6 *.md files (379 LOC)
    • 3 *.txt files (178 LOC)
    • 1 *.json files (5 LOC)
  • " *.md" is biggest, containing 67.44% of LOC.
  • " *.json" is smallest, containing 0.89% of LOC.


*.md379 LOC (67%) 6 files
*.txt178 LOC (31%) 3 files
*.json5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.cs files are analyzed with CSharpAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis (based on namespace heuristics)
  • *.ps1 files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.wxs files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.admx files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.html files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.adml files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.xsl files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.props files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.cfg files are analyzed with CfgAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.cmd files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.wxl files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2025-05-04 15:14