ninja-build / ninja

a small build system with a focus on speed
https://ninja-build.org/
Apache License 2.0
11.26k stars 1.6k forks source link

Tweak target spellchecking heuristic #681

Open nico opened 11 years ago

nico commented 11 years ago

Currently, ninja suggests a spellchecked target if the edit distance is 3 or less. That works well in many cases, but doesn't in some. This issue is for collecting good and bad examples, then that can be used to decide on some better heuristic in the future.

Good: content_unit_tests -> content_unittests Bad: pdf -> wtf

(to be continued…)

nico commented 11 years ago

Good: resource.pak -> resources.pak

nico commented 11 years ago

Good: unittests.exe -> unit_tests.exe

(Tacking on ".exe" on windows might be useful)

nico commented 11 years ago

Bad: didn't correct "webkit_all" to "all_webkit"

nico commented 10 years ago

Bad: unknown target '0j2', did you mean 'not'?