diff --git a/Design/Rule0033AppManifestRuntimeBehind.cs b/Design/Rule0033AppManifestRuntimeBehind.cs index ddbd2538..e5278f61 100644 --- a/Design/Rule0033AppManifestRuntimeBehind.cs +++ b/Design/Rule0033AppManifestRuntimeBehind.cs @@ -1,4 +1,5 @@ -using Microsoft.Dynamics.Nav.Analyzers.Common.AppSourceCopConfiguration; +//using Microsoft.Dynamics.Nav.Analyzers.Common.AppSourceCopConfiguration; // AL Language v12 +using Microsoft.Dynamics.Nav.Analyzers.Common; // AL Language v13 using Microsoft.Dynamics.Nav.CodeAnalysis; using Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics; using Microsoft.Dynamics.Nav.CodeAnalysis.Packaging; @@ -15,7 +16,8 @@ class Rule0033AppManifestRuntimeBehind : DiagnosticAnalyzer private void CheckAppManifestRuntime(CompilationAnalysisContext ctx) { - NavAppManifest manifest = AppSourceCopConfigurationProvider.GetManifest(ctx.Compilation); + //NavAppManifest manifest = AppSourceCopConfigurationProvider.GetManifest(ctx.Compilation); // AL Language v12 + NavAppManifest manifest = ManifestHelper.GetManifest(ctx.Compilation); // AL Language v13 if (manifest == null) return; if (manifest.Runtime == null) return; if (manifest.Application == null && manifest.Platform == null) return; diff --git a/Design/Rule0052and0053InternalProceduresNotReferenced.cs b/Design/Rule0052and0053InternalProceduresNotReferenced.cs index 13532ca7..75c5ae87 100644 --- a/Design/Rule0052and0053InternalProceduresNotReferenced.cs +++ b/Design/Rule0052and0053InternalProceduresNotReferenced.cs @@ -5,14 +5,18 @@ using Microsoft.Dynamics.Nav.CodeAnalysis.Symbols; using Microsoft.Dynamics.Nav.CodeAnalysis.Syntax; using Microsoft.Dynamics.Nav.CodeAnalysis.Packaging; -using Microsoft.Dynamics.Nav.Analyzers.Common.AppSourceCopConfiguration; +//using Microsoft.Dynamics.Nav.Analyzers.Common.AppSourceCopConfiguration; // AL Language v12 +using Microsoft.Dynamics.Nav.Analyzers.Common; // AL Language v13 using System.Collections.Immutable; -namespace BusinessCentral.LinterCop.Design { +namespace BusinessCentral.LinterCop.Design +{ [DiagnosticAnalyzer] - public class Rule0052InternalProceduresNotReferencedAnalyzer : DiagnosticAnalyzer { + public class Rule0052InternalProceduresNotReferencedAnalyzer : DiagnosticAnalyzer + { - private class MethodSymbolAnalyzer : IDisposable { + private class MethodSymbolAnalyzer : IDisposable + { private readonly PooledDictionary methodSymbols = PooledDictionary.GetInstance(); private readonly PooledDictionary internalMethodsUnused = PooledDictionary.GetInstance(); @@ -23,8 +27,10 @@ private class MethodSymbolAnalyzer : IDisposable { public MethodSymbolAnalyzer(CompilationAnalysisContext compilationAnalysisContext) { - NavAppManifest manifest = AppSourceCopConfigurationProvider.GetManifest(compilationAnalysisContext.Compilation); - if(manifest.InternalsVisibleTo != null && manifest.InternalsVisibleTo.Any()) { + //NavAppManifest manifest = AppSourceCopConfigurationProvider.GetManifest(compilationAnalysisContext.Compilation); // AL Language v12 + NavAppManifest manifest = ManifestHelper.GetManifest(compilationAnalysisContext.Compilation); // AL Language v13 + if (manifest.InternalsVisibleTo != null && manifest.InternalsVisibleTo.Any()) + { return; }