Sha256: 0c8b3782f14d91e0765caba6dec14b3fb262f9b27f6c2e6a20f51f1bb9911898

Contents?: true

Size: 1.05 KB

Versions: 14

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

require 'salsify_rubocop/version'
require 'rubocop-performance'
require 'rubocop-rails'
require 'rubocop-rspec'

# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
# bit of our configuration. Based on approach from rubocop-rspec:
DEFAULT_FILES = File.expand_path('../config/default.yml', __dir__)

path = File.absolute_path(DEFAULT_FILES)
hash = RuboCop::ConfigLoader.send(:load_yaml_configuration, path)
config = RuboCop::Config.new(hash, path)
puts "configuration from #{DEFAULT_FILES}" if RuboCop::ConfigLoader.debug?
config = RuboCop::ConfigLoader.merge_with_default(config, path)
RuboCop::ConfigLoader.instance_variable_set(:@default_configuration, config)

# cops
require 'rubocop/cop/salsify/rails_application_mailer'
require 'rubocop/cop/salsify/rails_application_serializer'
require 'rubocop/cop/salsify/rails_unscoped'
require 'rubocop/cop/salsify/rspec_doc_string'
require 'rubocop/cop/salsify/rspec_dot_not_self_dot'
require 'rubocop/cop/salsify/rspec_string_literals'
require 'rubocop/cop/salsify/style_dig'

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
salsify_rubocop-1.59.0 lib/salsify_rubocop.rb
salsify_rubocop-1.43.1 lib/salsify_rubocop.rb
salsify_rubocop-1.43.0 lib/salsify_rubocop.rb
salsify_rubocop-1.42.1 lib/salsify_rubocop.rb
salsify_rubocop-1.42.0 lib/salsify_rubocop.rb
salsify_rubocop-1.27.1 lib/salsify_rubocop.rb
salsify_rubocop-1.27.0 lib/salsify_rubocop.rb
salsify_rubocop-1.2.0 lib/salsify_rubocop.rb
salsify_rubocop-1.1.0 lib/salsify_rubocop.rb
salsify_rubocop-1.0.2 lib/salsify_rubocop.rb
salsify_rubocop-1.0.1 lib/salsify_rubocop.rb
salsify_rubocop-1.0.0 lib/salsify_rubocop.rb
salsify_rubocop-0.91.0 lib/salsify_rubocop.rb
salsify_rubocop-0.85.0 lib/salsify_rubocop.rb