Skip to content

Commit

Permalink
Disabled WordPress.WhiteSpace.PrecisionAlignment.Found from checks
Browse files Browse the repository at this point in the history
This warning is constantly being thrown on the HTML code where
attributes in tags are being moved on the new line:

Example:

<a href="https://example.com/"
   target="_blank">
...
^
|
This will trigger error, since there are 3 spaces and not standard 4.
  • Loading branch information
konstantinnovastar committed Feb 15, 2023
1 parent 038efd7 commit ed3b852
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found"/>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>/src/view/</exclude-pattern>
Expand Down

0 comments on commit ed3b852

Please sign in to comment.