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/string_hash_keys.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/string_hash_keys.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for the use of strings as keys in hashes. The use of # symbols is preferred instead. # # @example # # bad # { 'one' => 1, 'two' => 2, 'three' => 3 } # # # 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/exponential_notation.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/exponential_notation.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces consistency when using exponential notation # for numbers in the code (eg 1.2e4). Different styles are supported: # * `scientific` which enforces a mantissa between 1 (inclusive) # and ...
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_ternary_operator.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiline_ternary_operator.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for multi-line ternary op expressions. # # NOTE: `return if ... else ... end` is syntax error. If `return` is used before # multiline ternary operator expression, it cannot be auto-corrected. # ...
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/identical_conditional_branches.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/identical_conditional_branches.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for identical lines at the beginning or end of # each branch of a conditional statement. # # @example # # bad # if condition # do_x # do_z # else # ...
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/rescue_standard_error.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/rescue_standard_error.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for rescuing `StandardError`. There are two supported # styles `implicit` and `explicit`. This cop will not register an offense # if any error other than `StandardError` is specified. # # @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/style/nested_parenthesized_calls.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/nested_parenthesized_calls.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for unparenthesized method calls in the argument list # of a parenthesized method call. # # @example # # good # method1(method2(arg)) # # # bad # method1(method2 ar...
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/empty_else.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/empty_else.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for empty else-clauses, possibly including comments and/or an # explicit `nil` depending on the EnforcedStyle. # # @example EnforcedStyle: empty # # warn only on empty else # # # 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/style/percent_q_literals.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/percent_q_literals.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for usage of the %Q() syntax when %q() would do. # # @example EnforcedStyle: lower_case_q (default) # # The `lower_case_q` style prefers `%q` unless # # interpolation is needed. # # ba...
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/empty_literal.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/empty_literal.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for the use of a method, the result of which # would be a literal, like an empty array, hash, or string. # # @example # # bad # a = Array.new # h = Hash.new # s = String....
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/documentation.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/documentation.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for missing top-level documentation of classes and # modules. Classes with no body are exempt from the check and so are # namespace modules - modules that have nothing in their bodies except # classes, ...
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_percent_q.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_percent_q.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for usage of the %q/%Q syntax when '' or "" would do. # # @example # # # bad # name = %q(Bruce Wayne) # time = %q(8 o'clock) # question = %q("What did you say?") # ...
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_method_signature.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiline_method_signature.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for method signatures that span multiple lines. # # @example # # # good # # def foo(bar, baz) # end # # # bad # # def 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/format_string.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/format_string.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces the use of a single string formatting utility. # Valid options include Kernel#format, Kernel#sprintf and String#%. # # The detection of String#% cannot be implemented in a reliable # manner 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/style/missing_respond_to_missing.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/missing_respond_to_missing.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for the presence of `method_missing` without also # defining `respond_to_missing?`. # # @example # #bad # def method_missing(name, *args) # # ... # 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/global_vars.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/global_vars.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop looks for uses of global variables. # It does not report offenses for built-in global variables. # Built-in global variables are allowed by default. Additionally # users can allow additional variables via the ...
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/collection_methods.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/collection_methods.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces the use of consistent method names # from the Enumerable module. # # Unfortunately we cannot actually know if a method is from # Enumerable or not (static analysis limitation), so this 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/style/or_assignment.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/or_assignment.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for potential usage of the `||=` operator. # # @example # # bad # name = name ? name : 'Bozhidar' # # # bad # name = if name # name # else...
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/ascii_comments.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/ascii_comments.rb
# frozen_string_literal: true # rubocop:disable Style/AsciiComments module RuboCop module Cop module Style # This cop checks for non-ascii (non-English) characters # in comments. You could set an array of allowed non-ascii chars in # AllowedChars attribute (empty by default). # # @...
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_return.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_return.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for redundant `return` expressions. # # @example # # These bad cases should be extended to handle methods whose body is # # if/else or a case expression with a default branch. # # ...
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_for_simple_loop.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/each_for_simple_loop.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for loops which iterate a constant number of times, # using a Range literal and `#each`. This can be done more readably using # `Integer#times`. # # This check only applies if the block takes no p...
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/if_inside_else.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/if_inside_else.rb
# frozen_string_literal: true module RuboCop module Cop module Style # If the `else` branch of a conditional consists solely of an `if` node, # it can be combined with the `else` to become an `elsif`. # This helps to keep the nesting level from getting too deep. # # @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/style/documentation_method.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/documentation_method.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for missing documentation comment for public methods. # It can optionally be configured to also require documentation for # non-public methods. # # @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/style/hash_as_last_array_item.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/hash_as_last_array_item.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for presence or absence of braces around hash literal as a last # array item depending on configuration. # # NOTE: This cop will ignore arrays where all items are hashes, regardless of # 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/trailing_comma_in_array_literal.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for trailing comma in array literals. # The configuration options are: # # * `consistent_comma`: Requires a comma after the # last item of all non-empty, multiline array literals. # * `comma...
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/string_literals.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/string_literals.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks if uses of quotes match the configured preference. # # @example EnforcedStyle: single_quotes (default) # # bad # "No special symbols" # "No string interpolation" # "Just text" # ...
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_parentheses.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_parentheses.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for redundant parentheses. # # @example # # # bad # (x) if ((y.z).nil?) # # # good # x if y.z.nil? # class RedundantParentheses < Base include P...
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/nil_comparison.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/nil_comparison.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for comparison of something with nil using `==` and # `nil?`. # # Supported styles are: predicate, comparison. # # @example EnforcedStyle: predicate (default) # # # 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/style/array_join.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/array_join.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for uses of "*" as a substitute for _join_. # # Not all cases can reliably checked, due to Ruby's dynamic # types, so we consider only cases when the first argument is an # array literal or the se...
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/format_string_token.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/format_string_token.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Use a consistent style for named format string tokens. # # NOTE: `unannotated` style cop only works for strings # which are passed as arguments to those methods: # `printf`, `sprintf`, `format`, `%`. # The ...
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/keyword_parameters_order.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/keyword_parameters_order.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces that optional keyword parameters are placed at the # end of the parameters list. # # This improves readability, because when looking through the source, # it is expected to find required paramet...
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/numeric_literal_prefix.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/numeric_literal_prefix.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for octal, hex, binary, and decimal literals using # uppercase prefixes and corrects them to lowercase prefix # or no prefix (in case of decimals). # # @example EnforcedOctalStyle: zero_with_o (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/trailing_comma_in_block_args.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_comma_in_block_args.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks whether trailing commas in block arguments are # required. Blocks with only one argument and a trailing comma require # that comma to be present. Blocks with more than one argument never # require a tra...
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/strip.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/strip.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop identifies places where `lstrip.rstrip` can be replaced by # `strip`. # # @example # # bad # 'abc'.lstrip.rstrip # 'abc'.rstrip.lstrip # # # good # 'abc'.strip ...
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/combinable_loops.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/combinable_loops.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for places where multiple consecutive loops over the same data # can be combined into a single loop. It is very likely that combining them # will make the code more efficient and more concise. # #...
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/encoding.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/encoding.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks ensures source files have no utf-8 encoding comments. # @example # # bad # # encoding: UTF-8 # # coding: UTF-8 # # -*- coding: UTF-8 -*- class Encoding < Base include R...
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/preferred_hash_methods.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/preferred_hash_methods.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop (by default) checks for uses of methods Hash#has_key? and # Hash#has_value? where it enforces Hash#key? and Hash#value? # It is configurable to enforce the inverse, using `verbose` method # names also. #...
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/accessor_grouping.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/accessor_grouping.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for grouping of accessors in `class` and `module` bodies. # By default it enforces accessors to be placed in grouped declarations, # but it can be configured to enforce separating them in multiple declaration...
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_keys.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/hash_transform_keys.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 keys of a hash, and tries to use a simpler & faster # call to `transfor...
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/character_literal.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/character_literal.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for uses of the character literal ?x. # # @example # # bad # ?x # # # good # 'x' # # # good # ?\C-\M-d class CharacterLiteral < Cop include Str...
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_block_params.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/single_line_block_params.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks whether the block parameters of a single-line # method accepting a block match the names specified via configuration. # # For instance one can configure `reduce`(`inject`) to use |a, e| as # param...
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_comments.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/block_comments.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop looks for uses of block comments (=begin...=end). # # @example # # bad # =begin # Multiple lines # of comments... # =end # # # good # # Multiple lines ...
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/send.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/send.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for the use of the send method. # # @example # # bad # Foo.send(:bar) # quuz.send(:fred) # # # good # Foo.__send__(:bar) # quuz.public_send(:fred) 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/style/negated_unless.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/negated_unless.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for uses of unless with a negated condition. Only unless # without else are considered. There are three different styles: # # * both # * prefix # * postfix # # @example EnforcedStyle: bot...
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/dir.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/dir.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for places where the `#__dir__` method can replace more # complex constructs to retrieve a canonicalized absolute path to the # current file. # # @example # # bad # path = File.exp...
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_hash_literal.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for trailing comma in hash literals. # The configuration options are: # # * `consistent_comma`: Requires a comma after the # last item of all non-empty, multiline hash literals. # * `comma`:...
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_definition.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/colon_method_definition.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for class methods that are defined using the `::` # operator instead of the `.` operator. # # @example # # bad # class Foo # def self::bar # end # 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/guard_clause.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/guard_clause.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Use a guard clause instead of wrapping the code inside a conditional # expression # # @example # # bad # def test # if something # work # end # 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/not.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/not.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for uses of the keyword `not` instead of `!`. # # @example # # # bad - parentheses are required because of op precedence # x = (not something) # # # good # x = !som...
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/implicit_runtime_error.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/implicit_runtime_error.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for `raise` or `fail` statements which do not specify an # explicit exception class. (This raises a `RuntimeError`. Some projects # might prefer to use exception classes which more precisely identify the ...
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_file_extension_in_require.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_file_extension_in_require.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for the presence of superfluous `.rb` extension in # the filename provided to `require` and `require_relative`. # # Note: If the extension is omitted, Ruby tries adding '.rb', '.so', # and s...
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_module.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_body_on_module.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for trailing code after the module definition. # # @example # # bad # module Foo extend self # end # # # good # module Foo # extend self # 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/signal_exception.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/signal_exception.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for uses of `fail` and `raise`. # # @example EnforcedStyle: only_raise (default) # # The `only_raise` style enforces the sole use of `raise`. # # bad # begin # fail # ...
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/disable_cops_within_source_code_directive.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb
# frozen_string_literal: true # rubocop:disable Lint/RedundantCopDisableDirective module RuboCop module Cop module Style # Detects comments to enable/disable RuboCop. # This is useful if want to make sure that every RuboCop error gets fixed # and not quickly disabled with a comment. # ...
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/global_std_stream.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/global_std_stream.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`. # `STDOUT/STDERR/STDIN` are constants, and while you can actually # reassign (possibly to redirect some stream) constants in Ruby, you'l...
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/min_max.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/min_max.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for potential uses of `Enumerable#minmax`. # # @example # # # bad # bar = [foo.min, foo.max] # return foo.min, foo.max # # # good # bar = foo.minmax #...
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_begin.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_begin.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for redundant `begin` blocks. # # Currently it checks for code like this: # # @example # # # bad # def redundant # begin # ala # bala ...
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/stabby_lambda_parentheses.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Check for parentheses around stabby lambda arguments. # There are two different styles. Defaults to `require_parentheses`. # # @example EnforcedStyle: require_parentheses (default) # # bad # ->a,b,c { 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/empty_case_condition.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/empty_case_condition.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for case statements with an empty condition. # # @example # # # bad: # case # when x == 0 # puts 'x is 0' # when y == 0 # puts 'y is 0' # else...
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/module_function.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/module_function.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for use of `extend self` or `module_function` in a # module. # # Supported styles are: module_function, extend_self, forbidden. # # @example EnforcedStyle: module_function (default) # ...
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/sample.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/sample.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop is used to identify usages of `shuffle.first`, # `shuffle.last`, and `shuffle[]` and change them to use # `sample` instead. # # @example # # bad # [1, 2, 3].shuffle.first # [1, 2,...
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/double_cop_disable_directive.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/double_cop_disable_directive.rb
# frozen_string_literal: true # rubocop:disable Lint/RedundantCopDisableDirective # rubocop:disable Style/DoubleCopDisableDirective module RuboCop module Cop module Style # Detects double disable comments on one line. This is mostly to catch # automatically generated comments that need to be regener...
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_if_modifier.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiline_if_modifier.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for uses of if/unless modifiers with multiple-lines bodies. # # @example # # # bad # { # result: 'this should not happen' # } unless cond # # # good # { re...
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/empty_block_parameter.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/empty_block_parameter.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for pipes for empty block parameters. Pipes for empty # block parameters do not cause syntax errors, but they are redundant. # # @example # # bad # a do || # 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/redundant_freeze.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_freeze.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop check for uses of Object#freeze on immutable objects. # # @example # # bad # CONST = 1.freeze # # # good # CONST = 1 class RedundantFreeze < Base extend AutoCorrec...
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_interpolation.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_interpolation.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for strings that are just an interpolated expression. # # @example # # # bad # "#{@var}" # # # good # @var.to_s # # # good if @var is already a String...
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.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_sort.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop is used to identify instances of sorting and then # taking only the first or last element. The same behavior can # be accomplished without a relatively expensive sort by using # `Enumerable#min` instead of sor...
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/string_literals_in_interpolation.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/string_literals_in_interpolation.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks that quotes inside the string interpolation # match the configured preference. # # @example EnforcedStyle: single_quotes (default) # # bad # result = "Tests #{success ? "PASS" : "FAIL"}"...
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/explicit_block_argument.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/explicit_block_argument.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces the use of explicit block argument to avoid writing # block literal that just passes its arguments to another block. # # @example # # bad # def with_tmp_dir # Dir.mktmpdir do...
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_memoization.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiline_memoization.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks expressions wrapping styles for multiline memoization. # # @example EnforcedStyle: keyword (default) # # bad # foo ||= ( # bar # baz # ) # # # 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/when_then.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/when_then.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for `when;` uses in `case` expressions. # # @example # # bad # case foo # when 1; 'baz' # when 2; 'bar' # end # # # good # case foo # when...
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/unpack_first.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/unpack_first.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for accessing the first element of `String#unpack` # which can be replaced with the shorter method `unpack1`. # # @example # # # bad # 'foo'.unpack('h*').first # 'foo'.unpa...
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/attr.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/attr.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for uses of Module#attr. # # @example # # bad - creates a single attribute accessor (deprecated in Ruby 1.9) # attr :something, true # attr :one, :two, :three # behaves as attr_reader ...
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/auto_resource_cleanup.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/auto_resource_cleanup.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for cases when you could use a block # accepting version of a method that does automatic # resource cleanup. # # @example # # # bad # f = File.open('file') # # ...
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/if_with_semicolon.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/if_with_semicolon.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for uses of semicolon in if statements. # # @example # # # bad # result = if some_condition; something else another_thing end # # # good # result = some_condition ? somethin...
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/while_until_modifier.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/while_until_modifier.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for while and until statements that would fit on one line # if written as a modifier while/until. The maximum line length is # configured in the `Layout/LineLength` cop. # # @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/style/stderr_puts.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/stderr_puts.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop identifies places where `$stderr.puts` can be replaced by # `warn`. The latter has the advantage of easily being disabled by, # the `-W0` interpreter flag or setting `$VERBOSE` to `nil`. # # @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/style/while_until_do.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/while_until_do.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for uses of `do` in multi-line `while/until` statements. # # @example # # # bad # while x.any? do # do_something(x.pop) # end # # # good # while x.any? ...
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_capital_w.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_capital_w.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for usage of the %W() syntax when %w() would do. # # @example # # bad # %W(cat dog pig) # %W[door wall floor] # # # good # %w/swim run bike/ # %w[shirt pa...
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/zero_length_predicate.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/zero_length_predicate.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for numeric comparisons that can be replaced # by a predicate method, such as receiver.length == 0, # receiver.length > 0, receiver.length != 0, # receiver.length < 1 and receiver.size == 0 that can be ...
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_self.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_self.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for redundant uses of `self`. # # The usage of `self` is only needed when: # # * Sending a message to same object with zero arguments in # presence of a method name clash with an argument ...
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_if.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/negated_if.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Checks for uses of if with a negated condition. Only ifs # without else are considered. There are three different styles: # # * both # * prefix # * postfix # # @example EnforcedStyle: both (defa...
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/special_global_vars.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/special_global_vars.rb
# frozen_string_literal: true module RuboCop module Cop module Style # # This cop looks for uses of Perl-style global variables. # # @example EnforcedStyle: use_english_names (default) # # good # puts $LOAD_PATH # puts $LOADED_FEATURES # puts $PROGRAM_NAME ...
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/safe_navigation.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/safe_navigation.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop transforms usages of a method call safeguarded by a non `nil` # check for the variable whose method is being called to # safe navigation (`&.`). If there is a method chain, all of the methods # in the chain ne...
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_method_end_statement.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_method_end_statement.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 do_this(x) # baz.map { |b| b.this(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_self_assignment.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_self_assignment.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for places where redundant assignments are made for in place # modification methods. # # This cop is marked as unsafe, because it can produce false positives for # user defined methods having one ...
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/parallel_assignment.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/parallel_assignment.rb
# frozen_string_literal: true require 'tsort' module RuboCop module Cop module Style # Checks for simple usages of parallel assignment. # This will only complain when the number of variables # being assigned matched the number of assigning variables. # # @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/style/array_coercion.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/array_coercion.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces the use of `Array()` instead of explicit `Array` check or `[*var]`. # # This cop is disabled by default because false positive will occur if # the argument of `Array()` is not an array (e.g. Hash, Set...
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/next.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/next.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Use `next` to skip iteration instead of a condition at the end. # # @example EnforcedStyle: skip_modifier_ifs (default) # # bad # [1, 2].each do |a| # if a == 1 # puts a # 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/mutable_constant.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/mutable_constant.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks whether some constant value isn't a # mutable literal (e.g. array or hash). # # Strict mode can be used to freeze all constants, rather than # just literals. # Strict mode is considered an 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/eval_with_location.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/eval_with_location.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks `eval` method usage. `eval` can receive source location # metadata, that are filename and line number. The metadata is used by # backtraces. This cop recommends to pass the metadata to `eval` method. # ...
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/rescue_modifier.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/rescue_modifier.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for uses of rescue in its modifier form. # # The cop to check `rescue` in its modifier form is added for following # reasons: # # * The syntax of modifier form `rescue` can be misleading bec...
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/string_methods.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/string_methods.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces the use of consistent method names # from the String class. # # @example # # bad # 'name'.intern # 'var'.unfavored_method # # # good # 'name'.to_sym ...
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/string_concatenation.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/string_concatenation.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for places where string concatenation # can be replaced with string interpolation. # # The cop can autocorrect simple cases but will skip autocorrecting # more complex cases where the resulting co...
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_character_class.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for unnecessary single-element Regexp character classes. # # @example # # # bad # r = /[x]/ # # # good # r = /x/ # # # bad # r = /[\s]/ ...
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/begin_block.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/begin_block.rb
# frozen_string_literal: true module RuboCop module Cop module Style # # This cop checks for BEGIN blocks. # # @example # # bad # BEGIN { test } # class BeginBlock < Base MSG = 'Avoid the use of `BEGIN` blocks.' def on_preexe(node) ad...
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_argument_dig.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/single_argument_dig.rb
# frozen_string_literal: true module RuboCop module Cop module Style # Sometimes using dig method ends up with just a single # argument. In such cases, dig should be replaced with []. # # @example # # bad # { key: 'value' }.dig(:key) # [1, 2, 3].dig(0) # ...
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/commented_keyword.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/commented_keyword.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for comments put on the same line as some keywords. # These keywords are: `begin`, `class`, `def`, `end`, `module`. # # Note that some comments # (`:nodoc:`, `:yields:`, `rubocop:disable` and `rub...
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_def_parentheses.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/method_def_parentheses.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for parentheses around the arguments in method # definitions. Both instance and class/singleton methods are checked. # # @example EnforcedStyle: require_parentheses (default) # # The `require_pa...
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/inline_comment.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/inline_comment.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for trailing inline comments. # # @example # # # good # foo.each do |f| # # Standalone comment # f.bar # end # # # bad # foo.each do |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/alias.rb
.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/alias.rb
# frozen_string_literal: true module RuboCop module Cop module Style # This cop enforces the use of either `#alias` or `#alias_method` # depending on configuration. # It also flags uses of `alias :symbol` rather than `alias bareword`. # # @example EnforcedStyle: prefer_alias (defaul...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false