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

Add 'attribute-typo' check #29

Merged
merged 3 commits into from
Feb 8, 2021
Merged

Add 'attribute-typo' check #29

merged 3 commits into from
Feb 8, 2021

Conversation

jtojnar
Copy link
Owner

@jtojnar jtojnar commented Feb 8, 2021

This is somewhat common issue (e.g. https://discourse.nixos.org/t/create-development-environment-based-on-shell-nix/10035). Let's steal @infinisil's levenshtein functions.

@jtojnar jtojnar requested a review from rmcgibbo February 8, 2021 01:25
levenshtein "hello" "Heyo"
=> 3
*/
levenshtein = a: b: let
Copy link
Owner Author

Choose a reason for hiding this comment

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

I kept the original formatting to make copying easier. Ideally this would be in a repo we could just include.

overlays/attribute-typo.nix Outdated Show resolved Hide resolved
@jtojnar jtojnar force-pushed the typos branch 5 times, most recently from 206894a to 5a9635c Compare February 8, 2021 04:13
@jtojnar jtojnar mentioned this pull request Feb 8, 2021
34 tasks
Originally, we did not have a JSON output so we grepped for the explanation link.
Some trivial checks will not have an explanation link so we will not be able to test for them.
@jtojnar jtojnar merged commit b3519d4 into master Feb 8, 2021
@jtojnar jtojnar deleted the typos branch February 8, 2021 21:10
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.

1 participant