We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d69fe7f + ef0db7f commit 36cb31fCopy full SHA for 36cb31f
Rules/UseSingularNouns.cs
@@ -49,7 +49,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName) {
49
String noun = funcNamePieces[1];
50
var ps = System.Data.Entity.Design.PluralizationServices.PluralizationService.CreateService(CultureInfo.GetCultureInfo("en-us"));
51
52
- if (!ps.IsSingular(noun))
+ if (!ps.IsSingular(noun) && ps.IsPlural(noun))
53
{
54
yield return new DiagnosticRecord(string.Format(CultureInfo.CurrentCulture, Strings.UseSingularNounsError, funcAst.Name),
55
funcAst.Extent, GetName(), DiagnosticSeverity.Warning, fileName);
0 commit comments