Configure Psalm
This commit is contained in:
parent
4485675c11
commit
2cf65def5c
|
|
@ -8,4 +8,5 @@
|
||||||
/docs export-ignore
|
/docs export-ignore
|
||||||
/test export-ignore
|
/test export-ignore
|
||||||
/phpunit.xml.dist export-ignore
|
/phpunit.xml.dist export-ignore
|
||||||
|
/psalm.xnk export-ignore
|
||||||
/public export-ignore
|
/public export-ignore
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,8 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpspec/prophecy-phpunit": "^2.0",
|
"phpspec/prophecy-phpunit": "^2.0",
|
||||||
"phpunit/phpunit": "^9"
|
"phpunit/phpunit": "^9",
|
||||||
|
"vimeo/psalm": "^3.4"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -32,8 +32,9 @@ COPY ./test /usr/local/src/wellrested/test
|
||||||
COPY ./composer.* /usr/local/src/wellrested/
|
COPY ./composer.* /usr/local/src/wellrested/
|
||||||
COPY ./phpunit.xml.dist /usr/local/src/wellrested/
|
COPY ./phpunit.xml.dist /usr/local/src/wellrested/
|
||||||
|
|
||||||
# Add symlink for phpunit for easier running
|
# Add symlinks for phpunit and psalm for easier running
|
||||||
RUN ln -s /usr/local/src/wellrested/vendor/bin/phpunit /usr/local/bin/phpunit
|
RUN ln -s /usr/local/src/wellrested/vendor/bin/phpunit /usr/local/bin/phpunit
|
||||||
|
RUN ln -s /usr/local/src/wellrested/vendor/bin/psalm /usr/local/bin/psalm
|
||||||
|
|
||||||
WORKDIR /usr/local/src/wellrested
|
WORKDIR /usr/local/src/wellrested
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<psalm
|
||||||
|
errorLevel="4"
|
||||||
|
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>
|
||||||
Loading…
Reference in New Issue