Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add allowUnusedVariablesBeforeRequire option #196

Merged
merged 6 commits into from
Aug 18, 2020

Conversation

sirbrillig
Copy link
Owner

This adds a new option, allowUnusedVariablesBeforeRequire. If set to true, variables defined before a require, require_once, include, or include_once will not be marked as unused. They may be intended for the required file.

Fixes #105

@sirbrillig sirbrillig added this to the 3.0 milestone Aug 18, 2020
@sirbrillig sirbrillig merged commit 3b19ddf into master Aug 18, 2020
@sirbrillig sirbrillig deleted the add-unused-before-require-option branch August 18, 2020 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: lower severity for unused variable if followed by include/require
1 participant