{"action":"created","issue":{"url":"https://api.github.com/repos/lesshint/lesshint/issues/50","labels_url":"https://api.github.com/repos/lesshint/lesshint/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/lesshint/lesshint/issues/50/comments","events_url":"https://api.github.com/repos/lesshint/lesshint/issues/50/events","html_url":"https://github.com/lesshint/lesshint/issues/50","id":103780454,"number":50,"title":"Add validateIndentation","user":{"login":"CITguy","id":545605,"avatar_url":"https://avatars.githubusercontent.com/u/545605?v=3","gravatar_id":"","url":"https://api.github.com/users/CITguy","html_url":"https://github.com/CITguy","followers_url":"https://api.github.com/users/CITguy/followers","following_url":"https://api.github.com/users/CITguy/following{/other_user}","gists_url":"https://api.github.com/users/CITguy/gists{/gist_id}","starred_url":"https://api.github.com/users/CITguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CITguy/subscriptions","organizations_url":"https://api.github.com/users/CITguy/orgs","repos_url":"https://api.github.com/users/CITguy/repos","events_url":"https://api.github.com/users/CITguy/events{/privacy}","received_events_url":"https://api.github.com/users/CITguy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lesshint/lesshint/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/lesshint/lesshint/labels/linter","name":"linter","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-28T19:24:45Z","updated_at":"2015-10-09T15:42:16Z","closed_at":null,"body":"My team uses 4 spaces per indentation. It would be nice to have a linter to check that indentation is correct. Something along the lines of the following (with suggested defaults):\r\n\r\n### validateIndentation\r\n\r\n#### syntax\r\n```\r\n\"validateIndentation\": {\r\n  \"enabled\": true,\r\n  \"style\": \"spaces\",\r\n  \"quantity\": 4\r\n}\r\n```\r\n\r\n#### options\r\n**style** (string)\r\n\r\n* spaces (default)\r\n* tabs\r\n\r\n\r\n**quantity** (integer) number of spaces/tabs per indentation\r\n\r\n* 2 (default)\r\n* user defined value"},"comment":{"url":"https://api.github.com/repos/lesshint/lesshint/issues/comments/146906937","html_url":"https://github.com/lesshint/lesshint/issues/50#issuecomment-146906937","issue_url":"https://api.github.com/repos/lesshint/lesshint/issues/50","id":146906937,"user":{"login":"shellscape","id":76371,"avatar_url":"https://avatars.githubusercontent.com/u/76371?v=3","gravatar_id":"","url":"https://api.github.com/users/shellscape","html_url":"https://github.com/shellscape","followers_url":"https://api.github.com/users/shellscape/followers","following_url":"https://api.github.com/users/shellscape/following{/other_user}","gists_url":"https://api.github.com/users/shellscape/gists{/gist_id}","starred_url":"https://api.github.com/users/shellscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shellscape/subscriptions","organizations_url":"https://api.github.com/users/shellscape/orgs","repos_url":"https://api.github.com/users/shellscape/repos","events_url":"https://api.github.com/users/shellscape/events{/privacy}","received_events_url":"https://api.github.com/users/shellscape/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T15:42:16Z","updated_at":"2015-10-09T15:42:16Z","body":"Going back to @jwilsson 's comment, that has landed on npm in 3.0.0-beta, which we know we have to do some updates for when 3.0.0 lands. \r\n\r\nI'm going to vote against this linter. JSHint has deprecated the same functionality and I happen to agree with the reasoning (see: http://jshint.com/docs/options/#indent) Code style is not code quality/correctness.\r\n\r\n> Warning This option has been deprecated and will be removed in the next major release of JSHint. JSHint is limiting its scope to issues of code correctness. If you would like to enforce rules relating to code style, check out the JSCS project.\r\n\r\n"}}