Sha256: d432a15ebb24daf0dd7606e67aa1bb95c54492cf5c9e20168c6bb853f4f9d78a

Contents?: true

Size: 744 Bytes

Versions: 7

Compression:

Stored size: 744 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', __FILE__)

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/rspec_doc_string'
require 'rubocop/cop/salsify/rspec_string_literals'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
salsify_rubocop-0.47.0 lib/salsify_rubocop.rb
salsify_rubocop-0.46.0 lib/salsify_rubocop.rb
salsify_rubocop-0.45.0 lib/salsify_rubocop.rb
salsify_rubocop-0.45.0.rc0 lib/salsify_rubocop.rb
salsify_rubocop-0.44.0 lib/salsify_rubocop.rb
salsify_rubocop-0.43.0 lib/salsify_rubocop.rb
salsify_rubocop-0.43.0.rc0 lib/salsify_rubocop.rb