Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DominicWatts/3a36f94bef8ef572d7b25237c3cd969e to your computer and use it in GitHub Desktop.
Save DominicWatts/3a36f94bef8ef572d7b25237c3cd969e to your computer and use it in GitHub Desktop.
PHP : Phpcs disable exclude cheatsheet markup tags cheatsheet #php
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
// phpcs:disable Magento2.Files.LineLength.MaxExceeded
// phpcs:disable Magento2.Files.LineLength
// phpcs:disable Generic
// phpcs:disable Generic.Files.LineLength
/* @noEscape */
// phpcs:ignoreFile
$stuff = [1,2,3]; // phpcs:ignore
// phpcs:disable Generic,Squiz,Magento2
// phpcs:disable Magento2.Exceptions
// phpcs:disable
$stuff = [1,2,3];
// phpcs:enable
// phpcs:disable Generic.Metrics.NestingLevel
// phpcs:disable Generic.CodeAnalysis.UselessOverridingMethod
// phpcs:disable Generic.WhiteSpace.ScopeIndent
// phpcs:disable Magento2.Classes.AbstractApi
// phpcs:disable Magento2.Classes.DiscouragedDependencies
// phpcs:disable Magento2.CodeAnalysis.EmptyBlock
// phpcs:disable Magento2.Exceptions.ThrowCatch
// phpcs:disable Magento2.Exceptions.DirectThrow
// phpcs:disable Magento2.Functions.DiscouragedFunction
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag
// phpcs:disable Magento2.Security.IncludeFile
// phpcs:disable Magento2.Security.InsecureFunction
// phpcs:disable Magento2.Templates.ThisInTemplate
// phpcs:disable Squiz.Commenting.ClassComment.Missing
// phpcs:disable Squiz.ControlStructures.ControlSignature
// phpcs:disable Squiz.Functions.GlobalFunction
// phpcs:disable Squiz.PHP.GlobalKeyword.NotAllowed
// phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore
// phpcs:disable Squiz.WhiteSpace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment