Skip to content

Commit

Permalink
Add rubocop rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Oct 6, 2017
1 parent ff09b2f commit 95d671e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .rubocop.yml
Expand Up @@ -10,6 +10,8 @@ AllCops:
- 'spec/dummy/**/*'
- 'tmp/**/*'
- 'bench/**/*'
- 'vendor/**/*'
- 'gemfiles/**/*'
- 'lib/anycable/rpc/**/*'
- 'Rakefile'
- 'Gemfile'
Expand All @@ -27,6 +29,9 @@ Style/Documentation:
Exclude:
- 'spec/**/*.rb'

Style/FormatString:
Enabled: false

Style/StringLiterals:
Enabled: false

Expand Down
4 changes: 3 additions & 1 deletion Rakefile
@@ -1,6 +1,8 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rubocop/rake_task"

RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new

task default: :spec
task default: [:rubocop, :spec]
1 change: 1 addition & 0 deletions anycable-rails.gemspec
Expand Up @@ -25,5 +25,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", ">= 3.4"
spec.add_development_dependency "simplecov", ">= 0.3.8"
spec.add_development_dependency "rubocop", ">= 0.50"
spec.add_development_dependency "pry-byebug"
end
1 change: 1 addition & 0 deletions lib/anycable/rails/actioncable/connection.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "action_cable/connection"
require "anycable/rails/refinements/subscriptions"
require "anycable/rails/actioncable/channel"
Expand Down

0 comments on commit 95d671e

Please sign in to comment.