Skip to content

Commit c05bcf2

Browse files
committed
Change the check to !isSingular() to avoid confusions
1 parent 6c388d1 commit c05bcf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules/UseSingularNouns.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName) {
4949
String noun = funcNamePieces[1];
5050
var ps = System.Data.Entity.Design.PluralizationServices.PluralizationService.CreateService(CultureInfo.GetCultureInfo("en-us"));
5151

52-
if (ps.IsPlural(noun))
52+
if (!ps.IsSingular(noun))
5353
{
5454
yield return new DiagnosticRecord(string.Format(CultureInfo.CurrentCulture, Strings.UseSingularNounsError, funcAst.Name),
5555
funcAst.Extent, GetName(), DiagnosticSeverity.Warning, fileName);

0 commit comments

Comments
 (0)