com.unity.multiplayer.sampl.../dotnet-tools
Fernando Cortez 66e05ca1c0
feat: dotnet standards tests + formatting pass on samples [MTT-5183] (#156)
* standards job added per sample project

* indentation

* descriptive job name per project

* relative path to projects

* editorconfig added

* actual netcode standards csproj file

* removing test job, paths sorted

* Invaders formatted

* 2DSpaceShooter formatted

* ClientDriven formatted

* DynamicAddressablesNetworkPrefabs formatted

* MultiplayerUseCases formatted

* changelog addition

* test: update editorconfig

* line separators change

* file in Addressables project formatted

* formatted straggler scripts in invaders
2024-03-14 13:24:11 -04:00
..
netcode.standards feat: dotnet standards tests + formatting pass on samples [MTT-5183] (#156) 2024-03-14 13:24:11 -04:00
.gitignore feat: dotnet standards tests + formatting pass on samples [MTT-5183] (#156) 2024-03-14 13:24:11 -04:00
README.md feat: dotnet standards tests + formatting pass on samples [MTT-5183] (#156) 2024-03-14 13:24:11 -04:00

README.md

.NET Tools for Unity Netcode

Netcode.Standards

C# coding standards tool for Netcode that relies on .editorconfig ruleset and dotnet format tool

How to Install & Uninstall

Build (Pack)

dotnet pack dotnet-tools/netcode.standards

Install

dotnet tool install --global --add-source ./dotnet-tools/netcode.standards netcode.standards

Check

netcode.standards --help

Uninstall

dotnet tool uninstall --global netcode.standards

How to Use

Commands

Check

# check for standards issues without touching files
netcode.standards --check

Fix

# try to fix standards issues and save file changes
netcode.standards --fix

Options

Specifying at least one of --check or --fix is required.

However, you can also specify other options to configure the tool.

Option Description
--project <project> Target project folder [default: testproject]
--pattern <pattern> Search pattern string [default: *.sln]
--verbosity <verbosity> Logs verbosity level [default: normal]
-?, -h, --help Show help and usage information