-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat(no-unlocalized-strings): remove default configuration #78
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f70111e
feat(no-unlocalized-strings): remove default configuration
timofei-iatsenko cbc587c
feat(no-unlocalized-strings): ignore non letter strings by default
timofei-iatsenko cf1397a
feat(no-unlocalized-strings): allow numbers in uppercase regex
timofei-iatsenko 0a2409e
feat(no-unlocalized-strings): merge ignoreAttribute, ignoreProperty a…
timofei-iatsenko 0bfae9b
feat(no-unlocalized-strings): remove strictAttribute option
timofei-iatsenko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
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.
I can see why you want to go in this direction, but personally I had a lot of help from the defaults, and might have been hesitant to even try to use the rule if faced with a custom setup.
UPPERCASE_LETTERS being ignored was fine imo. My 10/10 experience would be what we had, including the ability to override such specifics if desired (unsure how feasible that is).
Either way, I'm a bit wary here, thinking that this PR may be a move away from a 9/10 out of the box experience which frankly is pretty good.
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.
The problem is a could not come up with a good way to override defaults. So we have two situations:
First case is already supported, we can extend the defaults.
The second case is a bit trickier, you need to give a way for user to choose what is going to happen, override or extend? This either brings more complicated structure of every option or double of options (ignorePoperty, ignorePropertyOverride). I don't like both of variants, actually.
That's why I decided to give a blank list, so there is nothing to override and it's pretty configurable. Also, it gives much more clarity about what exactly is ignored
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.
Solid reasoning.
Your example is thorough and should be easy enough to copy paste and run with. I might have been further encouraged if this language
was slightly more assertive, i.e. officially recommending it, or mentioning it's history as the de facto-rule set before opening up for configuration.