aik099 / CodingStandard

The PHP_CodeSniffer coding standard I'm using on all of my projects
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Exclude "Generic.WhiteSpace.ScopeIndent.IncorrectExact" error for InPortal standard #99

Closed aik099 closed 7 years ago

aik099 commented 7 years ago

In In-Portal the code is indented correctly, but unfortunately all class declaration are 1 TAB away from what's needed.

What we have:

<?php
    class MyClass
    {

    }

What we need:

<?php
class MyClass
{

}

The Generic.WhiteSpace.ScopeIndent sniff is correct for reporting that error, but it does so on every line that opens/closes block (e.g. function/if/while, etc.) and that creates a lot of noise.

For now let's exclude Generic.WhiteSpace.ScopeIndent.IncorrectExact error from In-Portal version of standard.