microsoft / AppCenter-SDK-Unity-Extension
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
meta
cake
nuspec
txt
asset
  • 13 extensions are included in analyses: meta, cs, xml, cake, md, nuspec, gitignore, json, ps1, txt, sh, XML, asset
  • 5 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (2 files).
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
    • exclude files with path like ".*/sokrates_conventions[.]json" (Sokrates scoping conventions) (1 file).
    • exclude files with path like ".*[.]txt" (Text files) (0 files).
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.

main3806 LOC (8%) 31 files
test0 LOC (0%) 0 files
generated2543 LOC (5%) 65 files
build and deployment140 LOC (<1%) 4 files
other36467 LOC (84%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cake
asset
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 31 files match defined criteria (3,806 lines of code, 100.0% vs. main code):
    • 25 *.cs files (3,179 lines of code)
    • 3 *.cake files (253 lines of code)
    • 1 *.ps1 files (198 lines of code)
    • 1 *.xml files (159 lines of code)
    • 1 *.asset files (17 lines of code)
  • " *.cs" is biggest, containing 83.53% of code.
  • " *.asset" is smallest, containing 0.45% of code.


*.cs3179 LOC (83%) 25 files
*.cake253 LOC (6%) 3 files
*.ps1198 LOC (5%) 1 files
*.xml159 LOC (4%) 1 files
*.asset17 LOC (<1%) 1 files
Generated Code
Automatically generated files, not manually changed after generation.
meta
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]meta" AND any line of content like ".*fileFormatVersion[:] .*".
  • 65 files match defined criteria (2,543 lines of code, 66.8% vs. main code). All matches are in *.meta files.


*.meta2543 LOC (100%) 65 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
nuspec
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".
    • files with paths like ".*[.]nuspec".
  • 4 files match defined criteria (140 lines of code, 3.7% vs. main code):
    • 1 *.sh files (79 lines of code)
    • 3 *.nuspec files (61 lines of code)
  • " *.sh" is biggest, containing 56.43% of code.
  • " *.nuspec" is smallest, containing 43.57% of code.


*.sh79 LOC (56%) 1 files
*.nuspec61 LOC (43%) 3 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 10 files match defined criteria (36,467 lines of code, 958.1% vs. main code):
    • 6 *.xml files (36,366 lines of code)
    • 3 *.md files (62 lines of code)
    • 1 *.json files (39 lines of code)
  • " *.xml" is biggest, containing 99.72% of code.
  • " *.json" is smallest, containing 0.11% of code.


*.xml36366 LOC (99%) 6 files
*.md62 LOC (<1%) 3 files
*.json39 LOC (<1%) 1 files
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)
  • *.cake 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
  • *.xml 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
  • *.asset 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


2022-01-30 22:24