0

Roslyn analyzers and source generators

Expected

Actual

Unity 2021.3.11f1 / Rider 2022.2.3

Analyzers: ErrorProne.NET.CoreAnalyzers

Only logging Assets\Subfolder\RethrowError's error. When I remove the subfolders code then logs the Assets\Rethrow's error.

And if I add new subfolder then logs two of them subfolder's error as expected. But still doesnt log the base folder's error.

1 Answers1

0

According to the documentation:

In the Assets root folder, place a ruleset file named Default.ruleset. The rules you define in Default.ruleset apply to all predefined assemblies (for example Assembly-CSharp.dll), and all assemblies that are built using .asmdef files. Source: https://docs.unity3d.com/Manual/roslyn-analyzers.html

Your setup is correct and both scripts should be affected by your Default.ruleset.

I'm struggling with the same issue and added a post to that thread asking for help:

sandolkakos
  • 177
  • 1
  • 5