{"action":"opened","issue":{"url":"https://api.github.com/repos/brigade/scss-lint/issues/429","labels_url":"https://api.github.com/repos/brigade/scss-lint/issues/429/labels{/name}","comments_url":"https://api.github.com/repos/brigade/scss-lint/issues/429/comments","events_url":"https://api.github.com/repos/brigade/scss-lint/issues/429/events","html_url":"https://github.com/brigade/scss-lint/issues/429","id":69330214,"number":429,"title":"scss-lint:disable command hides lints in other files","user":{"login":"srawlins","id":103167,"avatar_url":"https://avatars.githubusercontent.com/u/103167?v=3","gravatar_id":"","url":"https://api.github.com/users/srawlins","html_url":"https://github.com/srawlins","followers_url":"https://api.github.com/users/srawlins/followers","following_url":"https://api.github.com/users/srawlins/following{/other_user}","gists_url":"https://api.github.com/users/srawlins/gists{/gist_id}","starred_url":"https://api.github.com/users/srawlins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srawlins/subscriptions","organizations_url":"https://api.github.com/users/srawlins/orgs","repos_url":"https://api.github.com/users/srawlins/repos","events_url":"https://api.github.com/users/srawlins/events{/privacy}","received_events_url":"https://api.github.com/users/srawlins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-18T17:30:37Z","updated_at":"2015-04-18T17:30:37Z","closed_at":null,"body":"I've found that using `scss-lint:disable` at the top of one file can affect what lints are filtered in other files. Also:\r\n\r\n* If the file with `scss-lint:disable` is _n_ lines long, it _doesn't_ filter lints in other files on line numbers greater than _n_.\r\n* The file with `scss-lint:disable` only affects other files when it is specified on the command line _after_ another file.\r\n\r\nExamples:\r\n\r\n**a.scss**\r\n\r\n```scss\r\nfoo {\r\n  border: 0px;\r\n\r\n  // This next lint is on line 5; c.scss is 5 lines long.\r\n  margin: 0px;\r\n}\r\n```\r\n\r\n**c.scss**\r\n\r\n```scss\r\n// scss-lint:disable ZeroUnit\r\n\r\nbar {\r\n  border: 0;\r\n}\r\n```\r\n\r\n```shell\r\n$ bundle exec ../bin/scss-lint a.scss\r\na.scss:2 [W] ZeroUnit: `0px` should be written without units as `0`\r\na.scss:5 [W] ZeroUnit: `0px` should be written without units as `0`\r\n\r\n$ bundle exec ../bin/scss-lint a.scss c.scss\r\na.scss:5 [W] ZeroUnit: `0px` should be written without units as `0`\r\n\r\n$ bundle exec ../bin/scss-lint c.scss a.scss\r\na.scss:2 [W] ZeroUnit: `0px` should be written without units as `0`\r\na.scss:5 [W] ZeroUnit: `0px` should be written without units as `0`\r\n```"}}