Add composer

This commit is contained in:
Matthew Brown 2019-02-18 18:40:57 -05:00
parent a8b912f2ff
commit f1e77a8e56
2 changed files with 51 additions and 0 deletions

33
composer.json Normal file
View File

@ -0,0 +1,33 @@
{
"name": "psalm/plugin-laravel",
"description": "A Laravel plugin for Psalm",
"type": "psalm-plugin",
"require": {
"barryvdh/laravel-ide-helper": "^2.5",
"vimeo/psalm": "^3.0.17 || ^3.1",
"orchestra/testbench": "^3.7"
},
"license": "MIT",
"authors": [
{
"name": "Matthew Brown",
"email": "github@muglug.com"
}
],
"extra": {
"psalm": {
"pluginClass": "Psalm\\LaravelPlugin\\Plugin"
}
},
"autoload": {
"psr-4": {
"Psalm\\LaravelPlugin\\": "src"
}
},
"scripts" : {
"check": [
"@analyze"
],
"analyze": "psalm"
}
}

18
psalm.xml Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<psalm
totallyTyped="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config file:///Users/matthewbrown/Desktop/vimeo/git/laravel-psalm-plugin/vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<LessSpecificReturnType errorLevel="info" />
</issueHandlers>
</psalm>