Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Composer Linting Scripts #211

Merged
merged 2 commits into from
May 28, 2024
Merged

Update Composer Linting Scripts #211

merged 2 commits into from
May 28, 2024

Conversation

Kenneth-Sills
Copy link
Contributor

Just a simple PR, aimed at contributor QoL. This adds lint and lint.fix composer scripts, allowing contributors to run all lint checks (and fixers) in one command without having to look it up.

I've also upped the memory limit of PhpStan being used to 1G (from the 128M default). I needed to manually use these flags for the first cache-less run or I would receive an out-of-memory error.

I added a separate `fix-rector` along the lines of `fix-cs` to respect the
original author's preferred approach. The aliases just make it easy for other
contributors to run all the tools in the correct order without having to
look it up.
The default of 128M was causing consistent crashes for me on Github Codespaces.

Since Rector uses PhpStan in the background, I also upped it's limit. Though
this really shouldn't matter, since Rector can use the existing cache and
needs less memory anyway.
@TomasVotruba
Copy link
Contributor

Looks good :) thank you for contribution 👍

@TomasVotruba TomasVotruba enabled auto-merge (squash) May 28, 2024 01:00
@TomasVotruba TomasVotruba merged commit ccc480d into easy-coding-standard:main May 28, 2024
7 checks passed
@Kenneth-Sills Kenneth-Sills deleted the kesills-lint-script branch May 28, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants