Fixes #37273 - Use delegation syntax for resource_scope
In Ruby 3 you need to explicitly delegate keyword arguments, or if youdon't care about Ruby 2.6 or prior then you can use the new delegationsyntax1.
It deals with the difference in calling where. When calling `.where([])`...
Fixes #30925 - use the organization style gem
Use `theforeman-rubocop` gem to share common RuboCop rules with plugins.It serves as base for our rubocop styles and rules.
Fixes #31031 - no rocket hash keys in routes
Refs #31031 - no mixed hash keys
Disable mixing hash keys.Exclude routes for now as those should be transfered consistantly.
Fixes #29350 - Disable Layout/EmptyLineAfterGuardClause cop
Fixes #29388 - Add rubocop-minitest
Fixes #19904 - Configure Style/SymbolArray cop
Fixes #29163 - Update Rubocop to 0.80
Sort Rubocop rules
Fixes #28575 - Disable Performance/RegexpMatch cop
Fixes #28561 - Configure and fix Layout/AlignArguments cop
Fixes #19884 - Disable Style/NumericPredicate cop
Fixes #28572 - Bump TargetRubyVersion to 2.5 for Rubocop
Refs #28512 - Enable Layout/ClosingHeredocIndentation cop
Fixes #28512 - Disable Layout/ClosingHeredocIndentation cop
Fixes #26782 - Update Rubocop to 0.71.0
Fixes #27249 - flip the comma cop
Fixes #25365 - Disable Rails/RefuteMethods cop
Fixes #19875 - Disable Style/MultipleComparison cop
Disable Metrics cops
Fixes #19891 - Disable Style/PreferredHashMethods cop
Fixes #19886 - Disable Style/ParallelAssignment cop
Fixes #19869 - Disable Style/LineEndConcatenation cop
Fixes #22612 - Switch Rails to 5.2
Fixes #19766 - Disable Layout/AlignParameters cop
Fixes #19765 - Disable Layout/AlignHash cop
Fixes #19887 - Disable Style/ParenthesesAroundCondition cop
Fixes #19858 - Configure Style/EmptyMethod cop (#5703)
Refs #22058 - refresh rubocop config and apply autofixes
Fixes #19855 - Disable Style/ConditionalAssignment cop
Fixes #23235 - Disable Style/IfUnlessModifier cop
Fixes #19770 - Disable Layout/DotPosition cop
Fixes #23157 - Enable Performance/FixedSize cop
Fixes #19848 - Set Style/Alias cop to prefer_alias_method
Refs #23011 - set TargetRubyVersion: to 2.3
Fixes #19763 - Disable Bundler/OrderedGems cop
Fixes #19776 - Configure Layout/FirstParameterIndentation cop
Fixes #19868 - Disable Style/InverseMethods cop
Fixes #19907 - Configure Style/TernaryParentheses cop
Fixes #19849 - Configure Style/AndOr cop
Fixes #21576 - Always use Rails 5.1, drop Rails 5.0
Fixes #19820, #19822, #19824 - Fix some performance cops
Fixes #21977 - Stop enforcing detect/select/etc methods
Fixes #21450 - Update rubocop to 0.51.0
Fixes #19912 - Allow all styles of word arrays
Fixes #19828 - Fix Rails/Blank cop
I disabled the default UnlessPresent value since sometimes it's clearerto use `unless attribute.present?` instead of `if attribute.blank?`.
Fixes #19700 - update rubocop rules
The following changes have been made:
- Performance/RedundantMerge:changes lines such as:```not_found_message.merge! :message => options```to:```not_found_message[:message] = options```
- converts str.match() to str =~ ()...
fixes #18534 - configure rubocop for Ruby 2.0 compatibility
Fixes #18017 - Allow single/double quotes for HoundCI
Fixes #16564 - Disable FrozenStringLiteralComment cop
Also fixes a failng cop in config/initializers/secure_headers.rb
Refs #7233 - Fixing erroneous rubocop config
fixes #16166 - exclude node_modules/ directory from rubocop
Fixes #15364 - disable Style/ClassCheck cop
Refs #3809 - Using defaults for AndOr cop
Refs #3809 - Turning on the AndOr cop
fixes #14133 - update to rubocop 0.39.0
Replaces hirb-unicode with the maintained hirb-unicode-steakknife fork,due to conflicting requirements on unicode-display_width with the olderhirb-unicode and new rubocop.
Rake is unpinned due to the newer rubocop's compatibility with it, and...
Fixes #12911 - Turning on 0.35.1 cops
Refs #3809 - Stabby lambda syntax for oneliners
I started by spotting log.rb which didn't have a lambda wrapping itsdefault scope, as needed by Rails 4. Since the style guide and mostRails 4 documents used the stabby lambda, I turned on the cop so that we...
Refs #3809 - Remove nested ternary and nil checking
refs #3809 - exclude auto-generated schema.rb from rubocop checks
Fixes #7233 - Drop Ruby 1.8.7 and revert Ruby 1.8.7 specifics
Fixes #2089 - Add network configuration to ENC
Fixes #3809 - Add rubocop to check Ruby code