Resharper-unity: No EditorConfig properties for the Unity inspections?

Created on 8 Oct 2019  路  2Comments  路  Source: JetBrains/resharper-unity

Hey,

Thank you for the great work on Unity integration!

Though it seems there are no properties for the .editorconfig specified anywhere for the corresponding unity-specific inspections.

Regular Rider \ Resharper inspections all have properties listed here, but I can't find similar list for the Unity-specific inspections.

It would be really nice to be able to override them from the editorconfig as well ^^

Most helpful comment

It's not documented, but the names for the Unity inspections can be inferred. If you have a warning in code, alt+enter and suppress by comment. You'll get something like:

// ReSharper disable once Unity.ExplicitTagComparison

Take the Unity.ExplicitTagComparison and make it all lowercase, split at word breaks with _ and replace . with _ too. Then prepend resharper_ and append _highlighting. You can then add this to the .editorconfig file:

resharper_unity_explicit_tag_comparison=hint

The value can be error, warning, suggestion, hint or do_no_show.

I'll get it documented as part of the wiki.

All 2 comments

It's not documented, but the names for the Unity inspections can be inferred. If you have a warning in code, alt+enter and suppress by comment. You'll get something like:

// ReSharper disable once Unity.ExplicitTagComparison

Take the Unity.ExplicitTagComparison and make it all lowercase, split at word breaks with _ and replace . with _ too. Then prepend resharper_ and append _highlighting. You can then add this to the .editorconfig file:

resharper_unity_explicit_tag_comparison=hint

The value can be error, warning, suggestion, hint or do_no_show.

I'll get it documented as part of the wiki.

Wow, so glad to hear it's possible!
Will try to use your guide, thank you @citizenmatt ^^

Was this page helpful?
0 / 5 - 0 ratings