Class: RuboCop::Cop::Team
- Inherits:
-
Object
- Object
- RuboCop::Cop::Team
- Defined in:
- lib/rubocop/monkey_patches/team.rb
Instance Method Summary collapse
-
#roundup_relevant_cops(processed_source) ⇒ Object
START COOKSTYLE MODIFICATION.
- #support_target_chef_version?(cop) ⇒ Boolean
Instance Method Details
#roundup_relevant_cops(processed_source) ⇒ Object
START COOKSTYLE MODIFICATION
13 14 15 16 17 18 19 20 21 |
# File 'lib/rubocop/monkey_patches/team.rb', line 13 def roundup_relevant_cops(processed_source) cops.select do |cop| next true if processed_source.comment_config.cop_opted_in?(cop) next false if cop.excluded_file?(processed_source.file_path) next false unless @registry.enabled?(cop, @config) support_target_ruby_version?(cop) && support_target_rails_version?(cop) && support_target_chef_version?(cop) end end |
#support_target_chef_version?(cop) ⇒ Boolean
6 7 8 9 10 |
# File 'lib/rubocop/monkey_patches/team.rb', line 6 def support_target_chef_version?(cop) return true unless cop.class.respond_to?(:support_target_chef_version?) cop.class.support_target_chef_version?(cop.target_chef_version) end |