Skip to content

Commit 631bdc0

Browse files
authored
Rule0005: Add paper source kind dictionaries (#1178)
* Enhance Rule0005CasingMismatchDeclaration: Add severity check for diagnostics and introduce new paper source kind dictionaries * Remove severity check (not working as expected currently)
1 parent f7358b6 commit 631bdc0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

BusinessCentral.LinterCop/Design/Rule0005CasingMismatchDeclaration.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,9 @@ private void AnalyzeTriggerDeclaration(SymbolAnalysisContext ctx, SemanticModel
758758
private static readonly Lazy<ImmutableDictionary<string, string>> _obsoleteStateKindDictionary = CreateEnumDictionary(typeof(FieldClassKind),
759759
typeof(FieldObsoleteStateKind));
760760
private static readonly Lazy<ImmutableDictionary<string, string>> _occurrenceKindDictionary = CreateEnumDictionary<OccurrenceKind>();
761+
private static readonly Lazy<ImmutableDictionary<string, string>> _paperSourceDefaultPageKindDictionary = CreateEnumDictionary<PaperSourceDefaultPageKind>();
762+
private static readonly Lazy<ImmutableDictionary<string, string>> _paperSourceFirstPageKindDictionary = CreateEnumDictionary<PaperSourceFirstPageKind>();
763+
private static readonly Lazy<ImmutableDictionary<string, string>> _paperSourceLastPageKindDictionary = CreateEnumDictionary<PaperSourceLastPageKind>();
761764
private static readonly Lazy<ImmutableDictionary<string, string>> _pageTypeKindDictionary = CreateEnumDictionary<PageTypeKind>();
762765
private static readonly Lazy<ImmutableDictionary<string, string>> _pdfFontEmbeddingKindDictionary = CreateEnumDictionary<PdfFontEmbeddingKind>();
763766
private static readonly Lazy<ImmutableDictionary<string, string>> _readStateKindDictionary = CreateEnumDictionary<ReadStateKind>();
@@ -825,6 +828,9 @@ private void AnalyzeTriggerDeclaration(SymbolAnalysisContext ctx, SemanticModel
825828
{ "Multiplicity", _multiplicityKindKindDictionary },
826829
{ "ObsoleteState", _obsoleteStateKindDictionary },
827830
{ "Occurrence", _occurrenceKindDictionary },
831+
{ "PaperSourceDefaultPage", _paperSourceDefaultPageKindDictionary },
832+
{ "PaperSourceFirstPage", _paperSourceFirstPageKindDictionary },
833+
{ "PaperSourceLastPage", _paperSourceLastPageKindDictionary },
828834
{ "QueryType", _queryTypeKindDictionary },
829835
{ "Scope", _scopeKindDictionary },
830836
{ "ShowAs", _showAsKindDictionary },

0 commit comments

Comments
 (0)