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

Fix false positive when parsing with PHP_CodeSniffer #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

r-a-y
Copy link

@r-a-y r-a-y commented May 31, 2022

Hi, we run PHP_CodeSniffer (phpcs) across our codebase and one of the projects in our codebase uses your asn1 library.

phpcs is throwing a PHPCompatibility.Miscellaneous.ValidIntegers.HexNumericStringFound notice for a small part of your code.

After reading up about this notice here:
https://www.zend.com/php-migration/misc/hex-numeric-string

It looks like this is a false positive, so what I've done in this PR is add a rule to disable this specific notice from phpcs. See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file

Let me know if you have any questions.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.848% when pulling 0ddc1da on r-a-y:fix/phpcs into 074efe8 on sop:master.

@MPParsley
Copy link

I opened an issue for this: PHPCompatibility/PHPCompatibility#1345

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

3 participants