This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 889
Added require-const-for-all-caps option to variable-name #2936
Merged
adidahiya
merged 20 commits into
palantir:master
from
JoshuaKGoldberg:variable-name-caps
Mar 12, 2019
Merged
Added require-const-for-all-caps option to variable-name #2936
adidahiya
merged 20 commits into
palantir:master
from
JoshuaKGoldberg:variable-name-caps
Mar 12, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ping @ajafff since you seem to be very active in reviewing? |
ajafff
previously requested changes
Dec 3, 2017
# Conflicts: # src/rules/variableNameRule.ts
jkillian
reviewed
May 1, 2018
jkillian
reviewed
May 1, 2018
giladgray
approved these changes
May 3, 2018
Ping @giladgray - is this ready to be merged in? |
@JoshuaKGoldberg please update this branch for a green build, or close it if no longer relevant. we will close this if we do not hear from you in two weeks. |
giladgray
suggested changes
Jul 31, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there
JoshuaKGoldberg
changed the title
Added an all-caps-for-const option to variable-name
Added a const-only-for-caps option to variable-name
Nov 6, 2018
adidahiya
suggested changes
Feb 2, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for coming in after multiple rounds of review, but I think the naming needs to be more clear. I think the clearest rule option would be require-const-for-all-caps
. the code symbols should reflect this new name.
JoshuaKGoldberg
added
PR: waiting for reviewer
and removed
PR: waiting for author
labels
Mar 7, 2019
adidahiya
approved these changes
Mar 12, 2019
adidahiya
changed the title
Added a const-only-for-caps option to variable-name
Added require-const-for-all-caps option to variable-name
Mar 12, 2019
This was referenced Mar 12, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR checklist
Overview of change:
Adds an
const-only-for-caps
option tovariable-name
. Any variable whose name is UPPER_CASE should beconst
.CHANGELOG.md entry:
[new-rule-option]
require-const-for-all-caps
forvariable-name
rule