{"action":"opened","issue":{"url":"https://api.github.com/repos/sasstools/sass-lint/issues/66","labels_url":"https://api.github.com/repos/sasstools/sass-lint/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/sasstools/sass-lint/issues/66/comments","events_url":"https://api.github.com/repos/sasstools/sass-lint/issues/66/events","html_url":"https://github.com/sasstools/sass-lint/issues/66","id":104193848,"number":66,"title":"Enhancement: Group rules by sass extension, hashes of rules optionally possible to sass ","user":{"login":"lozandier","id":1223224,"avatar_url":"https://avatars.githubusercontent.com/u/1223224?v=3","gravatar_id":"","url":"https://api.github.com/users/lozandier","html_url":"https://github.com/lozandier","followers_url":"https://api.github.com/users/lozandier/followers","following_url":"https://api.github.com/users/lozandier/following{/other_user}","gists_url":"https://api.github.com/users/lozandier/gists{/gist_id}","starred_url":"https://api.github.com/users/lozandier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lozandier/subscriptions","organizations_url":"https://api.github.com/users/lozandier/orgs","repos_url":"https://api.github.com/users/lozandier/repos","events_url":"https://api.github.com/users/lozandier/events{/privacy}","received_events_url":"https://api.github.com/users/lozandier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-01T06:11:56Z","updated_at":"2015-09-01T06:11:56Z","closed_at":null,"body":"If possible, there seems to be value of explicit options or instructions of having different rules—or a different file  or hash of rules—for `sass` files vs.  `scss` files.\r\n\r\nThis also mirrors the capabilities of linters such as ESLint. The simplest thing that seemingly should be allowed is two tasks can be ran separately for each do\r\n\r\nIn Gulp 3, it would sorta look like the following: \r\n\r\n\r\n````js \r\nconst sassLint = require('gulp-sass-lint');\r\n\r\nconst sassLiintTaskDetails = ()=>{\r\n\r\n  return gulp.src(\"**/*.sass\")\r\n    .pipe( sassLint({\r\n       // A rulesPath property can be added that a rules property overrites\r\n       rules: {\r\n         indentation: [ 2, { size: 2} ], \r\n       }\r\n    }) )\r\n    .pipe( sassLint.format() )\r\n    .pipe( sassLint.failOnError() )\r\n\r\n};\r\n\r\nconst scssLiintTaskDetails = ()=>{\r\n\r\n  return gulp.src(\"**/*.sass\")\r\n    //  Default continues to look for `.sass-lint.yml` (in addition to ideally a json formatted .sass-lint file?) if no hash is passed in\r\n    .pipe( sassLint() )\r\n    .pipe( sassLint.format() )\r\n    .pipe( sassLint.failOnError() )\r\n\r\n};\r\n\r\ngulp.task( `sass-lint`, sassLintTaskDetails );\r\ngulp.task( `scss-lint`, scssLintTaskDetails );\r\n\r\n})\r\n\r\n\r\n\r\n````\r\n\r\nIn the meantime, while in theory rules that *can't* be applied to files with the `sass` extension (& the opposite for files with the `scss` will be ignored within a single `.sass-lint.yml` file being used within a codebase using both, that doesn't seem to be the case for me so far (Ran the task on environment using El Capitan, `Node v0.12.7;` I have iojs 1.x, 2.x, 3.x in my system I can quickly report back having different outcomes):\r\n<img width=\"1358\" alt=\"screen shot 2015-09-01 at 2 03 11 am\" src=\"https://cloud.githubusercontent.com/assets/1223224/9597313/68c1ef56-504e-11e5-9be3-4226f1365202.png\">\r\n\r\nAs you can see a random rule in random dir I know incompatible with `sass` but not `scss` causes problems. \r\n"}}