{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/3981","labels_url":"https://api.github.com/repos/eslint/eslint/issues/3981/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3981/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/3981/events","html_url":"https://github.com/eslint/eslint/issues/3981","id":108988413,"number":3981,"title":"linebreak-style doesn’t detect multiple problems per file","user":{"login":"lo1tuma","id":169170,"avatar_url":"https://avatars.githubusercontent.com/u/169170?v=3","gravatar_id":"","url":"https://api.github.com/users/lo1tuma","html_url":"https://github.com/lo1tuma","followers_url":"https://api.github.com/users/lo1tuma/followers","following_url":"https://api.github.com/users/lo1tuma/following{/other_user}","gists_url":"https://api.github.com/users/lo1tuma/gists{/gist_id}","starred_url":"https://api.github.com/users/lo1tuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lo1tuma/subscriptions","organizations_url":"https://api.github.com/users/lo1tuma/orgs","repos_url":"https://api.github.com/users/lo1tuma/repos","events_url":"https://api.github.com/users/lo1tuma/events{/privacy}","received_events_url":"https://api.github.com/users/lo1tuma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/eslint/eslint/labels/proposal","name":"proposal","color":"fef2c0"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-09-30T00:51:39Z","updated_at":"2015-10-01T20:35:22Z","closed_at":null,"body":"The `linebreak-style` rule only reports the first problem that was detected, even if there are more.\r\n\r\nWhen running following command\r\n\r\n```\r\n$ echo \"var foo;\\nvar bar;\\nvar baz;\" | ./node_modules/.bin/eslint --no-eslintrc --rule 'linebreak-style: [2, \"windows\"]' --stdin\r\n```\r\n\r\nI get the following output:\r\n\r\n```\r\n<text>\r\n  1:9  error  Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style\r\n\r\n✖ 1 problem (1 error, 0 warnings)\r\n```\r\n\r\nI would expect 2 problems.\r\n\r\nESLint version: `1.5.1`\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27047592-linebreak-style-doesn-t-detect-multiple-problems-per-file?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/144840089","html_url":"https://github.com/eslint/eslint/issues/3981#issuecomment-144840089","issue_url":"https://api.github.com/repos/eslint/eslint/issues/3981","id":144840089,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T20:35:22Z","updated_at":"2015-10-01T20:35:22Z","body":"That would mean a rule behaves differently based on the mode - are we comfortable with that?"}}