Closed ChrisButterworth closed 5 years ago
What do you mean precisely, i tried to reproduce it, but when i have bad indentation, phpcs will complain. For example
/**
* @param SoapClient $soapClient
* @param EventDispatcherInterface $dispatcher
*/
public function __construct(SoapClient $soapClient, EventDispatcherInterface $dispatcher)
{
$this->soapClient = $soapClient;
$this->dispatcher = $dispatcher;
}
will result in:
FILE: ...anvernieuwe/Projects/soap-client/src/Phpro/SoapClient/Client.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
40 | ERROR | [x] Line indented incorrectly; expected at least 8
| | spaces, found 4
41 | ERROR | [x] Line indented incorrectly; expected at least 8
| | spaces, found 4
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
So I have a _dev
folder that contains my vendor
directory with grumphp running in the parent but it doesn't catch anything that isn't in my index.php
or any text indentation issues.
Hi @ChrisButterworth ,
Sorry it took so long, I made a test case in this repo https://github.com/janvernieuwe/grumphp-issue590 It seems to be working for me, can you edit this repo to reproduce it?
Is there a way to get GrumPHP to test indentation?
Happy with all the other errors and warning but this one seems to be completely missing; here's my configuration in case anything is missing