Fix code quality issues

- Update composer.lock file to match composer.json
- Fix Markdown formatting in README.md
- Fix phpcs.xml argument syntax
- Fix phpstan.neon excludePaths syntax
This commit is contained in:
2025-04-21 14:50:21 +01:00
parent 19ec65326b
commit ad30d716db
4 changed files with 887 additions and 436 deletions

View File

@@ -371,19 +371,22 @@ To run code quality tools locally before committing to GitHub:
```
* **For Windows (Command Prompt)**:
```cmd
set SONAR_TOKEN=your_sonar_token
set CODACY_PROJECT_TOKEN=your_codacy_token
```
* **For Windows (PowerShell)**:
```powershell
$env:SONAR_TOKEN="your_sonar_token"
$env:CODACY_PROJECT_TOKEN="your_codacy_token"
```
8. **Create a .env file** (alternative approach):
```
```bash
# .env (already included in .gitignore to prevent committing secrets)
SONAR_TOKEN=your_sonar_token
CODACY_PROJECT_TOKEN=your_codacy_token

1306
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -12,7 +12,7 @@
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>libs/</exclude-pattern>
<arg value="sp" />
<arg value="-sp" />
<arg name="extensions" value="php" />
<arg name="basepath" value="." />
<arg name="parallel" value="8" />

View File

@@ -5,13 +5,13 @@ parameters:
- admin
- wp-plugin-starter-template.php
excludePaths:
analyseAndScan:
paths:
- vendor
- node_modules (?)
- node_modules
- tests
- bin (?)
- build (?)
- dist (?)
- bin
- build
- dist
ignoreErrors:
- '#Function apply_filters invoked with [0-9]+ parameters, 2 required.#'
- '#Function [a-zA-Z0-9_]+ not found.#'