Fix GitHub Actions failures: code quality, tests, and linting
- Fix shellcheck warnings in bin/install-wp-tests.sh (quote variables, fix command -v usage) - Remove trailing spaces in .github/workflows/phpunit.yml - Add phpmd.xml to exclude camelCase checks for WordPress naming conventions - Update composer.json to use phpmd.xml configuration - Remove trailing commas in .eslintrc.js for Codacy compliance - Add .markdownlint.json to configure markdown linting rules - Improve Cypress test reliability with increased timeouts - Update loginAsAdmin command with better error handling - Make plugin activation checks more robust in Cypress tests 🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
25
phpmd.xml
Normal file
25
phpmd.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0"?>
|
||||
<ruleset name="WordPress PHPMD Ruleset"
|
||||
xmlns="http://pmd.sf.net/ruleset/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
|
||||
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
|
||||
<description>Custom PHPMD ruleset for WordPress plugin development</description>
|
||||
|
||||
<!-- Import rulesets -->
|
||||
<rule ref="rulesets/cleancode.xml">
|
||||
<exclude name="StaticAccess" />
|
||||
</rule>
|
||||
<rule ref="rulesets/codesize.xml" />
|
||||
<rule ref="rulesets/controversial.xml">
|
||||
<exclude name="CamelCaseMethodName" />
|
||||
<exclude name="CamelCaseParameterName" />
|
||||
<exclude name="CamelCaseVariableName" />
|
||||
</rule>
|
||||
<rule ref="rulesets/design.xml" />
|
||||
<rule ref="rulesets/naming.xml">
|
||||
<exclude name="ShortVariable" />
|
||||
<exclude name="LongVariable" />
|
||||
</rule>
|
||||
<rule ref="rulesets/unusedcode.xml" />
|
||||
</ruleset>
|
||||
Reference in New Issue
Block a user