Skip to content

Commit

Permalink
Merge pull request #34 from crydotsnake/feature/add-phpstan
Browse files Browse the repository at this point in the history
FEATURE: add phpstan
  • Loading branch information
daniellienert authored May 10, 2022
2 parents ed9a369 + 4fc3c8d commit 4219ba3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,17 @@ yarn build

The generated file `main.js` is located in the folder `build/static/js`.
This file is loaded in the Neos Backend and is the editor you see.

## Run tests with PHPStan

**Analyse the full project:**

```bash
vendor/bin/phpstan analyse -c phpstan.neon
```

**Analyse a specific file:**

```bash
vendor/bin/phpstan analyse Classes/Path/To/File.php
```
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"neos/swiftmailer": ">=7.0",
"phpoffice/phpspreadsheet": "^1.18"
},
"require-dev": {
"phpstan/phpstan": "^1.4"
},
"suggest": {
"neos/form-builder": "Adds a builder for the Flow Form Framework to the Neos CMS backend."
},
Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
parameters:
level: 6
paths:
- Classes

0 comments on commit 4219ba3

Please sign in to comment.