Sha256: 48058d4326b2178bbedb425fc75290456c45cb9137d240e89feff3d736bcb8b4
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
require "ezcater_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) require "rubocop/cop/ezcater/rspec_require_browser_mock" require "rubocop/cop/ezcater/rspec_require_feature_flag_mock" require "rubocop/cop/ezcater/rspec_require_gql_error_helpers" require "rubocop/cop/ezcater/rspec_dot_not_self_dot" require "rubocop/cop/ezcater/style_dig"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ezcater_rubocop-0.49.4 | lib/ezcater_rubocop.rb |