We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c388d1 commit c05bcf2Copy full SHA for c05bcf2
1 file changed
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.IsPlural(noun))
+ if (!ps.IsSingular(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