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
Originally posted by dotjpg3141 April 17, 2024 How to match specific modifiers of a method? In this example I want to match all public methods.
C#
class Bar { public static async void Fii() { } void Foo() { } }
Rule:
language: csharp rule: kind: method_declaration has: field: modifier regex: ^public$
Playground
The problem here is that users misused kind with field. We can generate an error for it.
The text was updated successfully, but these errors were encountered:
54c31e5
No branches or pull requests
Discussed in #1058
Originally posted by dotjpg3141 April 17, 2024
How to match specific modifiers of a method? In this example I want to match all public methods.
C#
Rule:
Playground
The problem here is that users misused kind with field. We can generate an error for it.
The text was updated successfully, but these errors were encountered: