liquidev / lintplus

An improved linting plugin for the lite text editor.
59 stars 7 forks source link

Added PHP linter. #6

Closed jgmdev closed 3 years ago

liquidev commented 3 years ago

I'm not familiar with PHP, I suppose the interpreter doesn't ever emit any warnings (only errors)?

Looks good otherwise.

jgmdev commented 3 years ago

I suppose the interpreter doesn't ever emit any warnings (only errors)?

Right, the php built-in linter only checks for syntax errors, every other error is catch at runtime. There are static code analyzers like phan, phpstan and psalm that do report different kind of error levels but I guess a separate linter plugin would be needed to be written for each of those that can analyze entire code bases and run as a background service.

liquidev commented 3 years ago

Yeah, that's fine with me. If anyone needs some extra linting functionality, they can create a separate, more advanced linter that uses one of the analyzers you linked.