Skip to content

Add category for check new in 2.3 #13

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

Merged
merged 2 commits into from
Feb 10, 2016
Merged

Add category for check new in 2.3 #13

merged 2 commits into from
Feb 10, 2016

Conversation

pbrisbin
Copy link
Contributor

Since the update to PHPMD 2.3, we see invalid index warnings since this check
is not in our category map. The warnings don't cause errors and we fall through
to a default Style category and remediation, but these are more appropriate
values.

The values were chosen as the same as the too-many-methods check, by the
reasoning that the general task of reducing the size of objects is the same
remediation no matter the methods' visibilities. Note: we don't currently have
the facility to scale remediation by overage, which would make sense in this
case, but adding that has been deferred for now.

http://phpmd.org/rules/codesize.html#toomanypublicmethods

/cc @codeclimate/review

Since the update to PHPMD 2.3, we see invalid index warnings since this
check is not in our category map. The warnings don't cause errors and we
fall through to a default Style category and remediation, but these are
more appropriate values.

The values were chosen as the same as the too-many-methods check, by the
reasoning that the general task of reducing the size of objects is the
same remediation no matter the methods' visibilities. Note: we don't
currently have the facility to scale remediation by overage, which would
make sense in this case, but adding that has been deferred for now.

http://phpmd.org/rules/codesize.html#toomanypublicmethods
@gdiggs
Copy link
Contributor

gdiggs commented Feb 10, 2016

LGTM

Something is either intentionally changed or broken in edge when
resolving dependencies, readline and libxml2 are not installed, causing
php to segfault.

Building from edge is dangerous for exactly these reasons. This patch
fixes the tag to 3.3 (the latest released version of alpine at this
time), which still builds correctly.
@pbrisbin pbrisbin force-pushed the pb-too-many-methods branch from c39c674 to 0530930 Compare February 10, 2016 14:48
pbrisbin added a commit that referenced this pull request Feb 10, 2016
@pbrisbin pbrisbin merged commit 575e38c into master Feb 10, 2016
@pbrisbin pbrisbin deleted the pb-too-many-methods branch February 10, 2016 14:51
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