Repository navigation
Add a :fuzzy project option for mix gettext.merge - #459
Closed
oliver-kriska wants to merge 1 commit into
Closed
oliver-kriska wants to merge 1 commit into
oliver-kriska wants to merge 1 commit into
Conversation
Setting `fuzzy: false` in the :gettext project configuration turns off fuzzy matching for mix gettext.merge, and so for mix gettext.extract --merge. The --fuzzy and --no-fuzzy flags still override it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Author
|
Closing this given the feedback on #458 about avoiding new project configuration. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
:fuzzyoption to the:gettextproject configuration.fuzzy: falseturns off fuzzy matching formix gettext.merge, and so formix gettext.extract --merge.--fuzzyand--no-fuzzystill override it.A project that never wants fuzzy matches has to pass
--no-fuzzyon every call today, usually through a Mix alias. Any call that goes around the alias fuzzy matches without notice.:fuzzy_thresholdalready has a project option; this is the on/off counterpart.mix.exs:fuzzyfuzzy: falsefuzzy: false--fuzzyfuzzy: true--no-fuzzyChecks
gettext.merge_test.exsfor the last three rows; thefuzzy: falseone fails onmain. The first row is covered by the existing tests.mix gettext.extract --mergehas no test of its own here: it callsMix.Tasks.Gettext.Merge.run/1, which reads the project configuration itself, as it does for:fuzzy_threshold.mix format --check-formatted,mix compile --warnings-as-errorsandmix testpass (197 passed).Note
This touches the same function and test file as #458. I'll rebase whichever one is merged second.
🤖 Generated with Claude Code