JetBrains / JetBrains/resharper-unity

Add warning for ExecuteAlways on wrong target

Open
#2,083 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Unity has several attributes that do not specify a target, but are only used on a specific entity - e.g. `[SerializedField]` is only applicable to fields, but can be applied to classes and methods. We have an inspection for this to show a warning if an attribute is applied to the wrong target. Add support for `[ExecuteAlways]` ([introduced in 2018.3](https://ngtools.tech/uv/UnityEngine.ExecuteAlways/)). It should be applied to classes only.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.