Permalink
Browse files

Add scss_lint and rubocop to development dependency

Track with version is used to lint code.
  • Loading branch information...
1 parent 2063224 commit c84a00e06867dd6c723a09bedbabe2f17c668468 @tf tf committed Sep 8, 2016
Showing with 43 additions and 4 deletions.
  1. +3 −4 .rubocop.yml
  2. +17 −0 bin/rubocop
  3. +17 −0 bin/scss-lint
  4. +6 −0 pageflow.gemspec
View
@@ -10,10 +10,9 @@ Style/StringLiterals:
Style/DotPosition:
EnforcedStyle: leading
-# The Rubocop version used by hound cannot yet detect RSpec expections
-# that would change meaning with "do ... end".
-Style/Blocks:
- Enabled: false
+# Allow using {} when chaining methods
+Style/BlockDelimiters:
+ EnforcedStyle: braces_for_chaining
# The default of 80 characters is a little to narrow.
Metrics/LineLength:
View
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+# frozen_string_literal: true
+#
+# This file was generated by Bundler.
+#
+# The application 'rubocop' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require "pathname"
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require "rubygems"
+require "bundler/setup"
+
+load Gem.bin_path("rubocop", "rubocop")
View
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+# frozen_string_literal: true
+#
+# This file was generated by Bundler.
+#
+# The application 'scss-lint' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require "pathname"
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require "rubygems"
+require "bundler/setup"
+
+load Gem.bin_path("scss_lint", "scss-lint")
View
@@ -159,4 +159,10 @@ Gem::Specification.new do |s|
# A gem that makes it easy to write specs for your Rails 3 Generators.
s.add_development_dependency 'ammeter', '~> 1.1'
+
+ # Ruby code linter
+ s.add_development_dependency 'rubocop', '~> 0.42.0'
+
+ # Scss code linter
+ s.add_development_dependency 'scss_lint', '~> 0.50.0'
end

0 comments on commit c84a00e

Please sign in to comment.