{"action":"created","issue":{"url":"https://api.github.com/repos/brigade/scss-lint/issues/524","labels_url":"https://api.github.com/repos/brigade/scss-lint/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/brigade/scss-lint/issues/524/comments","events_url":"https://api.github.com/repos/brigade/scss-lint/issues/524/events","html_url":"https://github.com/brigade/scss-lint/issues/524","id":95006270,"number":524,"title":"report_lint matcher: Failed match of specific count of lints prints a useless message","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":[{"url":"https://api.github.com/repos/brigade/scss-lint/labels/enhancement","name":"enhancement","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T18:21:41Z","updated_at":"2015-07-23T06:56:33Z","closed_at":"2015-07-23T06:56:33Z","body":"In the linter specs, we can specify that we expect an exact number of lints on a line (this is used a number of times; `git grep 'line: [0-9]*, count: [0-9]*' spec/scss_lint/linter`), but when it fails the message is not useful.\r\n\r\nFor example, if we change border_zero_spec.rb, line 41, to: `it { should report_lint line: 2, count: 2 }`, then we get the following failure from RSpec:\r\n\r\n```\r\n1) SCSSLint::Linter::BorderZero when a property has a border of none should report a lint on line 2\r\n   Failure/Error: it { should report_lint line: 2, count: 2 }\r\n     expected that a lint would be reported on line 2, but was on line 2\r\n   # ./spec/scss_lint/linter/border_zero_spec.rb:41:in `block (4 levels) in <top (required)>'\r\n```\r\n\r\nThat is, \"expected that a lint would be reported on line 2, but was on line 2\"."},"comment":{"url":"https://api.github.com/repos/brigade/scss-lint/issues/comments/123998838","html_url":"https://github.com/brigade/scss-lint/issues/524#issuecomment-123998838","issue_url":"https://api.github.com/repos/brigade/scss-lint/issues/524","id":123998838,"user":{"login":"sds","id":677877,"avatar_url":"https://avatars.githubusercontent.com/u/677877?v=3","gravatar_id":"","url":"https://api.github.com/users/sds","html_url":"https://github.com/sds","followers_url":"https://api.github.com/users/sds/followers","following_url":"https://api.github.com/users/sds/following{/other_user}","gists_url":"https://api.github.com/users/sds/gists{/gist_id}","starred_url":"https://api.github.com/users/sds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sds/subscriptions","organizations_url":"https://api.github.com/users/sds/orgs","repos_url":"https://api.github.com/users/sds/repos","events_url":"https://api.github.com/users/sds/events{/privacy}","received_events_url":"https://api.github.com/users/sds/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T06:56:33Z","updated_at":"2015-07-23T06:56:33Z","body":"Implemented in #525."}}