Skip to content

Commit

Permalink
Add scss_lint and rubocop to development dependency
Browse files Browse the repository at this point in the history
Track with version is used to lint code.
  • Loading branch information
tf committed Sep 8, 2016
1 parent 2063224 commit c84a00e
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
17 changes: 17 additions & 0 deletions bin/rubocop
Original file line number Diff line number Diff line change
@@ -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")
17 changes: 17 additions & 0 deletions bin/scss-lint
Original file line number Diff line number Diff line change
@@ -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")
6 changes: 6 additions & 0 deletions pageflow.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.