Fix error message for non-existent bootstrap file#793
Fix error message for non-existent bootstrap file#793gsherwood merged 1 commit intosquizlabs:masterfrom johnmaguire:bugfix/bootstrap-file-argument
Conversation
|
Additionally, I ran into another bug, but I'm less sure how to solve it properly. One of the ways I was planning to utilize this functionality was by adding the a
For point 2, I had added a log of I added a log in However, it does eventually get parsed. I know because I get an error for a non-existent file, for example. Any direction on where I might look to fix this issue would be appreciated. :) And thank you for this project. |
…ings and also be specified in a ruleset.xml file (ref #793)
|
Thanks for the fix. I also moved the bootstrap file inclusion down to just before the run starts so you can specify it in a ruleset, although you're not going to be able to include it using a relative path just yet. I think that would require a specific bootstrap tag in the ruleset so special processing can take place inside the ruleset processing code. If you need that feature, open a new issue and we can track it there. |
PHP_CodeSniffer::realpath()either returns false, or a file path. We don't need to checkfile_exists()becausePHP_CodeSniffer::realpath()does it for us. However, we do want to show a proper filename in the event that the referenced file does not exist.