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

fix 968 by removing references to black and white lists #969

Merged
merged 4 commits into from
Feb 3, 2024
Merged

Conversation

chavacava
Copy link
Collaborator

Removes public identifiers of rules and parameters that use the words black or white.
Backward compatibility (with previous configurations) is ensured by mapping old names into new ones.

Closes #968

README.md Outdated
@@ -477,7 +477,7 @@ List of all available rules. The rules ported from `golint` are left unchanged a
| [`exported`](./RULES_DESCRIPTIONS.md#exported) | []string | Naming and commenting conventions on exported symbols. | yes | no |
| [`if-return`](./RULES_DESCRIPTIONS.md#if-return) | n/a | Redundant if when returning an error. | no | no |
| [`increment-decrement`](./RULES_DESCRIPTIONS.md#increment-decrement) | n/a | Use `i++` and `i--` instead of `i += 1` and `i -= 1`. | yes | no |
| [`var-naming`](./RULES_DESCRIPTIONS.md#var-naming) | whitelist & blacklist of initialisms | Naming rules. | yes | no |
| [`var-naming`](./RULES_DESCRIPTIONS.md#var-naming) | allow-list & blocklist of initialisms | Naming rules. | yes | no |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be allowlist to be consistent with blocklist? I googled a little bit, it seems to be pretty common to use it as a single word.

Copy link
Collaborator

@denisvmedia denisvmedia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chavacava chavacava merged commit ef34f92 into master Feb 3, 2024
4 checks passed
@denisvmedia denisvmedia deleted the fix/968 branch February 3, 2024 18:05
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.

next phase of refactoring from black and white to block and allow
2 participants