aws / amazon-gamelift-plugin-unity
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
mat
txt
npmignore
csproj
editorconfig
anim
asset
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.

main45034 LOC (67%) 350 files
test8912 LOC (13%) 64 files
generated11692 LOC (17%) 691 files
build and deployment38 LOC (<1%) 1 file
other775 LOC (1%) 19 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mat
anim
asset
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 350 files match defined criteria (45,034 LOC, 100.0% vs. main code):
    • 304 *.cs files (19,641 LOC)
    • 5 *.xml files (14,630 LOC)
    • 10 *.prefab files (5,625 LOC)
    • 2 *.unity files (3,007 LOC)
    • 14 *.py files (908 LOC)
    • 8 *.mat files (608 LOC)
    • 1 *.anim files (548 LOC)
    • 5 *.ps1 files (49 LOC)
    • 1 *.asset files (18 LOC)
  • " *.cs" is biggest, containing 43.61% of LOC.
  • " *.asset" is smallest, containing 0.04% of LOC.


*.cs19641 LOC (43%) 304 files
*.xml14630 LOC (32%) 5 files
*.prefab5625 LOC (12%) 10 files
*.unity3007 LOC (6%) 2 files
*.py908 LOC (2%) 14 files
*.mat608 LOC (1%) 8 files
*.anim548 LOC (1%) 1 file
*.ps149 LOC (<1%) 5 files
*.asset18 LOC (<1%) 1 file
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]ests/.*".
    • files with paths like ".*/test[.].*".
  • 64 files match defined criteria (8,912 LOC, 19.8% vs. main code):
    • 61 *.cs files (8,474 LOC)
    • 3 *.py files (438 LOC)
  • " *.cs" is biggest, containing 95.09% of LOC.
  • " *.py" is smallest, containing 4.91% of LOC.


*.cs8474 LOC (95%) 61 files
*.py438 LOC (4%) 3 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[:] .*".
  • 691 files match defined criteria (11,692 LOC, 26.0% vs. main code). All matches are in *.meta files.


*.meta11692 LOC (100%) 691 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 ".*[.]csproj".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (38 LOC, 0.1% vs. main code). All matches are in *.csproj files.


*.csproj38 LOC (100%) 1 file
Other Code
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 ".*[.]json".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 19 files match defined criteria (775 LOC, 1.7% vs. main code):
    • 10 *.md files (593 LOC)
    • 9 *.json files (182 LOC)
  • " *.md" is biggest, containing 76.52% of LOC.
  • " *.json" is smallest, containing 23.48% of LOC.


*.md593 LOC (76%) 10 files
*.json182 LOC (23%) 9 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:37