mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Merge pull request #5369 from nextcloud/enh/noid/psalm
aio-interface: Improve psalm
This commit is contained in:
commit
09a3212b6b
3 changed files with 41 additions and 34 deletions
|
|
@ -56,6 +56,7 @@ Note: You can restart the server by preceding the command with other environment
|
||||||
|-----------------------------------------|----------------------------------------|
|
|-----------------------------------------|----------------------------------------|
|
||||||
| `composer run dev` | Starts the development server |
|
| `composer run dev` | Starts the development server |
|
||||||
| `composer run psalm` | Run Psalm static analysis |
|
| `composer run psalm` | Run Psalm static analysis |
|
||||||
|
| `composer run psalm:strict` | Run Psalm static analysis strict |
|
||||||
| `composer run psalm:update-baseline` | Run Psalm with `--update-baseline` arg |
|
| `composer run psalm:update-baseline` | Run Psalm with `--update-baseline` arg |
|
||||||
| `composer run lint` | Run PHP Syntax check |
|
| `composer run lint` | Run PHP Syntax check |
|
||||||
| `composer run lint:twig` | Run Twig Syntax check |
|
| `composer run lint:twig` | Run Twig Syntax check |
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
],
|
],
|
||||||
"psalm": "psalm --threads=1",
|
"psalm": "psalm --threads=1",
|
||||||
"psalm:update-baseline": "psalm --threads=1 --monochrome --no-progress --output-format=text --update-baseline",
|
"psalm:update-baseline": "psalm --threads=1 --monochrome --no-progress --output-format=text --update-baseline",
|
||||||
|
"psalm:strict": "psalm --threads=1 --show-info=true",
|
||||||
"lint": "php -l src/*.php src/**/*.php public/index.php",
|
"lint": "php -l src/*.php src/**/*.php public/index.php",
|
||||||
"lint:twig": "twig-linter lint ./templates",
|
"lint:twig": "twig-linter lint ./templates",
|
||||||
"php-deprecation-detector": "phpdd scan -n -t 8.3 src/*.php src/**/*.php public/index.php"
|
"php-deprecation-detector": "phpdd scan -n -t 8.3 src/*.php src/**/*.php public/index.php"
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,22 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<psalm
|
<psalm
|
||||||
errorLevel="2"
|
|
||||||
resolveFromConfigFile="true"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns="https://getpsalm.org/schema/config"
|
xmlns="https://getpsalm.org/schema/config"
|
||||||
xsi:schemaLocation="https://getpsalm.org/schema/config"
|
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||||
errorBaseline="psalm-baseline.xml"
|
errorBaseline="psalm-baseline.xml"
|
||||||
findUnusedBaselineEntry="true"
|
findUnusedBaselineEntry="true"
|
||||||
findUnusedCode="false"
|
|
||||||
>
|
>
|
||||||
<projectFiles>
|
<projectFiles>
|
||||||
<directory name="templates"/>
|
<directory name="templates"/>
|
||||||
<directory name="src"/>
|
<directory name="src"/>
|
||||||
<file name="public/index.php"/>
|
<file name="public/index.php"/>
|
||||||
|
<ignoreFiles>
|
||||||
|
<directory name="vendor" />
|
||||||
|
</ignoreFiles>
|
||||||
</projectFiles>
|
</projectFiles>
|
||||||
|
<extraFiles>
|
||||||
|
<directory name="vendor" />
|
||||||
|
</extraFiles>
|
||||||
|
<issueHandlers>
|
||||||
|
</issueHandlers>
|
||||||
</psalm>
|
</psalm>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue