Rider warning on Unity project due to incorrect namespace

28 views Asked by At

Rider is showing a warning on all my C# scripts because they do not have "GameName.Scripts" in the beggining of their namespace.

Rider offers a checkbox on a folder's property to prevent them to be namespace providers. Unchecking this checkbox in the folder Scripts and GameName solves my problem but it creates one .DotSettings file for each asmdef in my project (in my case there are 52 new files).

Is there any other way to solve this without having to create so many files?

1

There are 1 answers

0
Ivan Skorikov On

You can navigate to Settings | Editor | Inspection Settings | Inspection Severity | C# and disable the Namespace does not correspond to file location inspection. Consider saving this setting only for the current project by opening the drop-down menu for the Save button and selecting Solution personal or Solution team-shared layer.