We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SA1134 prevents attributes from sharing the line with other code.
Consider this line of code:
public bool? DisableCaching { get; [UsedImplicitly] set; }
[UseImplicitly] is a Resharper annotation to avoid "Auto-property accessor never used warning" (UnusedAutoPropertyAccessor.Global).
[UseImplicitly]
Making this auto-property span over three lines just to avoid SA1134 seems wrong:
Disabling the rule also "costs" three lines:
#pragma warning disable SA1134 public bool? DisableBundling { get; [UsedImplicitly] set; } #pragma warning restore SA1134
Can we have an exception for SA1134 for this case (like we already have for attributes for (type) parameters)?
The text was updated successfully, but these errors were encountered:
Related to (but not a duplicate of) #1938
Sorry, something went wrong.
No branches or pull requests
SA1134 prevents attributes from sharing the line with other code.
Consider this line of code:
[UseImplicitly]
is a Resharper annotation to avoid "Auto-property accessor never used warning" (UnusedAutoPropertyAccessor.Global).Making this auto-property span over three lines just to avoid SA1134 seems wrong:
Disabling the rule also "costs" three lines:
Can we have an exception for SA1134 for this case (like we already have for attributes for (type) parameters)?
The text was updated successfully, but these errors were encountered: