Sha256: 4481b3f86b13e9c6e9108aa1271584e842898b23ac94b062ae655f48c3b93afc

Contents?: true

Size: 992 Bytes

Versions: 5

Compression:

Stored size: 992 Bytes

Contents

require 'salsify_rubocop/version'
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

5 entries across 5 versions & 1 rubygems

Version Path
salsify_rubocop-0.63.0 lib/salsify_rubocop.rb
salsify_rubocop-0.62.0 lib/salsify_rubocop.rb
salsify_rubocop-0.60.0.1 lib/salsify_rubocop.rb
salsify_rubocop-0.60.0 lib/salsify_rubocop.rb
salsify_rubocop-0.59.2.1.rc1 lib/salsify_rubocop.rb