Skip to content

When the call/usage is not found in allowIn, report error #59

Open
@spaze

Description

@spaze

Given a configuration like this for example:

	disallowedFunctionCalls:
		-
			function: 'pcntl_*()'
			allowIn:
				- vendor/foo/bar/Baz.php

when any pcntl call is not found in vendor/foo/bar/Baz.php, report error and suggest removing the allowIn item to keep the config clean and up to date.

This is similar to what PHPStan reports when a ignoreErrors error wasn't hit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions