Skip to content

Commit

Permalink
Cause rr to download its binary into vendor/bin
Browse files Browse the repository at this point in the history
Include default psalm config
  • Loading branch information
nmeri17 committed Apr 7, 2023
1 parent 842d256 commit 4aa6b56
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"require-dev": {},
"scripts": {
"post-create-project-cmd": [
"php -r \"chdir(__DIR__. '/vendor/bin');\"",

"rr get-binary"
]
}
Expand Down
29 changes: 29 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<psalm
errorLevel="3"
allowNamedArgumentCalls="false"
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="AllModules" />

<ignoreFiles>
<directory name="vendor" />
<directory name="ModuleTemplate" />
</ignoreFiles>

<ignoreFiles>
<directory name="*/compiled-views" />
</ignoreFiles>
</projectFiles>

<issueHandlers>
<PossiblyUnusedMethod errorLevel="suppress" />
<PossiblyUnusedParam errorLevel="suppress" />
<PossiblyUnusedProperty errorLevel="suppress" />
<PossiblyUnusedReturnValue errorLevel="suppress" />
</issueHandlers>
</psalm>

0 comments on commit 4aa6b56

Please sign in to comment.