Sha256: 51ab297c4cbc944fb51f6f7bf1ce421b27be059aa5135f20399cfe22e026b418
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 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/rails_application_record' require 'rubocop/cop/salsify/rspec_doc_string' require 'rubocop/cop/salsify/rspec_string_literals' require 'rubocop/cop/salsify/style_dig'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
salsify_rubocop-0.47.2 | lib/salsify_rubocop.rb |
salsify_rubocop-0.47.1 | lib/salsify_rubocop.rb |