repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiline_block_chain.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiline_block_chain.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for chaining of a block after another block that spans # multiple lines. # # @example # # # bad # Thread.list.select do |t| # t.alive? # end.map do |t| # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/class_check.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/class_check.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces consistent use of `Object#is_a?` or `Object#kind_of?`. # # @example EnforcedStyle: is_a? (default) # # bad # var.kind_of?(Date) # var.kind_of?(Integer) # # # good ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for unwanted parentheses in parameterless method calls. # # @example # # bad # object.some_method() # # # good # object.some_method class MethodCallWithoutArgsParen...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/yoda_condition.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/yoda_condition.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop can either enforce or forbid Yoda conditions, # i.e. comparison operations where the order of expression is reversed. # eg. `5 == x` # # @example EnforcedStyle: forbid_for_all_comparison_operators (defau...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/option_hash.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/option_hash.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for options hashes and discourages them if the # current Ruby version supports keyword arguments. # # @example # # # bad # def fry(options = {}) # temperature = options.f...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/semicolon.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/semicolon.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for multiple expressions placed on the same line. # It also checks for lines terminated with a semicolon. # # This cop has `AllowAsExpressionSeparator` configuration option. # It allows `;` to sep...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_conditional.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_conditional.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for redundant returning of true/false in conditionals. # # @example # # bad # x == y ? true : false # # # bad # if x == y # true # else # fals...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/command_literal.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/command_literal.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces using `` or %x around command literals. # # @example EnforcedStyle: backticks (default) # # bad # folders = %x(find . -type d).split # # # bad # %x( # ln -s f...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/negated_while.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/negated_while.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for uses of while with a negated condition. # # @example # # bad # while !foo # bar # end # # # good # until foo # bar # end # # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/colon_method_call.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/colon_method_call.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for methods invoked via the :: operator instead # of the . operator (like FileUtils::rmdir instead of FileUtils.rmdir). # # @example # # bad # Timeout::timeout(500) { do_something } ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/block_delimiters.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/block_delimiters.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Check for uses of braces or do/end around single line or # multi-line blocks. # # @example EnforcedStyle: line_count_based (default) # # bad - single line block # items.each do |item| item / 5 end ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/optional_boolean_parameter.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/optional_boolean_parameter.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for places where keyword arguments can be used instead of # boolean arguments when defining methods. `respond_to_missing?` method is allowed by default. # These are customizable with `AllowedMethods` option. ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for trailing comma in argument lists. # The supported styles are: # # * `consistent_comma`: Requires a comma after the last argument, # for all parenthesized method calls with arguments. # *...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_body_on_method_definition.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_body_on_method_definition.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for trailing code after the method definition. # # @example # # bad # def some_method; do_stuff # end # # def f(x); b = foo # b[c: x] # end # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_regexp_escape.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_regexp_escape.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for redundant escapes inside Regexp literals. # # @example # # bad # %r{foo\/bar} # # # good # %r{foo/bar} # # # good # /foo\/bar/ # # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/hash_like_case.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/hash_like_case.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for places where `case-when` represents a simple 1:1 # mapping and can be replaced with a hash lookup. # # @example MinBranchesCount: 3 (default) # # bad # case country # when 'e...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/access_modifier_declarations.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/access_modifier_declarations.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Access modifiers should be declared to apply to a group of methods # or inline before each method, depending on configuration. # EnforcedStyle config covers only method definitions. # Applications of visibility methods...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/infinite_loop.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/infinite_loop.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Use `Kernel#loop` for infinite loops. # # @example # # bad # while true # work # end # # # good # loop do # work # end class InfiniteLoop < Base...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/constant_visibility.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/constant_visibility.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks that constants defined in classes and modules have # an explicit visibility declaration. By default, Ruby makes all class- # and module constants public, which litters the public API of the # class or m...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/one_line_conditional.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/one_line_conditional.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for uses of if/then/else/end constructs on a single line. # AlwaysCorrectToMultiline config option can be set to true to auto-convert all offenses to # multi-line constructs. When AlwaysCorrectToMultiline is false (de...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/word_array.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/word_array.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop can check for array literals made up of word-like # strings, that are not using the %w() syntax. # # Alternatively, it can check for uses of the %w() syntax, in projects # which do not want to include th...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/single_line_methods.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/single_line_methods.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for single-line method definitions that contain a body. # It will accept single-line methods with no body. # # @example # # bad # def some_method; body end # def link_to(url); {:...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/parentheses_around_condition.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/parentheses_around_condition.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for the presence of superfluous parentheses around the # condition of if/unless/while/until. # # `AllowSafeAssignment` option for safe assignment. # By safe assignment we mean putting parentheses ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/date_time.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/date_time.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for consistent usage of the `DateTime` class over the # `Time` class. This cop is disabled by default since these classes, # although highly overlapping, have particularities that make them not # replac...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/lambda_call.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/lambda_call.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for use of the lambda.(args) syntax. # # @example EnforcedStyle: call (default) # # bad # lambda.(x, y) # # # good # lambda.call(x, y) # # @example EnforcedStyle:...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/case_equality.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/case_equality.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for uses of the case equality operator(===). # # @example # # bad # Array === something # (1..100) === 7 # /something/ === some_string # # # good # someth...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/return_nil.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/return_nil.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces consistency between 'return nil' and 'return'. # # Supported styles are: return, return_nil. # # @example EnforcedStyle: return (default) # # bad # def foo(arg) # retur...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/ternary_parentheses.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/ternary_parentheses.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for the presence of parentheses around ternary # conditions. It is configurable to enforce inclusion or omission of # parentheses using `EnforcedStyle`. Omission is only enforced when # removing the par...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/class_and_module_children.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/class_and_module_children.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks the style of children definitions at classes and # modules. Basically there are two different styles: # # @example EnforcedStyle: nested (default) # # good # # have each child on its own...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/symbol_literal.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/symbol_literal.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks symbol literal syntax. # # @example # # # bad # :"symbol" # # # good # :symbol class SymbolLiteral < Base extend AutoCorrector MSG = 'Do not ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_assignment.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_assignment.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for redundant assignment before returning. # # @example # # bad # def test # x = foo # x # end # # # bad # def test # if x # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_exception.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_exception.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for RuntimeError as the argument of raise/fail. # # It checks for code like this: # # @example # # Bad # raise RuntimeError, 'message' # # # Bad # raise Runti...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/def_with_parentheses.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/def_with_parentheses.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for parentheses in the definition of a method, # that does not take any arguments. Both instance and # class/singleton methods are checked. # # @example # # # bad # def foo()...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/optional_arguments.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/optional_arguments.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for optional arguments to methods # that do not come at the end of the argument list. # # @example # # bad # def foo(a = 1, b, c) # end # # # good # def baz...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiline_when_then.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiline_when_then.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks uses of the `then` keyword # in multi-line when statements. # # @example # # bad # case foo # when bar then # end # # # good # case foo # wh...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/each_with_object.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/each_with_object.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop looks for inject / reduce calls where the passed in object is # returned at the end and so could be replaced by each_with_object without # the need to return the object at the end. # # However, we can't ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/sole_nested_conditional.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/sole_nested_conditional.rb
# frozen_string_literal: true module RuboCop module Cop module Style # If the branch of a conditional consists solely of a conditional node, # its conditions can be combined with the conditions of the outer branch. # This helps to keep the nesting level from getting too deep. # # @e...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/slicing_with_range.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/slicing_with_range.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks that arrays are sliced with endless ranges instead of # `ary[start..-1]` on Ruby 2.6+. # # @example # # bad # items[1..-1] # # # good # items[1..] class Slici...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/class_methods_definitions.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/class_methods_definitions.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces using `def self.method_name` or `class << self` to define class methods. # # @example EnforcedStyle: def_self (default) # # bad # class SomeClass # class << self # attr...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/raise_args.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/raise_args.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks the args passed to `fail` and `raise`. For exploded # style (default), it recommends passing the exception class and message # to `raise`, rather than construct an instance of the error. It will # still...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_sort_by.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_sort_by.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop identifies places where `sort_by { ... }` can be replaced by # `sort`. # # @example # # bad # array.sort_by { |x| x } # array.sort_by do |var| # var # end # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/lambda.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/lambda.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop (by default) checks for uses of the lambda literal syntax for # single line lambdas, and the method call syntax for multiline lambdas. # It is configurable to enforce one of the styles for both single line # a...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/hash_transform_values.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/hash_transform_values.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop looks for uses of `_.each_with_object({}) {...}`, # `_.map {...}.to_h`, and `Hash[_.map {...}]` that are actually just # transforming the values of a hash, and tries to use a simpler & faster # call to `transf...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb
# frozen_string_literal: true module RuboCop module Cop module Style class MethodCallWithArgsParentheses # Style omit_parentheses module OmitParentheses TRAILING_WHITESPACE_REGEX = /\s+\Z/.freeze def on_send(node) return unless node.parenthesized? ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb
# frozen_string_literal: true module RuboCop module Cop module Style class MethodCallWithArgsParentheses # Style require_parentheses module RequireParentheses def on_send(node) return if ignored_method?(node.method_name) return if matches_ignored_pattern?(n...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/parameter_lists.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/parameter_lists.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks for methods with too many parameters. # The maximum number of parameters is configurable. # Keyword arguments can optionally be excluded from the total count. class ParameterLists < Base inclu...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/perceived_complexity.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/perceived_complexity.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop tries to produce a complexity score that's a measure of the # complexity the reader experiences when looking at a method. For that # reason it considers `when` nodes as something that doesn't add as much # c...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/block_length.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/block_length.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks if the length of a block exceeds some maximum value. # Comment lines can optionally be ignored. # The maximum allowed length is configurable. # The cop can be configured to ignore blocks passed to cer...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/block_nesting.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/block_nesting.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks for excessive nesting of conditional and looping # constructs. # # You can configure if blocks are considered using the `CountBlocks` # option. When set to `false` (the default) blocks are not c...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/module_length.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/module_length.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks if the length a module exceeds some maximum value. # Comment lines can optionally be ignored. # The maximum allowed length is configurable. # # You can set literals you want to fold with `CountA...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/abc_size.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/abc_size.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks that the ABC size of methods is not higher than the # configured maximum. The ABC size is based on assignments, branches # (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric # and ht...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/method_length.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/method_length.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks if the length of a method exceeds some maximum value. # Comment lines can optionally be ignored. # The maximum allowed length is configurable. # # You can set literals you want to fold with `Cou...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/cyclomatic_complexity.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/cyclomatic_complexity.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks that the cyclomatic complexity of methods is not higher # than the configured maximum. The cyclomatic complexity is the number of # linearly independent paths through a method. The algorithm counts # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/class_length.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/class_length.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks if the length a class exceeds some maximum value. # Comment lines can optionally be ignored. # The maximum allowed length is configurable. # # You can set literals you want to fold with `CountAs...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics module Utils # Helps to calculate code length for the provided node. class CodeLengthCalculator extend NodePattern::Macros include Util FOLDABLE_TYPES = %i[array hash heredoc].freeze ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/utils/iterating_block.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/utils/iterating_block.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics module Utils # Used to identify iterating blocks like `.map{}` and `.map(&:...)` module IteratingBlock enumerable = %i[ all? any? chain chunk chunk_while collect collect_concat count cycle ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics module Utils # @api private # # Helps to calculate code length for the provided node. module RepeatedCsendDiscount def reset_repeated_csend @repeated_csend = {} end ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb
# frozen_string_literal: true module RuboCop module Cop module Metrics module Utils # > ABC is .. a software size metric .. computed by counting the number # > of assignments, branches and conditions for a section of code. # > http://c2.com/cgi/wiki?AbcMetric # # We ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb
# frozen_string_literal: true module RuboCop module Cop module InternalAffairs # Checks that cops are not tested using `described_class::MSG`. # # @example # # # bad # expect(cop.messages).to eq([described_class::MSG]) # # # good # expect(cop....
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb
# frozen_string_literal: true module RuboCop module Cop module InternalAffairs # Checks for redundant message arguments to `#add_offense`. This method # will automatically use `#message` or `MSG` (in that order of priority) # if they are defined. # # @example # # # bad...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/method_name_equal.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/method_name_equal.rb
# frozen_string_literal: true module RuboCop module Cop module InternalAffairs # Checks that method names are checked using `method?` method. # # @example # # bad # node.method_name == :do_something # # # good # node.method?(:do_something) # cla...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/node_destructuring.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/node_destructuring.rb
# frozen_string_literal: true module RuboCop module Cop module InternalAffairs # Checks that node destructuring is using the node extensions. # # @example Using splat expansion # # # bad # _receiver, method_name, _arguments = send_node.children # # # bad ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb
# frozen_string_literal: true module RuboCop module Cop module InternalAffairs # Checks for potential uses of the location keywords which can be used as # shortcut arguments to `#add_offense`. # # @example # # # bad # add_offense(node, location: node.loc.selector) ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/node_type_predicate.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/node_type_predicate.rb
# frozen_string_literal: true module RuboCop module Cop module InternalAffairs # Checks that node types are checked using the predicate helpers. # # @example # # # bad # node.type == :send # # # good # node.send_type? # class NodeTypePredi...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb
# frozen_string_literal: true module RuboCop module Cop module InternalAffairs # Checks for redundant `location` argument to `#add_offense`. `location` # argument has a default value of `:expression` and this method will # automatically use it. # # @example # # # bad ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/empty_line_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/empty_line_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This class does empty line auto-correction class EmptyLineCorrector class << self def correct(corrector, node) offense_style, range = node case offense_style when :no_empty_lines corrector.remov...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/space_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/space_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This auto-corrects whitespace class SpaceCorrector extend SurroundingSpace class << self attr_reader :processed_source def empty_corrections(processed_source, corrector, empty_config, left_to...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/ordered_gem_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/ordered_gem_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This auto-corrects gem dependency order class OrderedGemCorrector extend OrderedGemNode class << self attr_reader :processed_source, :comments_as_separators def correct(processed_source, node, previous...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/alignment_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/alignment_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This class does auto-correction of nodes that should just be moved to # the left or to the right, amount being determined by the instance # variable column_delta. class AlignmentCorrector extend RangeHelp extend Alignment cl...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/parentheses_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/parentheses_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This auto-corrects parentheses class ParenthesesCorrector class << self def correct(corrector, node) corrector.remove(node.loc.begin) corrector.remove(node.loc.end) return unless ternary_condition?(node) && ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This auto-corrects percent literals class PercentLiteralCorrector include Util attr_reader :config, :preferred_delimiters def initialize(config, preferred_delimiters) @config = config @preferred_delimiters = preferr...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/punctuation_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/punctuation_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This auto-corrects punctuation class PunctuationCorrector class << self def remove_space(corrector, space_before) corrector.remove(space_before) end def add_space(corrector, token) corrector.replace(t...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/unused_arg_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/unused_arg_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This auto-corrects unused arguments. class UnusedArgCorrector extend RangeHelp class << self attr_reader :processed_source def correct(corrector, processed_source, node) return if %i[kwarg kwoptarg].include?(nod...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This class auto-corrects `#each` enumeration to `for` iteration. class EachToForCorrector extend NodePattern::Macros CORRECTION_WITH_ARGUMENTS = 'for %<variables>s in %<collection>s do' CORRECTION_WITHOUT_ARGUMENTS = 'for _ ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/string_literal_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/string_literal_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This auto-corrects string literals class StringLiteralCorrector extend Util class << self def correct(node, style) return if node.dstr_type? lambda do |corrector| str = node.str_content ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This class auto-corrects `for` iteration to `#each` enumeration. class ForToEachCorrector extend NodePattern::Macros CORRECTION = '%<collection>s.each do |%<argument>s|' def initialize(for_node) @for_node = for_node ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/line_break_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/line_break_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This class handles autocorrection for code that needs to be moved # to new lines. class LineBreakCorrector extend Alignment extend TrailingBody extend Util class << self attr_reader :processed_source def c...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # Autocorrection logic for the closing brace of a literal either # on the same line as the last contained elements, or a new line. class MultilineLiteralBraceCorrector include MultilineLiteralBraceLayout include RangeHelp def self...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This class auto-corrects lambda literal to method notation. class LambdaLiteralToMethodCorrector def initialize(block_node) @block_node = block_node @method = block_node.send_node @arguments = block_node.arguments ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/condition_corrector.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/correctors/condition_corrector.rb
# frozen_string_literal: true module RuboCop module Cop # This class does condition auto-correction class ConditionCorrector class << self def correct_negative_condition(corrector, node) condition = negated_condition(node) corrector.replace(node.loc.keyword, node.inverse_ke...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/utils/format_string.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/utils/format_string.rb
# frozen_string_literal: true module RuboCop module Cop module Utils # Parses {Kernel#sprintf} format strings. class FormatString DIGIT_DOLLAR = /(\d+)\$/.freeze FLAG = /[ #0+-]|#{DIGIT_DOLLAR}/.freeze NUMBER_ARG = /\*#{DIGIT_DOLLAR}?/.freeze NUMBER ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/end_alignment.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/end_alignment.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks whether the end keywords are aligned properly. # # Three modes are supported through the `EnforcedStyleAlignWith` # configuration parameter: # # If it's set to `keyword` (which is the defau...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_hash_element_line_break.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_hash_element_line_break.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks for a line break before the first element in a # multi-line hash. # # @example # # # bad # { a: 1, # b: 2} # # # good # { # a...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/leading_empty_lines.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/leading_empty_lines.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks for unnecessary leading blank lines at the beginning # of a file. # # @example # # # bad # # (start of file) # # class Foo # end # # # bad ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_method_argument_line_break.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_method_argument_line_break.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks for a line break before the first argument in a # multi-line method call. # # @example # # # bad # method(foo, bar, # baz) # # # good # m...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/argument_alignment.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/argument_alignment.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # Here we check if the arguments on a multi-line method # definition are aligned. # # @example EnforcedStyle: with_first_argument (default) # # good # # foo :bar, # :baz # #...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks that braces used for hash literals have or don't have # surrounding space depending on configuration. # # @example EnforcedStyle: space (default) # # The `space` style enforces that hash literals have ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_module_body.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_module_body.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks if empty lines around the bodies of modules match # the configuration. # # @example EnforcedStyle: empty_lines # # good # # module Foo # # def bar # # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_before_first_arg.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_before_first_arg.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks that exactly one space is used between a method name and the # first argument for method calls without parentheses. # # Alternatively, extra spaces can be added to align the argument with # something on a...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/class_structure.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/class_structure.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks if the code style follows the ExpectedOrder configuration: # # `Categories` allows us to map macro names into a category. # # Consider an example of code style that covers the following order: # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/assignment_indentation.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/assignment_indentation.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks the indentation of the first line of the # right-hand-side of a multi-line assignment. # # @example # # bad # value = # if foo # 'bar' # end # # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop enforces empty line after guard clause # # @example # # # bad # def foo # return if need_return? # bar # end # # # good # def foo # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/block_end_newline.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/block_end_newline.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks whether the end statement of a do..end block # is on its own line. # # @example # # bad # blah do |i| # foo(i) end # # # good # blah do |i| # f...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks the indentation of hanging closing parentheses in # method calls, method definitions, and grouped expressions. A hanging # closing parenthesis means `)` preceded by a line break. # # @example ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/indentation_width.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/indentation_width.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks for indentation that doesn't use the specified number # of spaces. # # See also the IndentationConsistency cop which is the companion to this # one. # # @example # # bad ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks for unnecessary additional spaces inside array percent literals # (i.e. %i/%w). # # @example # # # bad # %w(foo bar baz) # # good # %i(foo bar baz) class SpaceInsid...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/access_modifier_indentation.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/access_modifier_indentation.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # Bare access modifiers (those not applying to specific methods) should be # indented as deep as method definitions, or as deep as the class/module # keyword, depending on configuration. # # @example EnforcedStyle...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks that the closing brace in a method definition is either # on the same line as the last method parameter, or a new line. # # When using the `symmetrical` (default) style: # # If a method def...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_before_comma.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_before_comma.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks for comma (,) preceded by space. # # @example # # bad # [1 , 2 , 3] # a(1 , 2) # each { |a , b| } # # # good # [1, 2, 3] # a(1, 2) # each { |a, b|...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/def_end_alignment.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/def_end_alignment.rb
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks whether the end keywords of method definitions are # aligned properly. # # Two modes are supported through the EnforcedStyleAlignWith configuration # parameter. If it's set to `start_of_line` (wh...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false