From b1257a6f2454f272e593674c580760d253f04da3 Mon Sep 17 00:00:00 2001 From: Jason Yeo Date: Thu, 29 Jan 2015 03:20:57 +0800 Subject: [PATCH 1/3] Enable scss checks on hound --- .hound.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.hound.yml b/.hound.yml index b431ff44e1e..efb955f5b43 100644 --- a/.hound.yml +++ b/.hound.yml @@ -5,3 +5,6 @@ ruby: java_script: enabled: true config_file: .jshintrc + +scss: + enabled: true From 1248a1232039a3580ed7130b138be22e223f5271 Mon Sep 17 00:00:00 2001 From: Jason Yeo Date: Thu, 29 Jan 2015 20:52:08 +0800 Subject: [PATCH 2/3] Add scss-lint config. Increase defaults for nesting depth --- .scss-lint.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.scss-lint.yml b/.scss-lint.yml index e69de29bb2d..ca75ed0b26b 100644 --- a/.scss-lint.yml +++ b/.scss-lint.yml @@ -0,0 +1,4 @@ +scss_files: 'app/assets/stylesheets/**/*.scss' + +NestingDepth: + max_depth: 5 From a7e0b4f87ec3f2278e20f7a78f8826247d57bd04 Mon Sep 17 00:00:00 2001 From: Jason Yeo Date: Thu, 29 Jan 2015 20:56:16 +0800 Subject: [PATCH 3/3] Remove scss-lint check in travis --- .travis.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b2edc7ea7fe..74b22c00e86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,14 +12,10 @@ addons: bundler_args: "--without development:production --deployment" cache: bundler -before_install: - - gem install scss-lint - before_script: - psql -c 'create database coursemology_test;' -U postgres - bundle exec rake db:setup script: - - scss-lint app/assets/stylesheets/ - bundle exec consistency_fail - bundle exec rake spec