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

Integrate sidz/phpstan-rules to avoid magic numbers in our code base #1861

Merged
merged 2 commits into from
May 15, 2023

Conversation

maks-rafalko
Copy link
Member

This is a PHPStan plugin from our @sidz

No magic numbers!

@maks-rafalko maks-rafalko requested a review from sidz May 15, 2023 08:33
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?

@maks-rafalko
Copy link
Member Author

maks-rafalko commented May 15, 2023

Could you please add tests to make sure this change works as expected?

unrelated, but thanks for the service

devTools/phpstan-src.neon Outdated Show resolved Hide resolved
@maks-rafalko maks-rafalko changed the title Integrade sidz/phpstan-rules to avoid magic numbers in our code base Integrate sidz/phpstan-rules to avoid magic numbers in our code base May 15, 2023
@maks-rafalko maks-rafalko enabled auto-merge (squash) May 15, 2023 08:41
@maks-rafalko maks-rafalko requested a review from sidz May 15, 2023 12:01
Copy link
Member

@sidz sidz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@maks-rafalko maks-rafalko merged commit 586f241 into master May 15, 2023
40 checks passed
@maks-rafalko maks-rafalko deleted the feature/magic-numbers branch May 15, 2023 12:15
@maks-rafalko
Copy link
Member Author

Thank you, @sidz

maks-rafalko added a commit to maks-rafalko/phpstan that referenced this pull request May 23, 2023
I propose to add a 3rd-party package to documentation about detecting Magic Numbers in the code: https://github.com/sidz/phpstan-rules

This is a replacement for https://github.com/povils/phpmnd (standalone CLI tool)

We have already integrated in several projects at our company and I personally add it to @infection (infection/infection#1861)

Would love to share this great package with more developers.
ondrejmirtes pushed a commit to phpstan/phpstan that referenced this pull request May 30, 2023
I propose to add a 3rd-party package to documentation about detecting Magic Numbers in the code: https://github.com/sidz/phpstan-rules

This is a replacement for https://github.com/povils/phpmnd (standalone CLI tool)

We have already integrated in several projects at our company and I personally add it to @infection (infection/infection#1861)

Would love to share this great package with more developers.
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.

None yet

2 participants