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:
@@ -371,19 +371,22 @@ To run code quality tools locally before committing to GitHub:
|
|||||||
```
|
```
|
||||||
|
|
||||||
* **For Windows (Command Prompt)**:
|
* **For Windows (Command Prompt)**:
|
||||||
|
|
||||||
```cmd
|
```cmd
|
||||||
set SONAR_TOKEN=your_sonar_token
|
set SONAR_TOKEN=your_sonar_token
|
||||||
set CODACY_PROJECT_TOKEN=your_codacy_token
|
set CODACY_PROJECT_TOKEN=your_codacy_token
|
||||||
```
|
```
|
||||||
|
|
||||||
* **For Windows (PowerShell)**:
|
* **For Windows (PowerShell)**:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
$env:SONAR_TOKEN="your_sonar_token"
|
$env:SONAR_TOKEN="your_sonar_token"
|
||||||
$env:CODACY_PROJECT_TOKEN="your_codacy_token"
|
$env:CODACY_PROJECT_TOKEN="your_codacy_token"
|
||||||
```
|
```
|
||||||
|
|
||||||
8. **Create a .env file** (alternative approach):
|
8. **Create a .env file** (alternative approach):
|
||||||
```
|
|
||||||
|
```bash
|
||||||
# .env (already included in .gitignore to prevent committing secrets)
|
# .env (already included in .gitignore to prevent committing secrets)
|
||||||
SONAR_TOKEN=your_sonar_token
|
SONAR_TOKEN=your_sonar_token
|
||||||
CODACY_PROJECT_TOKEN=your_codacy_token
|
CODACY_PROJECT_TOKEN=your_codacy_token
|
||||||
|
|||||||
1306
composer.lock
generated
1306
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -12,7 +12,7 @@
|
|||||||
<exclude-pattern>*/tests/*</exclude-pattern>
|
<exclude-pattern>*/tests/*</exclude-pattern>
|
||||||
<exclude-pattern>libs/</exclude-pattern>
|
<exclude-pattern>libs/</exclude-pattern>
|
||||||
|
|
||||||
<arg value="sp" />
|
<arg value="-sp" />
|
||||||
<arg name="extensions" value="php" />
|
<arg name="extensions" value="php" />
|
||||||
<arg name="basepath" value="." />
|
<arg name="basepath" value="." />
|
||||||
<arg name="parallel" value="8" />
|
<arg name="parallel" value="8" />
|
||||||
|
|||||||
10
phpstan.neon
10
phpstan.neon
@@ -5,13 +5,13 @@ parameters:
|
|||||||
- admin
|
- admin
|
||||||
- wp-plugin-starter-template.php
|
- wp-plugin-starter-template.php
|
||||||
excludePaths:
|
excludePaths:
|
||||||
analyseAndScan:
|
paths:
|
||||||
- vendor
|
- vendor
|
||||||
- node_modules (?)
|
- node_modules
|
||||||
- tests
|
- tests
|
||||||
- bin (?)
|
- bin
|
||||||
- build (?)
|
- build
|
||||||
- dist (?)
|
- dist
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- '#Function apply_filters invoked with [0-9]+ parameters, 2 required.#'
|
- '#Function apply_filters invoked with [0-9]+ parameters, 2 required.#'
|
||||||
- '#Function [a-zA-Z0-9_]+ not found.#'
|
- '#Function [a-zA-Z0-9_]+ not found.#'
|
||||||
|
|||||||
Reference in New Issue
Block a user