{"title":"CodeCop Warning AA0246","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/codecop-aa0246/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0246, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0246","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Suppressing all diagnostics is not allowed.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"CodeCop Warning AA0246","slug":"codecop-warning-aa0246","at":0,"chars":609},{"level":2,"title":"Description","slug":"description","at":69,"chars":112},{"level":2,"title":"Remarks","slug":"remarks","at":181,"chars":249},{"level":2,"title":"Related information","slug":"related-information","at":430,"chars":179}],"text":"# CodeCop Warning AA0246\nSuppressing all diagnostics is not allowed.\n## Description\nSuppressing all diagnostics is not allowed. Specify the diagnostic(s) that you want to suppress.\n## Remarks\nEnabling this rule allows to enforce that when suppressing diagnostics using the #pragma warning disable, the code(s) of the diagnostics to suppress must be specified instead of suppressing all analyzer diagnostics and compiler warnings.\n## Related information\nCodeCop Analyzer<codecop>\nGetting Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>\n../directives/devenv-directives-in-al"}