{"action":"created","issue":{"url":"https://api.github.com/repos/editorconfig/editorconfig/issues/224","labels_url":"https://api.github.com/repos/editorconfig/editorconfig/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/editorconfig/editorconfig/issues/224/comments","events_url":"https://api.github.com/repos/editorconfig/editorconfig/issues/224/events","html_url":"https://github.com/editorconfig/editorconfig/issues/224","id":92715446,"number":224,"title":"Detect typos","user":{"login":"wernight","id":145667,"avatar_url":"https://avatars.githubusercontent.com/u/145667?v=3","gravatar_id":"","url":"https://api.github.com/users/wernight","html_url":"https://github.com/wernight","followers_url":"https://api.github.com/users/wernight/followers","following_url":"https://api.github.com/users/wernight/following{/other_user}","gists_url":"https://api.github.com/users/wernight/gists{/gist_id}","starred_url":"https://api.github.com/users/wernight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wernight/subscriptions","organizations_url":"https://api.github.com/users/wernight/orgs","repos_url":"https://api.github.com/users/wernight/repos","events_url":"https://api.github.com/users/wernight/events{/privacy}","received_events_url":"https://api.github.com/users/wernight/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-02T19:27:14Z","updated_at":"2015-07-06T08:37:14Z","closed_at":"2015-07-03T00:14:49Z","body":"editorconfig-core-py and may be other helper libraries could report warnings like typos.\r\n\r\nBest would be if it had a list of known properties, but supposing one would like to allow extending editconfig with any random name, it would still be possible by checking if Levenshtein distance is 1 or 2 to any known property.\r\n\r\nExample:\r\n\r\n`indend_style` is Levenshtein distance 1 of `indent_style`, so editorconfig-core-py could output:\r\n\r\n    indend_style = tab\r\n    # WARN indend_style property is not known, did you mean indent_style?\r\n\r\nFor Levenshtein distance > 3 it could just ignore to allow for example someone to put random_property_name in `.editorconfig` without getting a warning.\r\n\r\nPS: I could help writing that function that would use [the python implementation](https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#Python) and check against all known properties, or something a bit more efficient if needed.\r\n\r\nRelated to https://github.com/editorconfig/editorconfig-vim/issues/40#issuecomment-118086688"},"comment":{"url":"https://api.github.com/repos/editorconfig/editorconfig/issues/comments/118775557","html_url":"https://github.com/editorconfig/editorconfig/issues/224#issuecomment-118775557","issue_url":"https://api.github.com/repos/editorconfig/editorconfig/issues/224","id":118775557,"user":{"login":"wernight","id":145667,"avatar_url":"https://avatars.githubusercontent.com/u/145667?v=3","gravatar_id":"","url":"https://api.github.com/users/wernight","html_url":"https://github.com/wernight","followers_url":"https://api.github.com/users/wernight/followers","following_url":"https://api.github.com/users/wernight/following{/other_user}","gists_url":"https://api.github.com/users/wernight/gists{/gist_id}","starred_url":"https://api.github.com/users/wernight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wernight/subscriptions","organizations_url":"https://api.github.com/users/wernight/orgs","repos_url":"https://api.github.com/users/wernight/repos","events_url":"https://api.github.com/users/wernight/events{/privacy}","received_events_url":"https://api.github.com/users/wernight/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T08:37:14Z","updated_at":"2015-07-06T08:37:14Z","body":"SGTM"}}