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

Deprecate --option-name-check-distance #10611

Merged
merged 3 commits into from Aug 15, 2020

Conversation

Eric-Arellano
Copy link
Contributor

Generally, Pants suffers from options fatigue. It's sensible to always use a max edit distance of 2 for Levenshtein matching on bad option names - there isn't much utility to allowing users to configure something so granular.

This simplifies our code, reduces the # of options for users, and will allow us to change the algorithm if we ever want to.

[ci skip-rust]
[ci skip-build-wheels]

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@coveralls
Copy link

coveralls commented Aug 13, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling 0bace7f on Eric-Arellano:remove-leven-option into 659ffd6 on pantsbuild:master.

@Eric-Arellano Eric-Arellano changed the title Remove --option-name-check-distance Deprecate --option-name-check-distance Aug 15, 2020
This makes it ever so slightly easier for users upgrading to 2.0. We still remove all functionality from the flag - it now no-ops.
@Eric-Arellano Eric-Arellano merged commit 0b2be0b into pantsbuild:master Aug 15, 2020
@Eric-Arellano Eric-Arellano deleted the remove-leven-option branch August 15, 2020 16:58
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.

None yet

3 participants