Aggiunta psalm per migliorare lo sviluppo

This commit is contained in:
loviuz 2022-11-14 22:25:54 +01:00
parent 98c5bf135d
commit a53373a2d8
2 changed files with 17 additions and 1 deletions

View File

@ -402,7 +402,7 @@ function release(done) {
archive.pipe(output);
// Individuazione dei file da aggiungere
// Individuazione dei file da aggiungere e escludere
glob([
'**/*',
'!checksum.json',
@ -417,6 +417,7 @@ function release(done) {
'files/temp/.gitkeep',
'!logs/**',
'!config.inc.php',
'!psalm.xml',
'!update/structure.php',
'!**/*.(lock|phar|log|zip|bak|jar|txt)',
'!**/~*',

15
psalm.xml Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0"?>
<psalm
errorLevel="7"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
</psalm>