Releases: Rockstar04/SublimeLinter-contrib-phpstan
Better re-execution when activate tab
Fix click on tab
1.0.4
Execute PHPStan analysis when the file tab is clicked
So if an error found by PHPStan is located in another file (i.e. wrong type), a new analysis will be automatically triggered when returning to the file after correcting the other one. Previously, we had to save a change to trigger the analysis.
Also, the mapping of error identifiers with regex has been reviewed following @fadrian06's fork
Better error wrapping
1.0.2
Check if error identifier is provided by PHPStan
- identifiers were not provided in older versions of PHPStan, now it is no longer a problem
- additional error wrapping
Codebase overhauled completely
The code base has been reviewed completely:
- Legacy settings have been removed
- The plugin relies only on
phpstan.neonandvendor/autoload.phplocated in the root folder - Improved highlighting of problems found by PHPStan
- PHPStan tips are now displayed (marked with 💡)
Add pyyaml as dependency to allow parsing Neon files
Correct PHPStan startup issue when using NEON files
Thanks @ryanpcmcquen for the pull request #9 that suppresses a notice form PHPStan about loading a configuration file when being called from the linter.
PHPStan Compatibility Release
Thanks @ryanpcmcquen for the pull request #8 the squash a deprecation notice with SublimeLinter
Only use composer's autoloader by default #6
If you still need to autoload the file being linted itself, turn of "use_composer_autoload" and load the file using linter args:
"SublimeLinter.linters.phpstan.args": "--autoload-file=${file}",
"SublimeLinter.linters.phpstan.use_composer_autoload": false
Otherwise this will search for an autoloader from composer and only call phpstan with --autoload-file if it found one.
No PHP code will be executed except the autoloader.
Thanks for the contribution @tikki