Update phpmd/phpmd from 2.7.0 to 2.14.1 #150
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If you have a high test coverage index, and your tests for this pull request are passing, it should be both safe and recommended to merge this update.
Updated packages
Some times an update also needs new or updated dependencies to be installed. Even if this branch is for updating one dependency, it might contain other installs or updates. All of the updates in this branch can be found here:
Release notes
Here are the release notes for all versions released between your current running version, and the version this PR updates the package to.
List of release notes
Changed files
Here is a list of changed files between the version you use, and the version this pull request updates to:
List of changed files
Changelog
Here is a list of changes between the version you use, and the version this pull request updates to:
Merge pull request #1040 from phpmd/release/v2.14.1
Require PDepend 2.15.1
Add 2.14.1 changelog
v2.14.1
Merge pull request #1037 from frankdekker/Result-cache-does-not-work-without-baseline-file
Use array_key_exists instead of isset to check of data contains all the necessary keys.
Merge pull request #1033 from tvbeek/prepare_2-14-0
Add #989 #990 to the changelog.
Merge pull request #1032 from tvbeek/pdepend_2-15-0
Prepare for version 2.14.0
Update PDepend to version 2.15.0
Merge pull request #1031 from JustMisha/fix_call_to_undefined_getparent_method
Fix syntax
Avoid using else statement
Changed the variable name
Merge pull request #1029 from JustMisha/extra-line-in-excerpt-can-be-set-via-cli-arg
Fix PHP Fatal Error: Uncaught error: Call to undefined method PDepend\Source\AST\AST\ASTFunction::getParent() in phpmd\src\main\php\PHPMD\Rule\CleanCode\BooleanArgumentFlag.php:60 for files like:
Added description of the --extra-line-in-excerpt option to README.rst;
Added tests for the extra line in excerpt options
Made the $extraLineInExcerpt argument optional in the __construct method of the HTMLRenderer class.
Added the option to the command line to set the number of extra lines in code snippets.
Merge pull request #1023 from kylekatarnls/feature/error-details-output
Simple multiline comment & fix typo
Merge branch 'master' into feature/error-details-output
Comment load-coverage-tokens.php purpose
Explain why to fix tokens on test run
Fix typo in help output
Add parentheses for ternary
Merge pull request #1026 from phpmd/fix/issue-467-duplicate-camel-case-violation
Merge pull request #1025 from kylekatarnls/feature/stdin
Dedupe violation for CamelCaseVariableName
Add documentation
Add tests for glob and stdin features
Fix typo in test
Support glob pattern
Add shortcut for STDIN
Ignore line number in test
Switch top xdebug 3
Fix stream handler
Add tests for cache options
Run coverage with PHP 8.2
Run tests also with PHP 8.3
Test all renderers
Fix PHPDoc, simplify getListOfAvailableRenderers() and handle nll value from there
Add trace of the error when debug verbosity
Merge pull request #1022 from phpmd/feature/verbose-output
Merge pull request #1024 from kylekatarnls/feature/upgrade-phpcs
Run PHPCS 3 on GitHub Actions
Merge branch 'master' into feature/verbose-output
Merge pull request #1021 from szepeviktor/fix-typos
Merge --verbose and -v, -vv, -vvv
Add tests for --verbose and --color options
Document --verbose and --color options
Add --verbose and --color options to text renderer
Fix typos
Add debug information to cache results (#1015)
Add prefix removal for class names and variable names (#962)
Merge pull request #1017 from AJenbo/phpstan-ci
Prevent nested list in AUTHORS
Run PHPStan in CI
Merge pull request #1005 from phpmd/authors
Add @AJenbo to authors list
Merge pull request #1011 from frankdekker/Add-support-for-cache-results
Merge branch 'master' into Add-support-for-cache-results
Merge branch 'phpmd:master' into master
Merge branch 'master' into authors
Merge pull request #1007 from tvbeek/1006-fix-sarif-test
Keep Linux compatibility for SARIFRendererTest
Fix SARIFRendererTest Windows compatibility
Fix SARIFRendererTest Windows compatibility
Merge pull request #1014 from tvbeek/phar-signing
Add phar signing.
Update src/test/php/PHPMD/Renderer/SARIFRendererTest.php
Update src/test/php/PHPMD/Renderer/SARIFRendererTest.php
Merge pull request #1012 from DannyvdSluijs/UseGitHubbActionsV3
Merge pull request #1013 from DannyvdSluijs/IncludePHP82InActionMatrix
ci: Include PHP 8.2 in Actions matrix
ci: Update to use GitHub Actions V3
Fix codestyle issue
Add coverage Paths::concat
Add coverage NodeInfoFactory
Add coverage NodeInfo
Fix ResultCacheKeyFactoryTest
Fix phpcs issues
Avoid reading or writing the cache when generating/updating the baseline
Avoid reading or writing the cache when generating/updating the baseline
Add baseline file hash to cache key
Add baseline file hash to cache key
Add commandline cli information
Add coverage ResultCacheState
Add coverage ResultCacheState
Add coverage ResultCacheState
Update gitignore
Fix PHPMDTest
Fix coverage RuleViolationTest
Add coverage ResultCacheState
Add coverage ResultCacheEngineFactory
Add coverage ResultCacheUpdater
Add coverage ResultCacheWriter
Add coverage ResultCacheKeyFactory
Add coverage ResultCacheKeyFactory
Add coverage ResultCacheStateFactory
Add coverage ResultCacheFileFilter
Add coverage ResultCacheFileFilter
Add coverage ResultCacheEngine
Add coverage ResultCacheKey
Change mb5_file to sha1_file
Run phpcbf
Add composer to cache key
Improve ResultCacheStateFactory
Cleanup ResultCacheConfig
Add cache key factory
Add cache key factory
Add cache key factory
Add basics for ResultCacheKey
Reorganize namespace
Add cache strategy commandline argument
Improve ResultCacheEngineFactory
Add commandline options to factory
Update documentation
Add commandline options for --cache and --cache-file
Fix codestyle
Reorganize classes
Extract ResultCacheFileFilter
Create RuleViolations from result cache
Read state from result cache
Read state from result cache
Add ResultCacheIO to save and read the state
Added method to add RuleViolation to ResultCacheState
Extract AbstractNode from RuleViolation
Add result cache config, state and engine
Add result cache config, state and engine
Add result cache config, state and engine
Add result cache config, state and engine
Merge pull request #6 from phpmd/master
Revert the .sarif files.
Remove the @package_version@ part.
Set version number in renderer processing file.
Remove the closure that shouldn't change anything.
Add extra assertions to see which json data is invallid and see the full data.
Codestyle fix, split a long line in 2 lines.
Change line endings in the json to see if that fixes the test on Windows.
Update authors
Merge pull request #1004 from tvbeek/pdepend_2-14-0
Update PDepend to version 2.14.0
Merge pull request #999 from tvbeek/add_dev_to_composer
Merge pull request #1000 from DannyvdSluijs/patch-1
Correct url by removing leading slash
Add dev as keyword to the composer.json file to suggest to install it as a require-dev package. See: https://github.com/composer/composer/pull/10960
Merge pull request #997 from tvbeek/add_mastodon_to_the_website
Check if we make Stickler CI happy with padding of 0 in combination with an height.
Add a follow on mastodon link to the footer on the website.
fix: global import from an array value
Merge pull request #990 from andrey-tech/issue-989
Improve documentation
Merge pull request #972 from phpmd/AJenbo-patch-1
Decrease BooleanArgumentFlag complexity
Merge pull request #986 from pieterocp/fix/php81-html-render-deprecation
Fix deprecation message for passing null to a non-nullable internal function
Merge pull request #983 from kylekatarnls/fix/issue-924-bool-arg-in-constructor
Add exceptions and ignorepattern properties to BooleanArgumentFlag rule
Merge pull request #981 from phpmd/release/2.13.0
Add date for 2.13.0 (tentative)
Bump version number
Merge pull request #980 from kylekatarnls/feature/php-8-2
Cleanup imports
Fix PHPDoc typo
Add tests
Make rules aware of traits and enums
Add test case with enum
Start PHPMD 2.13.0 CHANGELOG
Require pdepend/pdepend 2.12.0
Try PDepend 2.12.0
Merge pull request #978 from koenhendriks/master
Add trailing comma
Expand test with github and gitlab file reports
Add missing github & gitlab reportfile options
Merge pull request #976 from szepeviktor/patch-1
Avoid deprecated exceptions
Update phpunit_coverage.yml
Merge pull request #970 from phpmd/travis
Merge pull request #969 from phpmd/codecov
Remove travis badge
Update README.rst
Update codecov intergration
Merge pull request #968 from kylekatarnls/fix/deprecate-substr-null
Merge branch 'master' into fix/deprecate-substr-null
Optimize parseRuleNode steps order
Fix PHP 8.1 deprecation for substr null value
Merge pull request #963 from frankdekker/Static-access-add-ignore-pattern-for-methods
Solve phpcs issue
Update documentation
Add ignorepattern to StaticAccess rule
Merge pull request #959 from frankdekker/Add-missing-ruleset-error-message-on-baseline
throw Exception when ruleset is absent file location can't be determined.
throw Exception when ruleset is absent file location can't be determined.
throw Exception when ruleset is absent file location can't be determined.
Merge branch 'phpmd:master' into master
Merge pull request #957 from metalmini/gitlab_renderer
Remove unneeded counter
Add Gitlab renderer for Gitlab CI
Add Gitlab renderer for Gitlab CI
Add Gitlab renderer for Gitlab CI
Merge pull request #954 from modess/master
better npath complexity documentation with example
Merge pull request #946 from jvipez/highlight-code-examples
Merge pull request #947 from tvbeek/prepare_2.12.0
Merge branch 'master' into prepare_2.12.0
Merge pull request #948 from phpmd/kylekatarnls-patch-1
Fix setup submodule URL
Increase minimum version of PDepend
Move the git submodule from git to https because we don't use any auth.
Prepare for version 2.12.0
Highlight readme code examples
Merge pull request #944 from emretepedev/patch-1
Update exclude-pattern.xml
Merge pull request #942 from kylekatarnls/add_php8.1_tests_config
Fix dependencies files for PHP 8.1 compatibility
Merge pull request #918 from tvbeek/add_php8.1_tests_config
Merge pull request #833 from martzd/feature/disallow-capital-in-camel-case-property-name
Merge pull request #930 from franmomu/patch-1
Allow install composer/xdebug-handler 3
Merge pull request #929 from phpmd/release/2.11.1
Add 2.11.1 changelog
Bump build.properties version number to 2.11.1
Merge pull request #928 from YAhiru/fix-deprecation-messages
Fix assignment to a variable in a conditional expression.
remove redundant function calls
Fix deprecation messages
Merge pull request #926 from villfa/fix/php81
Fix remaining deprecation messages
Merge pull request #925 from villfa/patch-1
Don't call preg_match_all on null
Merge pull request #922 from phpmd/release/2.11.0
Add Rule name in text output in changelog
Merge pull request #817 from phpmd/feature/issue-815-rule-name-in-text-output
Add fix #781 in the changelog
Merge pull request #783 from phpmd/feature/issue-601-unused-property
Update Changelog for 2.11.0
Require at least PDepend 2.10.2
Prepare build for 2.11 release
Merge pull request #920 from ricfio/update-changelog-2-10-2-version
fix typo on version in CHANGELOG
Update the phpunit to start testing on PHP 8.1
Merge pull request #917 from phpmd/contrib-github-folder
Mention the contribution guide
Move contribution guide to .github folder
Merge pull request #911 from phpmd/add_twitter_link_to_footer
Remove the box-sizing
Combine 2 background parts and try a recheck
Reorder last part (thanks Stickler)
Hanlde the Stickler-ci comments
Add a follow on twitter link to the footer
Merge pull request #908 from kylekatarnls/feature/mute-php-8-deprecation
Add comments
Fix code style
Handle Twice in invokes count
Split long line
Fix merge
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/issue-601-unused-property
Update unit tests
#815 Add unit test for text output alignment of last columns
#815 Add unit test for text output alignment
Fix #815 add rule name in text output
Fix PHP 8 deprecation notices on the fly for phar build
Merge pull request #4 from phpmd/master
Merge pull request #906 from Sylry/fix_false_positive_static_variable_870
Fix typo
Fix false positive with static variable in function. fixes #870
Merge pull request #905 from YAhiru/feature/issue-884-unused-property
UnusedFormalParameter does not apply to property promotion parameters
Merge pull request #904 from TJVB/prepare_2_10_2
Prepare the release for version 2.10.2
Merge pull request #903 from frankdekker/Improve_baseline_basepath_calculation
Removed unused import
Fixed coverage notation
Updated documentation
Add coverage for changed files
Remove absolute path from BaselineSet and adjust baseline matching
Merge pull request #3 from phpmd/master
Merge pull request #902 from himanshu007-creator/patch-2
Update tests according to new vertical spacing
Use writer getter
Use PHP_EOL
Update src/main/php/PHPMD/Renderer/AnsiRenderer.php
Update AnsiRenderer.php
added newline
Merge pull request #894 from dmetzler1988/bugfix/duplicated-array-key-typo
Fixed typo in DuplicatedArrayKey title incl. link.
Add changelog for 2.10.1 and bump project.version (#890)
Merge pull request #885 from pOmelchenko/master
add 2.0 version of the
composer/xdebug-handler``Merge pull request #880 from phpmd/release/2.10.0
Suppress EmptyCatchBlock for intended TODO
Add 2.10.0 changelog
Bump project.version
Merge pull request #878 from kylekatarnls/feature/php-8
Merge pull request #828 from kylekatarnls/feature/issue-672-fallback-function-without-namespace-check
Merge pull request #879 from phpmd/document-junit
Merge pull request #836 from kdebisschop/reference-to-root-namespace-is-not-a-missing-import
Fix tests after rebase from master
Fix @covers that was broken by change in function name
Method addProprty() second parameter is string, cannot be boolean
use early-return
Merge pull request #839 from TJVB/cleancode_rules
Merge pull request #856 from ffflabs/feature/checkstyle_renderer
Align PHPDoc asterix
Stick cast to variable (PHPCS compliance)
Merge pull request #786 from phpmd/findChildrenOfVariable
Merge branch 'master' into findChildrenOfVariable
Add link to junit.xslt config file
Add junit.xslt config
Document junit export using third-party
Update mikey179/vfsstream
Merge branch 'master' into feature/checkstyle_renderer
Merge branch 'master' of https://github.com/phpmd/phpmd into cleancode_rules
Fix file paths
Merge branch 'master' into reference-to-root-namespace-is-not-a-missing-import
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/disallow-capital-in-camel-case-property-name
Fix incompatible files before running tests
Merge pull request #865 from lukasbestle/feature/sarif-renderer
Indent long line
Allow PHP 8
Merge branch 'master' into feature/sarif-renderer
Merge pull request #876 from frankdekker/update-violation-baseline
Appease scrutinizer: suppress PHP7.4 getMock error
Update documentation
Update documentation
Update documentation
Update documentation
Update documentation
Add coverage CommandTest for update baseline
Add coverage Command
Remove unused imports
Add tests for BaselineValidator
Merge pull request #2 from phpmd/master
Fixes: unlink($tempFile): Resource temporarily unavailable
Add tests for BaselineValidator
Add tests for BaselineValidator
Add tests for BaselineValidator
Added BaselineValidator
Replace BaselineSet with Report in PHPMD::processFiles method
Add BaselineMode + Update CommandLineOptions to support --update-baseline
Merge pull request #875 from frankdekker/violation-baseline-appveyor-fixes
Merge pull request #874 from TJVB/update_contributing
Fix slashes when running tests on windows environment
Merge pull request #1 from phpmd/master
Merge pull request #873 from frankdekker/violation-baseline
Update CONTRIBUTING.md - Add a link to gitter - Remove the link to IRC - Add using an issue template to the issue part
Fix scrutinizer warnings
Fix scrutinizer warnings
Revert scrutinizer violations
Revert scrutinizer violations
Fix scrutinizer violations
Replace STDOUT with older php notation
Remove expects
replace createMock with getMockBuilder
Final adjustments
Add coverage PHPMD::processFiles
Add coverage Command::main
Add coverage Command generateBaseline
Add coverage Command generateBaseline
Removed basedir from BaselineFactory
Added realpath + coverage
Added realpath + coverage
Update documentation
Add coverage for method type
Add coverage for method type
Adjust baseline renderer to include method name
Adjust baseline renderer to include method name
Add coverage for CommandLineOptions
Add coverage for RendererFactory
Add coverage for RendererFactory
Add coverage for RendererFactory
Add coverage for BaselineRenderer
Add coverage for baseline report
Add coverage for baseline report
Add coverage for StreamWriter getStream
Complete coverage on Paths getAbsolutePath
Complete coverage on Paths concat + getRelativePath
Complete coverage on BaselineFileFinder
Complete coverage BaselineSetFactoryTest
Remove unnecessary arguments
Updated documentation
Updated documentation
Reduce lines of code in Command
Leave basedir argument out-of-scope
Added BaselineFileFinder to find the baseline file.
Added BaselineFileFinder to find the baseline file.
Added BaselineFileFinder to find the baseline file.
Added Baseline to PHPMD.php
Added BaselineSet to Report
Added BaselineSet to Report
Added BaselineSet to Report
Added coverage BaselineSetFactory.php
Added coverage BaselineSet + ViolationBaseline
Added BaselineSet Added ViolationBaseline Added BaselineSetFactory
Added generate-baseline and baseline-basedir to the cli params Added BaselineRenderer to write the baseline
Merge pull request #861 from lukasbestle/feature/docs-github-renderer
Merge pull request #869 from danepowell/issue-868
Merge pull request #782 from phpmd/feature/issue-673-ignore-dynamic-class-names
Update src/site/rst/rules/cleancode.rst
Merge pull request #844 from babanesma/compact_double_quotes
Merge pull request #872 from lukasbestle/feature/514-error-exit-code
Change exit code on processing errors
Update src/site/rst/rules/cleancode.rst
add test case
code style fix
fix tests
added docs
Fix #868: Option to ignore globally-namespaced classes from MissingImport
Add blank line after if block
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/issue-672-fallback-function-without-namespace-check
Merge pull request #838 from TJVB/naming_rules
Merge pull request #772 from TJVB/rename_confusion_functions_in_PHPMD_and_deprecate_old_functions
Merge pull request #822 from phpmd/feature/issue-818-unit-tests
Merge pull request #827 from phpmd/feature/issue-826-foreach-catch
Merge pull request #849 from TJVB/remove_robots
Merge pull request #862 from phpmd/kylekatarnls-cleanup-generate-phar-yml
Merge branch 'master' of https://github.com/phpmd/phpmd into kylekatarnls-cleanup-generate-phar-yml
Merge pull request #788 from phpmd/feature/issue-739-class-begin-line
Add SARIF renderer
AbstractStaticTest: Add placeholder for work dir
AbstractStaticTest: Support custom JSON comparison
Pass message arguments to RuleViolation
Merge pull request #852 from SanderSander/fix-test-underscore
Merge pull request #864 from kylekatarnls/fix/github-pages
Add missing environment variables
Cleanup generate_phar.yml
GitHub actions (#848)
Docs for the GitHub renderer
Unify both allow-underscore RegExps
Merge branch 'master' into feature/checkstyle_renderer
Merge pull request #857 from lukasbestle/feature/github-renderer
Update src/main/php/PHPMD/Renderer/CheckStyleRenderer.php
Remove scalar type declarations and keep file path
Use method 'maybeAdd' from parent renderer
Inherit from XMLRenderer where it's due
Update src/main/php/PHPMD/TextUI/CommandLineOptions.php
Cleanup
Add GitHub renderer for GitHub Actions
repairs PSR2 code style faults, adds description to README
adds checkstyle compatible renderer, suitable for cs2pr or reviewdog
Improve test documentation
Simplify RegExp
Fix multiple underscores in method name when allow-underscore-test is enabled in CamelCaseMethodName
Nested is not a method, MyClass() is.
Add documentation for property controlling application to imports of root namespace.
Add option to allow referencing root namespace without import
Remove the incorrect robots.txt and the reference in the site.ini
Merge pull request #847 from samuelwang23/master
New Development Code Fragment Tests
Fix typo
Revert "Update Development Code Fragment Tests"
Update Development Code Fragment
Revert "Fix Issue #846"
Update Development Code Fragment Tests
Fix Issue #846
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/issue-818-unit-tests
recognize compact variables with double quotes
Apply suggestions from code review
Change the naming error where possible
fix: Avoid assigning values to variables in if clauses and the like
Avoid using undefined variables such as ... which wil lead to PHP notices
fix the Missing class import via use statement errors
Merge pull request #835 from phpmd/feature/issue-829-getFileName
Link todo to issue
Merge pull request #832 from kamioftea/add-external-info-url
Merge pull request #834 from martzd/feature/add-tool-to-xml-report
Merge pull request #830 from ComiR/patch-1
Mute filename error
Add unit tests for #829
Changes according to review
Fix tests
Add "tool" property to main "pmd" tag in XML report
Disallow capital letter at the beginning in CamelCasePropertyName rule
Minor commit to retry build that failed due to 'Peer fingerprint did not match'
Add test for missing externalInfoUrl
Add externalInfoUrl for UndefinedVariable
Add missing return/throws annotation
Keep $functionName before calling getReflectionFunctionFromFunctionName()
Rename getReflectionFunction() into getReflectionFunctionByName()
Revert Annotation.php mistaken import
#672 Try global function if namespaced one is not found
Fix #826 consider foreach exception only for direct children
Merge pull request #825 from phpmd/changlog-2.9.1
Merge pull request #823 from kylekatarnls/feature/issue-714-fix-member-detection
Add Changelog for 2.9.1
Merge pull request #821 from phpmd/kylekatarnls-build-number
#714 Add dedicated unit test for call with static member
Fix #714 Improve static member detection
#818 Don't check function arguments if the callee is a method
Merge pull request #818 from a-menshchikov/patch-1
Upgrade build version number for next patch
Fixed undefined index referring
Merge pull request #795 from TJVB/changelog_2.9.0
Lets change the release date for 2.9.0 to 2020/09/02
Merge pull request #1 from kylekatarnls/patch-1
Add new items to the changelog
Merge pull request #809 from phpmd/feature/issue-808-supress-warnings
Merge pull request #807 from artem-prozorov/fix_for_short_variables_rule
Merge pull request #806 from artem-prozorov/change_private_methods_to_protected_in_rules
Merge pull request #811 from frankdekker/short-long-class-name-documentation
Updated documentation for Short and Long Class name rules
Merge pull request #1 from phpmd/master
Array declaration is changed from [] to array
Short variables in cycles are made configurable
Merge pull request #805 from TJVB/handle_nested_arrays
Reduce the complexity by removing 2 not needed checks.
Merge branch 'fix_for_short_variables_rule' of github.com:artem-prozorov/phpmd into fix_for_short_variables_rule
Fix #808 Ignore rule path for supression annotation
Fix wrong return type
Revert unwanted code removal
Aray initialization changed to support old PHP verions
Fix PHP 5.3 compatibility for $parents
Fix PHP 5.3 compatibility for $exceptionVariable
Removed empty lines in ShortVariableTest
Added fix for ShortVariable Rule to process names inside freach loop
Added regression test for issue 790
Restoreg original array in src/main/php/PHPMD/Rule/UnusedFormalParameter.php
Private methods are switched to protected in Naming rules
Private methods are switched to protected in Design rules
Private methods are switched to protected in Controversial rules
Private methods are switched to protected in CleanCode rules
Private methods are changed to protected in basic rules
Mention #765 in the changelog
Merge pull request #765 from frankdekker/class-name-length-rule
Check if the base is an instance of ASTNode before calling the getNode function
Add a test to show the error in https://github.com/phpmd/phpmd/issues/802
Merge pull request #791 from phpmd/feature/fix-import-phpunit-exception
Merge pull request #793 from phpmd/feature/issue-580-clsoure-formal-parameter
#739 Shorten variable name numberOfPublicMethods > publicMethodsCount
#739 Upgrade minimum version of PDepend
Merge pull request #792 from phpmd/feature/issue-673-missing-imports-testing
Merge pull request #794 from phpmd/feature/issue-540-unused-variable-declared-twice
#540 Add PHPDoc for containsUsages() method
Remove UnusedLocalVariable property customization
Fix -> Fixed
Reorder getViolationFailureMessage parameters
Chunk the composition of violation failure messages
Prepare a changelog for version 2.9.0
#580 Use ->isInstanceOf instead of instanceof
Fix #540 Detect unused variable declared multiple times
#540 Add a unit test to demonstrate the double-assignation issue
#580 Loop over every ASTFormalParameter in UnusedFormalParameter
#580 Ignore ASTFormalParameter in UnusedLocalVariable rule
#580 Add unit tests to demonstrate the rule mismatch
Merge pull request #789 from TJVB/update_coding_standard_description_in_contributing
Add comment about how options are set
Revert early-return grouping
Fix merge
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/issue-601-unused-property
Migrate MissingImport tests on the apply/notApply standard
Cleanup merge changes
Merge branch 'master' into feature/issue-673-ignore-dynamic-class-names
Improve error message for apply and notApply tests
Add file basename for both apply and notApply
Update CONTRIBUTING to point out to the correct coding standard
Merge pull request #787 from phpmd/feature/migrate-missing-import-testing
Improve wording
CS
CS
Improve doc bock
Correct statement in method doc block
#739 Add unit test to demonstrate the class begin line issue
Fix typehint
Prefix dynamic file rule violation test exception with the file base name.
Provide getClassNodeForTestFile in AbstractTest and rename getMethodNodeForTestFile into getNodeForTestFile
Make getMethodNodeForTestFile return the testable FunctionNode if MethodNode is not available
Merge branch 'master' into findChildrenOfVariable
Merge pull request #784 from phpmd/feature/issue-672-passing-by-reference
Use new convenience method AbstractNode::findChildrenOfVariable()
Add convenience method AbstractNode::findChildrenOfTypeVariable()
Merge pull request #785 from phpmd/feature/optimize-unused-formal-parameter
Flip if statement around to return early
Call ->getNode only if it's not yet the PDepend ASTNode
Split early-return
Restore getNode protected visibility
Merge branch 'master' into feature/issue-601-unused-property
Merge pull request #781 from phpmd/feature/issue-714-fix-self-and-static-properties-access
Optimize UnusedFormalParameter
#672 Group variable definition rules
#672 Provide isPassedByReference method in AbstractLocalVariable
Fix #672 Handle passing-by-reference in native PHP functions
#672 Add a unit test to demonstrate the passing-by-reference issue
Add a dedicated method prependMemberPrimaryPrefix
Fix #601 Stop considering properties in anonymous class as local variables
Copy tooling for AbstractLocalVariable from #781
#601 Add unit test to demonstrate the issue
Migrate UnusedLocalVariable to the new testing system
Migrate MissingImport to the new testing system
Fix #673 Ignore dynamic class name from missing imports
Standardize PHPDoc style
Handle static properties definition
Move $selfReferences in the common AbstractLocalVariable
Provide getVariableImage in the common AbstractLocalVariable
Fix #714 static:: and self:: properties access
Update the docblock with @this and add an empty line. Feedback from @kylekatarnls
Remove unwanted empty lines
Fix the mocking in the ParserFactoryTest after using the new functions
Update docblocks with feedback from @ravage84
Merge pull request #773 from phpmd/cs-fixes
Use elseif instead of else + nested if
Use elseif instead of else + nested if
Use elseif instead of else + nested if
Use foreach instead of for
Merge pull request #775 from phpmd/move-exceptions
Use original exceptions again
Add class aliases for moved exceptions
Use elseif instead of nested else & if
Merge branch 'master' into cs-fixes
Replace outdated join function with implode
Fix grammar
Replace outdated join function with implode
Remove now superfluous var annotations
Update index.rst
Merge pull request #770 from phpmd/feature/issue-769-handle-deconstruction-assignations
Move all exception classes to their own sub namespace/folder
Revert one illogical reformatting
Automatic code reformatting by PhpStorm 2020.1
The keyword elseif SHOULD be used instead of else if so that all control keywords look like single words.
The keyword elseif SHOULD be used instead of else if so that all control keywords look like single words.
Automatic code reformatting by PhpStorm 2020.1
Do not call function in loop
CS
Collapse long line
Remove unnecessary white lines
Merge pull request #756 from phpmd/feature/simple-rule-testing
Update the use of the deprecated functions from PHPMD in the ParserFactory.
Rename setIgnorePattern to addIgnorePatterns and getIgnorePattern to getIgnorePatterns so they are less confusion.
Fix test name
Merge pull request #768 from phpmd/alias-removals
Add important note
Always use relative path for data dir
Remove notes of now defunct PEAR channel
Remove PEAR installation workaround
Rename $deconstructedVariable to shorter one $unpackedVariable
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/issue-769-handle-deconstruction-assignations
Fix #769 Handle deconstruction assignation for undefined variable
Remove doubly "long" in example class name
Changed Short Class name example from
Idto
Fo``Suppress violation for long variable name
Bump maximum threshold of LongClassName
Improve test case doc blocks
Improve wording
Clarify code through intermediate variables
Correct coverage annotation and FQCN
Get class or interface name only once
Improve wording
Improve wording
CS
CS
Get class or interface name only once
Improve wording
Improve wording
Rename Support namespace to Utility
Improve test doc blocks
Update test case names to changed method names
Correct doc block statement
Use correct coverage annotation
Rename Strings::split() to splitToList()
Use double quotes
Rename Strings::length() to lengthWithoutSuffixes()
Correct test case name & test file
Correct test case name & test file
Improve test case doc blocks
Correct coverage annotation and FQCN
Improve doc block wording
Remove superfluous class aliases
Remove class alias
Move length calculation inside the if for consistency amongst rules Moved "threshold" to the right side so it's better understandable. Tightened the LongVariable length constraints in the test case.
Fixed threshold calculation.
PHPUnit 4.8.3 expectException fix.
Updated docblock of StringsTest
Added example to exceptions list
Updated documentation for the short class name rule
ShortClassName rule + testcases
Updated documentation
LongVariable Rule + Tests
Update LongVariable rule with getStringProperty and string split/length
Strings support class: - length: to calculate string length subtracting certain suffixes - split: to split a string trimming and removing empty values
Strings support class: - length: to calculate string length subtracting certain suffixes - split: to split a string trimming and removing empty values
Merge pull request #764 from phpmd/feature/issue-718-handle-anonymous-class-for-undefiend-variable-rule
Add PHPDoc for collect()
Fix #718 Handle anonymous class in "undefined variable" rule
Merge branch 'master' into feature/simple-rule-testing
Merge pull request #529 from smuuf/master
Merge pull request #747 from frankdekker/long-variable-subtract-suffix
Merge pull request #496 from eeree/issue-62
Add forgotten file doc block
Make use of new test convenience methods
CS fixes
Return early & return pre-calculated variable name length
Do not calculate variable name length in loop
Filtered empty suffixes from configuration Removed $length > 0 checked Added test for empty subtract-suffixes configuration
Renamed -
testRuleAppliesToVariableNameSmallerThanThresholdWithSuffixSubtract-
testRuleAppliesToVariableNameLongerThanThresholdWithSuffixSubtract``Add new property to rule documentation.
Improve doc block
Rename $length to $suffixLength
Added unit tests for LongVariable
Added unit tests for LongVariable
Added unit tests for LongVariable
Added unit tests for LongVariable
Added unit tests for LongVariable
Allow to subtract certain suffixes from the total length of the variable name.
Improve doc blocks
Setup coverage annotation
Make use of new getReportWithOneViolation() method
Adjust speed impact claim
CS fixes
Merge branch 'issue-62' of https://github.com/eeree/phpmd into eeree-issue-62
Merge master
CS
Fixed closing tag
Merge pull request #759 from phpmd/phpcs-config
Remove files to check with PHPCS as they are not configured
Add files to check wih PHPCS to its configuration
Re-add dev requirement on PHP extensions
Let Stickler CI use our new PHPCS CS definition
Simplify class name in throws annotation to fit usage
Use code style definition with Composer scripts
Disable slevomat rules as we cannot use them with PHPCS 2.x
Revert upgrade to PHPCS 3.5 & addition of slevomat/coding-standard
Add SlevomatCodingStandard.Classes.MethodSpacing sniff & fixes
Add Squiz.Commenting.FunctionCommentThrowTag sniff & fixes
Add Generic.Files.LineLength sniff
Add SlevomatCodingStandard.Whitespaces.DuplicateSpaces sniff & fixes
Reorder sniffs
Add SlevomatCodingStandard.Exceptions.DeadCatch sniff
Add SlevomatCodingStandard.Variables.UnusedVariable sniff
Add SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable sniff
Add SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable sniff
Add SlevomatCodingStandard.PHP.UselessSemicolon sniff
Remove useless parenthesis
Add SlevomatCodingStandard.Namespaces.UselessAlias sniff
Add SlevomatCodingStandard.Namespaces.UseFromSameNamespace sniff & fixes
Add SlevomatCodingStandard.Namespaces.UnusedUses sniff & fixes
Add SlevomatCodingStandard.Classes.EmptyLinesAroundClassBrace sniff
Add SlevomatCodingStandard.ControlStructures.UselessTernaryOperator sniff
Add many general sniffs
Add Squiz.Commenting.DocCommentAlignment sniff & fixes
Add Generic.CodeAnalysis.ForLoopWithTestFunctionCall sniff & fixes
Add Squiz.WhiteSpace sniffs
Rename file name to fit class name
Add Generic.Formatting.NoSpaceAfterCast sniff & fixes
Rename class to fit file name
Add Squiz.PHP.Eval sniff
Add Generic.PHP.DeprecatedFunctions sniff
Simplify return
Add SlevomatCodingStandard.Commenting.UselessInheritDocComment sniff
Add SlevomatCodingStandard.Functions.UnusedParameter sniff & suppress violations
Add SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure sniff
Reorder sniffs
Add SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator sniff
Replace SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators sniff & fixes
Add SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators sniff
Add SlevomatCodingStandard.Operators.DisallowEqualOperators sniff & fixes
Add SlevomatCodingStandard.PHP.DisallowDirectMagicInvokeCall sniff
Add SlevomatCodingStandard.ControlStructures.DisallowEmpty sniff
Add SlevomatCodingStandard.ControlStructures.DisallowContinueWithoutIntegerOperandInSwitch sniff
Add SlevomatCodingStandard.ControlStructures.AssignmentInCondition sniff & fixes
Add SlevomatCodingStandard.Classes.UselessLateStaticBinding sniff
Add SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants sniff
Add SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation sniff
Add SlevomatCodingStandard.Arrays.TrailingArrayComma sniff
Add SlevomatCodingStandard.Commenting.EmptyComment sniff
Add SlevomatCodingStandard.Classes.UnusedPrivateElements sniff
Add Composer script for explaining the code style standard
Add slevomat CS as dev dependency
PSR-2 CS fixes
Add PHPCS configuration file
Use PHPCS 3.5+ instead of 2.8+
Ignoring any XML files in the root
Rename file according to class name
Merge master
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/simple-rule-testing
AbstractTest Cleanup (#758)
Revert grammar fix until a formula closer to the intent can be found
Improve wording & divide short & long description
Add PHPDoc for getApplyingFiles and getNotApplyingFiles
Add PHPDoc for UndefinedVariableTest Rename methods
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/simple-rule-testing
Merge pull request #750 from phpmd/getStringProperty-fallback
Merge pull request #757 from phpmd/report-mock-convenience-methods
Merge pull request #754 from phpmd/feature/720-foreach-pass-by-reference
Refactor array_map duplicated code
Keep main test methods inside the test case sub-class
Fix PHPDoc
Fix PHPDoc
Fix unit tests
Remove duplicated code
Implement expectRuleInvokesForFile method
Cleanup PHPDoc
Replace magic literals
Make use of AbstractTest::getReportWithNoViolation()
Make use of AbstractTest::getReportWithOneViolation()
Add three report mock methods to improve test case readability
Ease testing of simple rule standard cases
Add more tests for #720 undefined variable in foreach loops
Record variable definitions from unary expressions in foreach statements
Add a test for #720 undefined variable in foreach when passed by reference
Merge pull request #752 from phpmd/config-file-code-redundancy
Merge pull request #749 from tuc0w/feature/add_allow-underscore_option
Add tests for controversial rule CamelCaseParameterName
Remove code redundancy around config file path
Also cover code in newly extracted method
Fixed scrutinizer
Reduce code duplication
Adjust test
Improve fallback bevavior of getIntProperty()
Improve fallback behavior of getBooleanProperty()
Merge pull request #748 from phpmd/rule-pr-checklists
Fixed typos
Define strictness of in_array haystack search
Add fallback value for AbstractRule::getBooleanProperty()
Add fallback value for AbstractRule::getIntProperty()
Move test case to its sibling
Add fallback value for AbstractRule::getStringProperty()
Set coverage annotation
Add variable type hint
Add properties to site rst
Remove blank line
Add allow-underscore rules
Add allow-underscore properties
Add allow-underscore test
Add guiding check lists...
Merge pull request #743 from sveneld/bugfix-235
Move additional explanation to long description
Add comments to explain how it is tested
exclude pattern documentation exclude pattern unittest
Output for version #235
Add SECURITY.md file to complete the Tidelift task
Merge pull request #719 from phpmd/feature/issue-717-restore-rst-files-in-website
Merge pull request #737 from ondrejfuhrer/ondrejfuhrer-static-access-allow-custom-exclusion
Add the release date for 2.8.2 (#736)
Allowing custom exclusion for StaticAccess by extending the class
Merge pull request #733 from kylekatarnls/feature/732-serialize
Fix #732: Add unit tests
Fix #732: Add __serialize and __unserialize to list of ignored methods for camelCase rule.
Use GitHub link for raw files
Fix #717 Restore RST files on phpmd.org
Merge pull request #716 from phpmd/release-2.8.1
Add 2.8.1 changelog
Bump version to 2.8.1
Merge pull request #713 from phpmd-team/feature/fix-travis-ci-failure-detection
Merge branch 'master' into feature/fix-travis-ci-failure-detection
Merge pull request #711 from phpmd-team/feature/website-builder-library
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/website-builder-library
Update easy-doc/easy-doc
Use EasyDoc publishPhar option
Use scrutinizer default tests settings
Use stronger typing in PhpMdEnvironment class
Add publishPhar script fo @tvbeek in the composer build-website command
Merge pull request #709 from kylekatarnls/realease-2.8.0
Merge pull request #707 from BackEndTea/patch-1
Merge pull request #712 from phpmd/release-2.8.0
Bump library version to 2.8.0
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/website-builder-library
Mute phpunit-mock-objects PHP 7.4 deprecations
[Travis-CI] Fix unit tests failure detection
Require pdepend 2.6
Merge pull request #708 from phpmd-team/release-2.8.0
Merge pull request #682 from TJVB/add_the_latest_phar_file_to_the_github_pages
Test against php 7.4
Add missing #659 PR
Merge pull request #696 from phated/master
Merge pull request #690 from TJVB/add_issue_template_config
Complete 2.8.0 changelog
Merge pull request #697 from phated/patch-1
Add the documentation for the UndefinedVariable rule (Resolves #693 ) (#698)
Added #657 mention
Add enterprise language to README
Add "For Enterprise" page to PHPMD website
Add keyword to let merged PRs auto-close issues (#695)
Start PHPMD 2.8.0 changelog
Change
Chat to usto
Chat with us(#691)
Update the about text with feedback from the team.
Add the new issue template config for GitHub See: https://github.blog/changelog/2019-10-28-new-issue-template-configuration-options/
Remove code that I forgot to remove during the refactoring.
Rebuild the phar script to get correct latest versions
Merge pull request #685 from ravage84/short-variable-apply-improvements
Merge pull request #686 from phpmd/ignore-all-phar-files
Ignore all PHAR files, not just Compoer's
Split long descriptions into separate short and long descriptions
Rename method applyNoClass to applyNonClass
Merge pull request #644 from TJVB/fixing_phpmd_errors
Merge pull request #684 from phpmd/kylekatarnls-patch-1
Correct readme explaining ruleset and report. (#679)
Fix arrival version of UndefinedVariable
Merge branch 'master' into issue-62
Merge branch 'master' into feature/website-builder-library
Use the GitHub api for the latest version
Remove the spaces around dots for consistency.
Add the latest phar file to the GitHub Pages to have a consistent url.
Merge pull request #680 from TJVB/add_a_pull_request_template
Add a Pull Request template to guide new Pull Requests
Merge pull request #677 from kylekatarnls/feature/issue-676-fix-count-in-loop-method-suppress
Add unit tests for #676
Fix #676 Handle @SuppressWarnings on each method for CountInLoop
Merge pull request #671 from kylekatarnls/feature/fix-661-assignations-in-closures
Fix #661 Scan only the statement inner expression (first one)
Merge pull request #668 from kylekatarnls/feature/fix-661-assignations-in-closures
Ignore the long name (renaming was not a good solution for this one)
Revert "Fix a naming rule error"
Merge pull request #669 from jakzal/phpdbg
Replace xdebug with phpdbg for code coverage
Save a trim call by using a variable. (Thanks to @kylekatarnls for the feedback)
Add missing docblocks to the new private functions in ShortVariable (thanks to @ravage84 )
Fix #661 Exclude FunctionPostfix from IfStatementAssignment
Merge pull request #497 from raa0121/add-undefined-variable
Fix the ShortVariable Rule
Fix a naming rule error
Fix the cleancode rules
Merge pull request #667 from TJVB/remove_the_prefer-lowest_while_building_the_phar_file
Bump to minimal version 5.3.9
Remove the --prefer-lowest and add a platform config to the composer commands for building the phar file
Merge pull request #666 from phpmd/feature/fix-readme-link
Fix readme link RST format
Merge pull request #665 from kylekatarnls/feature/fix-table-alignment
Fix documentation table misalignment
Merge pull request #662 from phpmd/feature/document-ignore-namespaces
Add 'ignore-namespaces' option documentation
Merge pull request #571 from tariq86/fixes/dev-frag-ns-ignore
Merge pull request #641 from szepeviktor/level2
Merge pull request #660 from kylekatarnls/feature/tidelift-link
Add link to Tidelift
Merge pull request #653 from phpmd/phar-composer-optimize-autoloader
Merge pull request #659 from SailorMax/patch-1
Update RuleSetFactory.php
Merge pull request #657 from Jir4/fix-ifstatementassigment-message
Optimize Composer autoloader when building Phar
Merge pull request #656 from kylekatarnls/feature/phpunit-update-deprecated-usages
Remove PHPUnit debugging group
Fix IfStatementAssignment violation message
Merge branch 'fix-php5.3-compat' of https://github.com/phpmd/phpmd into feature/phpunit-update-deprecated-usages
Mute PHP 5.3 bug due to strlen()
Mock explicitly arguments
Create all mocks with getMockBuilder()
Update deprecated calls
Use traditional array syntax to keep PHP 5.3 compatibility
Merge pull request #652 from kylekatarnls/feature/650-fix-tables
Merge pull request #595 from PtrTn/ansi-report-renderer
Fix code style
Fix PHP 5.3 compatibility
Fix PHP compatibility
Fix PHP < 5.5 compatibility
Fix #650 Use pretty tables to handle multi-line
Fix #650 Use pretty tables to handle multi-line
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/website-builder-library
Merge pull request #651 from TJVB/fix_issue_templates
Merge pull request #648 from phpmd/IfStatementAssignment-short-description
Move the issue templates to the ISSUE_TEMPLATE directory in the .github directory to make them available. (#649)
Move IfStatementAssignment to CleanCode
Merge pull request #646 from kylekatarnls/feature/missing-imports-documentation
Add MissingImport link in the menu
Merge pull request #645 from poplary/fix-doc
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/website-builder-library
Fix underlining length for DuplicatedArrayKey
Fix the doc of Clean Code Rules.
Allow to add scripts like some Matomo analytics via ENV variable
Merge pull request #555 from AJenbo/master
Merge pull request #635 from TJVB/issue_templates
Remove renderers count
Merge branch 'master' of https://github.com/phpmd/phpmd into fixes/dev-frag-ns-ignore
Add .github to the .gitattributes file to prevent it from being downloaded by composer.
Add the Operating system and version to the Bug template.
Be more explicit
"our" -> "in the"
Add "only"
Improve wording
Improve wording
Merge branch 'master' of https://github.com/phpmd/phpmd into feature/x-debug
Update the issue templates with the feedback from @ravage84
Merge branch 'master' of https://github.com/phpmd/phpmd into add-undefined-variable
Move UndefinedVariable into CleanCode namespace
Merge branch 'master' of https://github.com/phpmd/phpmd into ansi-report-renderer
Verify undefined variables does not apply to superglobals
Fix PHPDoc blocks phpstan Level 2
URL in capital letters
Adjusted wording, added missing word
2 typos with thanks to @kylekatarnls for the feedback.
Add a first version of the documentation and website issue template
Add a first version of the question issue template
Add a first version of the feature proposal issue template
Add a first version of the bug issue template
Fix URLs
Fix CHANGELOG dump
Fix absolute links
Fix level 4 titles
Merge branch 'master' of https://github.com/kylekatarnls/phpmd into feature/website-builder-library
Use easy-doc/easy-doc instead of custom script
Prepare config for the website builder library
Cleaned up a bit.
Cast a possible "false" value from SplFileObject::current() into string.
Merge remote-tracking branch 'upstream/master'
Update src/main/php/PHPMD/Renderer/HTMLRenderer.php
Add a renderer which writes an ansi report string
Revert Appveyor changes in branch
Follow existing codebase conventions (no _ for privates)
Add 'ignore-namespaces' to DevelopmentCodeFragment rule
Update PHPUnit to fix failing test
Fix AppVeyor path export
Fix Appveyor build
Use XdebugHandler to avoid performance issues
Removed "string" typehint (PHP<7 compatibility).
HTML renderer fixed BC with PHP 5.4 (no const arrays) + adapted tests.
Old HTML renderer replaced with the new one.
Reworked the new HTML renderer. - Report's sub title contains more information about report and machine. - New "summary" section with summaries calculated across: - Problem's priority - PHP namespace - Rule set - Rule name - Different design. - File paths act as links. - Deep linking possible, problem index acts as an anchor. - Details are hidden by default - can be toggled. - Attempt at printer friendly CSS media-queries.
Fixed tests for now.
Display violation's index, too + tweaked styling a bit. - Line number is now more highlighter.
Added a new "pretty HTML" renderer.
Support Undefined Variable
Closes phpmd/phpmd#62
Working with this branch
If you find you need to update the codebase to be able to merge this branch (for example update some tests or rebuild some assets), please note that violinist will force push to this branch to keep it up to date. This means you should not work on this branch directly, since you might lose your work. Read more about branches created by violinist.io here.
This is an automated pull request from Violinist: Continuously and automatically monitor and update your composer dependencies. Have ideas on how to improve this message? All violinist messages are open-source, and can be improved here.