New definedIn & exclude directives to limit selection
Can exclude some attributes, calls, namespaces (#197, #199)
Handy when you disallow items with wildcards but there's this one thing you'd like to leave out.
parameters:
disallowedFunctionCalls:
-
function: 'pcntl_*()'
exclude:
- 'pcntl_foo*()'
exclude
can be a string or an array/list of strings. Currently works for attributes, function & method calls, namespaces.
Add definedIn?:string|list<string>
config option (#198, #200)
To further specify/limit files where the function or method should be defined to be disallowed.
parameters:
disallowedFunctionCalls:
-
function: '*'
definedIn:
- 'vendor/foo/bar'
disallowedMethodCalls:
-
method: '*'
definedIn:
- 'vendor/foo/bar'
definedIn
can also be string or a list/array of strings. Currently works for function and method calls only. You may also need to set filesRootDir
, see the README.