Open-SGF / gooddads

1 stars 11 forks source link

Linter ADR: Laravel Backend Static Analysis (phpstan) #67

Closed jason-klein closed 2 months ago

jason-klein commented 3 months ago

This PR implements the Laravel static analysis (from Larastan) as a standard phpstan config file that can be used directly within the IDE to perform static analysis within the IDE.

Static Analysis can also be manually performed by navigating to the project directory and running composer analyse.

Alternatively, you could just add Larastan to the project BUT your IDE cannot leverage the phpstan rules from Larastan directly since they are buried inside the Larastan package.