-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
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
Improve the error message shown for AG0018: #155
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Joel Dickson <[email protected]>
@szaboopeeter I think we should expand our list of supported interfaces. Is there a list we maintain as allowed? |
@inemtsev It's an option, but I wouldn't couple it together with this PR. I suggest to open an issue if you wanna have a discussion over GH. AgodaAnalyzers/src/Agoda.Analyzers/AgodaCustom/AG0018PermitOnlyCertainPubliclyExposedEnumerables.cs Lines 18 to 26 in 5f80f52
|
@szaboopeeter Our team, would like to use IReadOnlyCollection<> which results in quite a bit of warnings. I can update the docs if we agree to allow this. |
The message shown when
AG0018
is violated is quite confusing:This PR will change it to the following:
Also updated some inconsistencies in how this rule is referred to in other places.
Fixes #149