gulp-scss-lint icon indicating copy to clipboard operation
gulp-scss-lint copied to clipboard

Issue with running the linter

Open martijnrusschen opened this issue 9 years ago • 3 comments

Hi, tried to include this plugin in our gulp file. However, I'm getting this error:

sass         | { [Error: Input file did not exist or was not readable]
sass         |   message: 'Input file did not exist or was not readable',
sass         |   showStack: false,
sass         |   showProperties: true,
sass         |   plugin: 'gulp-scss-lint',
sass         |   __safety: { toString: [Function: bound ] } }

Any idea what this could be? Running the linter with the gem works fine.

martijnrusschen avatar Dec 18 '15 15:12 martijnrusschen

Could you tell me your config? Also you can add the verbose option and see the scss-lint command

thanks

juanfran avatar Dec 19 '15 18:12 juanfran

Where should I add verbose? This is the task itself:

gulp.task('sass', function() {
  var src = gulp.src('frontend/assets/stylesheets/*.scss');

  return src
    .pipe(sourcemaps.init())
    .pipe(sass())
    .pipe(scsslint())
    .pipe(replaceAssetDataUrl())
    .pipe(autoprefixer({
      browsers: [
        'last 2 versions', 'Chrome >= 19', 'Safari >= 4.0', 'Opera >= 10.5',
        'Firefox >= 3.7', 'Explorer >= 10'
      ],
      cascade: false,
      remove: true}))
    .pipe(sourcemaps.write())
    .pipe(gulp.dest('public/assets'));
});

martijnrusschen avatar Dec 20 '15 16:12 martijnrusschen

scss-lint must be before the sass plugin or in a different task

juanfran avatar Dec 21 '15 14:12 juanfran