{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/630","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/630/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/630/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/630/events","html_url":"https://github.com/stylelint/stylelint/pull/630","id":127119484,"number":630,"title":"Add ignore non-comments option to max-line-length","user":{"login":"davidtheclark","id":628431,"avatar_url":"https://avatars.githubusercontent.com/u/628431?v=3","gravatar_id":"","url":"https://api.github.com/users/davidtheclark","html_url":"https://github.com/davidtheclark","followers_url":"https://api.github.com/users/davidtheclark/followers","following_url":"https://api.github.com/users/davidtheclark/following{/other_user}","gists_url":"https://api.github.com/users/davidtheclark/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtheclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtheclark/subscriptions","organizations_url":"https://api.github.com/users/davidtheclark/orgs","repos_url":"https://api.github.com/users/davidtheclark/repos","events_url":"https://api.github.com/users/davidtheclark/events{/privacy}","received_events_url":"https://api.github.com/users/davidtheclark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/PR:%20review%20accepted","name":"PR: review accepted","color":"47B230"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-17T20:02:44Z","updated_at":"2016-01-18T14:59:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/630","html_url":"https://github.com/stylelint/stylelint/pull/630","diff_url":"https://github.com/stylelint/stylelint/pull/630.diff","patch_url":"https://github.com/stylelint/stylelint/pull/630.patch"},"body":"Closes #617.\r\n\r\nI ran into a difficult conundrum with this one, and ended up accepting the limitation the it will only enforce the rule for lines that *start* with comments (either the beginning of a comment or the middle of one).\r\n\r\nSee the docs and tests for more examples.\r\n\r\n@ntwb, it would be great if you could try this branch out and see if it works the way you would want it to."},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/172552645","html_url":"https://github.com/stylelint/stylelint/pull/630#issuecomment-172552645","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/630","id":172552645,"user":{"login":"ntwb","id":1016458,"avatar_url":"https://avatars.githubusercontent.com/u/1016458?v=3","gravatar_id":"","url":"https://api.github.com/users/ntwb","html_url":"https://github.com/ntwb","followers_url":"https://api.github.com/users/ntwb/followers","following_url":"https://api.github.com/users/ntwb/following{/other_user}","gists_url":"https://api.github.com/users/ntwb/gists{/gist_id}","starred_url":"https://api.github.com/users/ntwb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntwb/subscriptions","organizations_url":"https://api.github.com/users/ntwb/orgs","repos_url":"https://api.github.com/users/ntwb/repos","events_url":"https://api.github.com/users/ntwb/events{/privacy}","received_events_url":"https://api.github.com/users/ntwb/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T14:59:53Z","updated_at":"2016-01-18T14:59:53Z","body":"CONFIG:\r\n```js\r\n    \"max-line-length\": [ 80, {\r\n      ignore: [\"non-comments\"],\r\n    } ],\r\n```\r\n\r\nCSS\r\n```css\r\n/**\r\n* #.# Section title\r\n*\r\n* This line is short,\r\n* This line is exactly 80 characters.... This line is exactly 80 characters...\r\n* This line is exactly 81 characters.... This line is exactly 81 characters......\r\n* This line is exactly 82 characters.... This line is exactly 82 characters.......\r\n* though this one is fine\r\n*\r\n* Description of section, whether or not it has media queries, etc.\r\n*/\r\n\r\n\r\n/* This comment is 80 characters.... This comment is exactly 80 characters... */\r\n.selectors-with-tabbed-indentation {\r\n\tborder-bottom: 10px; /* This comment is 80 characters.... This comment is exactly 80 characters... */\r\n\tborder-bottom: 10px; /* This comment makes the total line length 80 chars */\r\n\tborder-bottom: 10px; /* This comment makes the total line length 81 chars* */\r\n\tborder-bottom: 10px; /* This comment makes the total line length 82 chars** */\r\n\tborder-bottom: 10px; /* This comment makes the total line length 83 chars*** */\r\n\tborder-bottom: 10px; /* This comment makes the total line length 84 chars**** */\r\n\tborder-bottom: 10px; /* This comment makes the total line length 85 chars***** */\r\n\tborder-bottom: 10px; /* This comment makes the total line length 86 chars****** */\r\n\tborder-bottom: 10px; /* This comment makes the total line length 87 chars******* */\r\n\tborder-bottom: 10px; /* This comment makes the total line length 88 chars******** */\r\n}\r\n\r\n/* This comment is 80 characters.... This comment is exactly 80 characters... */\r\n.selectors-with-space-indentation {\r\n    border-bottom: 10px; /* This comment is 80 characters.... This comment is exactly 80 characters... */\r\n    border-bottom: 10px; /* This comment makes the total line length 80 chars */\r\n    border-bottom: 10px; /* This comment makes the total line length 81 chars* */\r\n    border-bottom: 10px; /* This comment makes the total line length 82 chars** */\r\n    border-bottom: 10px; /* This comment makes the total line length 83 chars*** */\r\n    border-bottom: 10px; /* This comment makes the total line length 84 chars**** */\r\n    border-bottom: 10px; /* This comment makes the total line length 85 chars***** */\r\n    border-bottom: 10px; /* This comment makes the total line length 86 chars****** */\r\n    border-bottom: 10px; /* This comment makes the total line length 87 chars******* */\r\n    border-bottom: 10px; /* This comment makes the total line length 88 chars******** */\r\n}\r\n\r\n```\r\n<img width=\"686\" alt=\"630\" src=\"https://cloud.githubusercontent.com/assets/1016458/12394435/e9605818-be4f-11e5-9d51-b5e703fb658d.png\">\r\n\r\nRESULT:\r\n```\r\n6:81\tExpected line length equal to or less than 80 characters (max-line-length)\r\n7:82\tExpected line length equal to or less than 80 characters (max-line-length)\r\n16:102\tExpected line length equal to or less than 80 characters (max-line-length)\r\n21:81\tExpected line length equal to or less than 80 characters (max-line-length)\r\n22:82\tExpected line length equal to or less than 80 characters (max-line-length)\r\n23:83\tExpected line length equal to or less than 80 characters (max-line-length)\r\n24:84\tExpected line length equal to or less than 80 characters (max-line-length)\r\n25:85\tExpected line length equal to or less than 80 characters (max-line-length)\r\n30:105\tExpected line length equal to or less than 80 characters (max-line-length)\r\n32:81\tExpected line length equal to or less than 80 characters (max-line-length)\r\n33:82\tExpected line length equal to or less than 80 characters (max-line-length)\r\n34:83\tExpected line length equal to or less than 80 characters (max-line-length)\r\n35:84\tExpected line length equal to or less than 80 characters (max-line-length)\r\n36:85\tExpected line length equal to or less than 80 characters (max-line-length)\r\n37:86\tExpected line length equal to or less than 80 characters (max-line-length)\r\n38:87\tExpected line length equal to or less than 80 characters (max-line-length)\r\n39:88\tExpected line length equal to or less than 80 characters (max-line-length)\r\n```\r\n\r\n\r\n"}}