Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="AG0018EnsureThatPubliclyExposedIEnumerableTypes.cs" company="Agoda Company Co., Ltd.">
// <copyright file="AG0018PermitOnlyCertainPubliclyExposedEnumerables.cs" company="Agoda Company Co., Ltd.">
// AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Co., Ltd.. Agoda is part of Priceline (NASDAQ:PCLN)
// </copyright>
using System.Collections.Immutable;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Agoda.Analyzers/AgodaCustom/CustomRulesResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
<value>Prevent use of dynamic</value>
</data>
<data name="AG0018Title" xml:space="preserve">
<value>Ensure that publicly exposed IEnumerable types</value>
<value>Strong return type, we recommend using interfaces over the concrete implementations. Publicly exposed enumerable types must be on our whitelist. e.g. IList, IEnum, etc. </value>
</data>
<data name="AG0026Title" xml:space="preserve">
<value>Use only CSS Selectors to find elements in Selenium tests</value>
Expand Down Expand Up @@ -248,4 +248,4 @@ One exception is logging, where it can be useful to see the exact DC / cluster /
<data name="AG0038Title" xml:space="preserve">
<value>Do not use #region directives</value>
</data>
</root>
</root>