Libplanet.Analyzers: Static analysis on Libplanet-powered apps
This Roslyn analyzer checks if code has common mistakes prone to made with
Libplanet-powered game apps. E.g., breaking determinism in IAction
implementations.
<!-- The below Version attribute should match to your Libplanet's version. -->
<PackageReference Include="Libplanet.Analyzers" Version="0.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
If you want to check your script on Unity editor:
- Ensure you use Unity 2020.2 or higher.
- Read the official docs: Roslyn analyzers and ruleset files.
Rules
Rule | |
---|---|
LAA1001 | SystemRandomBreaksActionDeterminism |
LAA1002 | DictionariesOrSetsShouldBeOrderedToEnumerate |