{"action":"created","issue":{"url":"https://api.github.com/repos/brigade/scss-lint/issues/427","labels_url":"https://api.github.com/repos/brigade/scss-lint/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/brigade/scss-lint/issues/427/comments","events_url":"https://api.github.com/repos/brigade/scss-lint/issues/427/events","html_url":"https://github.com/brigade/scss-lint/issues/427","id":69270774,"number":427,"title":"Linter config idea: Allow /* ... */ comments if they have certain text, like \"Copyright\"","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":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-18T05:24:13Z","updated_at":"2015-04-20T19:42:13Z","closed_at":null,"body":"One legitimate use of `/* ... */` comments is preserving copyright notices.\r\n\r\nHow about a configurable whitelist, like:\r\n\r\n```yaml\r\nlinters:\r\n  Comment:\r\n    allowed_multiline: Copyright\r\n```\r\n\r\nIt could also be a list. And I'm not married to `allowed_multiline` as the config name. I'll send a PR if you like the idea."},"comment":{"url":"https://api.github.com/repos/brigade/scss-lint/issues/comments/94550634","html_url":"https://github.com/brigade/scss-lint/issues/427#issuecomment-94550634","issue_url":"https://api.github.com/repos/brigade/scss-lint/issues/427","id":94550634,"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},"created_at":"2015-04-20T19:42:13Z","updated_at":"2015-04-20T19:42:13Z","body":"Hrm, so the regex idea presents one problem in that the CommentNode that Sass provides us has the entire syntax of the comment as the value of the node. So:\r\n\r\n```scss\r\n/*\r\n * Copyright someone\r\n */\r\na { color: red; }\r\n```\r\n\r\ncontains a CommentNode with a value of `\"/*\\n * Copyright someone\\n */\"`, which would not match `'^\\s*Copyright`. And I don't think there is a clean way to strip the comment \"text\" from it's syntax. For example, if I strip all asterisks at the beginning of a line, then I would strip these asterisks, unintentionally:\r\n\r\n```scss\r\n/*\r\nComment paragraph, and a list:\r\n\r\n* item 1\r\n* item 2\r\n*/\r\n```\r\n\r\nSo maybe we should not encourage use of anchors (`^`, `\\A`, etc.)."}}