{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/2144","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/2144/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/2144/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/2144/events","html_url":"https://github.com/stylelint/stylelint/issues/2144","id":192108916,"number":2144,"title":"Exception in declaration-colon-newline-after/index.js after upgrade","user":{"login":"doberkofler","id":1009585,"avatar_url":"https://avatars.githubusercontent.com/u/1009585?v=3","gravatar_id":"","url":"https://api.github.com/users/doberkofler","html_url":"https://github.com/doberkofler","followers_url":"https://api.github.com/users/doberkofler/followers","following_url":"https://api.github.com/users/doberkofler/following{/other_user}","gists_url":"https://api.github.com/users/doberkofler/gists{/gist_id}","starred_url":"https://api.github.com/users/doberkofler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doberkofler/subscriptions","organizations_url":"https://api.github.com/users/doberkofler/orgs","repos_url":"https://api.github.com/users/doberkofler/repos","events_url":"https://api.github.com/users/doberkofler/events{/privacy}","received_events_url":"https://api.github.com/users/doberkofler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-28T20:28:32Z","updated_at":"2016-11-29T09:34:07Z","closed_at":null,"body":"> Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)?\r\n\r\nAfter upgrading stylelint from 7.5.0 to 7.6.0 and stylelint-config-standard from 14.0.0 to 15.0.0 I get the following exception when linting files that did not report any errors before\r\n\r\n```\r\nModule build failed: TypeError: Cannot read property 'length' of undefined\r\n    at D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\stylelint\\dist\\rules\\declaration-colon-newline-after\\index.js:25:87\r\n    at D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\postcss\\lib\\container.js:192:28\r\n    at D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\postcss\\lib\\container.js:148:26\r\n    at Rule.each (D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\postcss\\lib\\container.js:114:22)\r\n    at Rule.walk (D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\postcss\\lib\\container.js:147:21)\r\n    at D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\postcss\\lib\\container.js:150:32\r\n    at Root.each (D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\postcss\\lib\\container.js:114:22)\r\n    at Root.walk (D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\postcss\\lib\\container.js:147:21)\r\n    at Root.walkDecls (D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\postcss\\lib\\container.js:190:25)\r\n    at D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\stylelint\\dist\\rules\\declaration-colon-newline-after\\index.js:19:10\r\n    at D:\\MyDev\\ljs_app\\trunk\\periscope\\build\\node_modules\\stylelint\\dist\\lintSource.js:104:52\r\n```\r\n> Which rule, if any, is this issue related to?\r\nMaybe declaration-colon-newline-after based on the exception ?\r\n\r\n> What CSS is needed to reproduce this issue?\r\n\r\n```\r\n#back-top {\r\n\tposition: fixed;\r\n\tbottom: 25px;\r\n\tmargin-left: 0;\r\n\tright: 25px;\r\n\ttext-align: center;\r\n\tz-index: 1000;\r\n}\r\n\r\n#back-top a {\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\tfont: 11px/100% Arial, Helvetica, sans-serif;\r\n\ttext-transform: uppercase;\r\n\ttext-decoration: none;\r\n\tcolor: #666;\r\n\ttransition: background-color 0.3s ease-in;\r\n}\r\n\r\n#back-top a:hover {\r\n\tcolor: #000;\r\n}\r\n\r\n#back-top span {\r\n\twidth: 45px;\r\n\theight: 45px;\r\n\tdisplay: block;\r\n\tbackground: #888 url(\"../img/up-arrow.png\") no-repeat center center;\r\n\tborder-radius: 5px;\r\n\ttransition: background-color 0.3s ease-in;\r\n\tmargin: 0 auto 5px;\r\n}\r\n\r\n#back-top a:hover span {\r\n\tbackground-color: #666;\r\n}\r\n\r\n#back-top.alignright {\r\n\tright: 5px;\r\n}\r\n\r\n#back-top.hidden {\r\n\tdisplay: none !important;\r\n}\r\n\r\n/*media query*/\r\n/* $screen_max = 1095;\r\n$screen_max_em = ($screen_max / 16) * 1em */\r\n\r\n@media handheld, only screen and (max-width: 68.4375em) {\r\n\t#back-top {\r\n\t\tbottom: 5px;\r\n\t\twidth: 45px;\r\n\t\tright: 5px;\r\n\t}\r\n\r\n\t#back-top a:active {\r\n\t\tpadding-bottom: 5px;\r\n\t}\r\n}\r\n```\r\n\r\n> What stylelint configuration is needed to reproduce this issue?\r\n\r\n```js\r\nmodule.exports = {\r\n\t'extends': 'stylelint-config-standard',\r\n\t'rules': {\r\n\t\t'at-rule-empty-line-before': null,\r\n\t\t'color-hex-case': null,\r\n\t\t'color-hex-length': null,\r\n\t\t'comment-empty-line-before': null,\r\n\t\t'comment-whitespace-inside': null,\r\n\t\t'declaration-block-no-ignored-properties': null,\r\n\t\t'declaration-block-no-shorthand-property-overrides': null,\r\n\t\t'declaration-block-no-duplicate-properties': null,\r\n\t\t'font-family-name-quotes': 'always-where-recommended',\r\n\t\t'function-comma-space-after': null,\r\n\t\t'function-linear-gradient-no-nonstandard-direction': null,\r\n\t\t'function-url-quotes': 'always',\r\n\t\t'indentation': null, // !!! should be set to 'tab'\r\n\t\t'max-empty-lines': null,\r\n\t\t'no-browser-hacks': true,\r\n\t\t'rule-nested-empty-line-before': null, // !!! cannot be used because the proprocessor generates the wrongly formatted code\r\n\t\t'rule-non-nested-empty-line-before': null,\r\n\t\t'selector-combinator-space-after': null,\r\n\t\t'selector-pseudo-element-colon-notation': null,\r\n\t\t'shorthand-property-no-redundant-values': null,\r\n\t\t'string-quotes': 'double',\r\n\t\t'value-list-comma-space-after': null\r\n\t}\r\n};\r\n```\r\n> Which version of stylelint are you using?\r\n7.6.0\r\n\r\n> How are you running stylelint: CLI, PostCSS plugin, Node API?\r\nstylus-loader\r\n\r\n> Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)?\r\nno\r\n\r\n> What did you expect to happen?\r\nNo warnings to be flagged.\r\n\r\n> What actually happened (e.g. what warnings or errors you are getting)?\r\nexception\r\n"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/263520998","html_url":"https://github.com/stylelint/stylelint/issues/2144#issuecomment-263520998","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/2144","id":263520998,"user":{"login":"evilebottnawi","id":4567934,"avatar_url":"https://avatars.githubusercontent.com/u/4567934?v=3","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T09:34:07Z","updated_at":"2016-11-29T09:34:07Z","body":"@doberkofler `stylus-loader`, we not support officially `stylus`. But you code seem as `scss`, am i right?"}}
{"actor":{"display_login":"evilebottnawi"}}