{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/6179","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/6179/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/6179/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/6179/events","html_url":"https://github.com/eslint/eslint/issues/6179","id":154878584,"number":6179,"title":"no-multiple-empty-lines, max beginning of file bug","user":{"login":"RRMoelker","id":205326,"avatar_url":"https://avatars.githubusercontent.com/u/205326?v=3","gravatar_id":"","url":"https://api.github.com/users/RRMoelker","html_url":"https://github.com/RRMoelker","followers_url":"https://api.github.com/users/RRMoelker/followers","following_url":"https://api.github.com/users/RRMoelker/following{/other_user}","gists_url":"https://api.github.com/users/RRMoelker/gists{/gist_id}","starred_url":"https://api.github.com/users/RRMoelker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RRMoelker/subscriptions","organizations_url":"https://api.github.com/users/RRMoelker/orgs","repos_url":"https://api.github.com/users/RRMoelker/repos","events_url":"https://api.github.com/users/RRMoelker/events{/privacy}","received_events_url":"https://api.github.com/users/RRMoelker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-14T22:22:03Z","updated_at":"2016-05-14T22:22:03Z","closed_at":null,"body":"**What version of ESLint are you using?**\r\n2.10.0 , sha: 8b78697f1c2f20fda8a4ec53819be76be3de2193\r\n\r\n**What parser (default, Babel-ESLint, etc.) are you using?**\r\ndefault\r\n\r\n**Please show your full configuration:**\r\n```\r\n$ node --version\r\nv5.5.0\r\n```\r\n\r\n**What did you do? Please include the actual source code causing the issue.**\r\nThe *no-multiple-empty-lines* rule flagged code as invalid even though it should work according to the doc. The following test case fails:\r\n\r\n*file tests/lib/rules/no-multiple-empty-lines.js: 140*\r\n```\r\n{\r\n  code: \"\\n\\n\\n\\n// invalid 16\\nvar a = 5;\\n\",\r\n  options: [ { max: 0, maxBOF: 4 } ]\r\n}\r\n```\r\nNote that this is a modified version of the invalid test case already present in the code. I'm writing a fixer for this rule and it seems no fix of invalid test case 16 is ever accepted.\r\n\r\n**What did you expect to happen?**\r\nI expect that the test case code provided above is seen as valid by the test runner. This should be the solution to the invalid test case 16. However it is not accepted. Moreover there doesn't seem to be a permutation which valid. It seems the rule cannot handle a `maxBOF` > `max`. Given these options the rule is simply never valid.\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\nThe test case returns an error:\r\n\r\n```\r\n$ npm test\r\n...\r\n  1) no-multiple-empty-lines valid\r\n\r\n\r\n\r\n// invalid 16\r\nvar a = 5;\r\n:\r\n\r\n      AssertionError: Should have no errors but had 1: [ { ruleId: 'no-multiple-empty-lines',\r\n    severity: 1,\r\n    message: 'More than 0 blank lines not allowed.',\r\n    line: 4,\r\n    column: 2,\r\n    nodeType: 'Program',\r\n    source: '' } ]\r\n      + expected - actual\r\n\r\n      -1\r\n      +0\r\n\r\n      at testValidTemplate (lib/testers/rule-tester.js:9:9813)\r\n      at Context.<anonymous> (lib/testers/rule-tester.js:9:14513)\r\n...\r\n```\r\n"}}