Skip to content

Commit

Permalink
Improve grumphp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sci3ma committed Jan 22, 2020
1 parent 840a9d4 commit 68ab96d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dist/grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ parameters:
priority: 999
phpcpd:
directory: ['.']
exclude: ['vendor', 'public', 'var', 'config', 'bin', 'translations', 'src/Migrations']
exclude: ['vendor', 'public', 'var', 'config', 'bin', 'translations', 'src/Migrations', 'tests', 'src/DataFixtures']
names_exclude: []
fuzzy: false
min_lines: 5
Expand Down Expand Up @@ -53,7 +53,7 @@ parameters:
priority: 995
phpmnd:
directory: 'src/'
exclude: ['tests', 'config', 'var', 'translations', 'src/Migrations', 'src/DataFixtures']
exclude: ['../tests', '../config', '../var', '../translations', 'Migrations', 'DataFixtures']
extensions: ['all']
hint: true
strings: false
Expand Down
3 changes: 3 additions & 0 deletions src/dist/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ includes:
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon

parameters:
checkGenericClassInNonGenericObjectType: false
inferPrivatePropertyTypeFromConstructor: true
excludes_analyse:
- %rootDir%/../../../var/*
- %rootDir%/../../../public/*
Expand All @@ -28,3 +30,4 @@ parameters:
- '#call_user_func_array expects callable()#'
- '#Call to an undefined method Doctrine\\ORM\\Event\\LifecycleEventArgs::getNewValue()#'
- '#Call to an undefined method Doctrine\\ORM\\Event\\LifecycleEventArgs::getOldValue()#'
- '#Property .*\\Entity\\.* has no typehint specified.#'

0 comments on commit 68ab96d

Please sign in to comment.