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/lint/rand_one.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/rand_one.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for `rand(1)` calls.
# Such calls always return `0`.
#
# @example
#
# # bad
#
# rand 1
# Kernel.rand(-1)
# rand 1.0
# rand(-1.0)
#
# @examp... | 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/lint/out_of_range_regexp_ref.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cops looks for references of Regexp captures that are out of range
# and thus always returns nil.
#
# @example
#
# /(foo)bar/ =~ 'foobar'
#
# # bad - always returns nil
#
# ... | 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/lint/nested_percent_literal.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/nested_percent_literal.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for nested percent literals.
#
# @example
#
# # bad
#
# # The percent literal for nested_attributes is parsed as four tokens,
# # yielding the array [:name, :content, :"%i[i... | 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/lint/useless_else_without_rescue.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/useless_else_without_rescue.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for useless `else` in `begin..end` without `rescue`.
#
# NOTE: This syntax is no longer valid on Ruby 2.6 or higher and
# this cop is going to be removed at some point the future.
#
# @exampl... | 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/lint/unreachable_code.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/unreachable_code.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for unreachable code.
# The check are based on the presence of flow of control
# statement in non-final position in `begin` (implicit) blocks.
#
# @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/lint/safe_navigation_consistency.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/safe_navigation_consistency.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop check to make sure that if safe navigation is used for a method
# call in an `&&` or `||` condition that safe navigation is used for all
# method calls on that same object.
#
# @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/lint/non_deterministic_require_order.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# `Dir[...]` and `Dir.glob(...)` do not make any guarantees about
# the order in which files are returned. The final order is
# determined by the operating system and file system.
# This means that using them in cases whe... | 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/lint/void.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/void.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for operators, variables, literals, and nonmutating
# methods used in void context.
#
# @example CheckForMethodsWithNoSideEffects: false (default)
# # bad
# def some_method
# so... | 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/lint/empty_file.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/empty_file.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop enforces that Ruby source files are not empty.
#
# @example
# # bad
# # Empty file
#
# # good
# # File containing non commented source lines
#
# @example AllowComment... | 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/lint/useless_access_modifier.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/useless_access_modifier.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for redundant access modifiers, including those with no
# code, those which are repeated, and leading `public` modifiers in a
# class or module body. Conditionally-defined methods are considered as
# alw... | 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/lint/ambiguous_regexp_literal.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for ambiguous regexp literals in the first argument of
# a method invocation without parentheses.
#
# @example
#
# # bad
#
# # This is interpreted as a method invocation with ... | 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/lint/next_without_accumulator.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/next_without_accumulator.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# Don't omit the accumulator when calling `next` in a `reduce` block.
#
# @example
#
# # bad
#
# result = (1..4).reduce(0) do |acc, i|
# next if i.odd?
# acc + i
# 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/lint/implicit_string_concatenation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for implicit string concatenation of string literals
# which are on the same line.
#
# @example
#
# # bad
#
# array = ['Item 1' 'Item 2']
#
# @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/lint/regexp_as_condition.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/regexp_as_condition.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for regexp literals used as `match-current-line`.
# If a regexp literal is in condition, the regexp matches `$_` implicitly.
#
# @example
# # bad
# if /foo/
# 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/lint/else_layout.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/else_layout.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for odd else block layout - like
# having an expression on the same line as the else keyword,
# which is usually a mistake.
#
# @example
#
# # bad
#
# if 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/lint/disjunctive_assignment_in_constructor.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks constructors for disjunctive assignments that should
# be plain assignments.
#
# So far, this cop is only concerned with disjunctive assignment of
# instance variables.
#
# In ruby, an ... | 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/lint/redundant_string_coercion.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/redundant_string_coercion.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for string conversion in string interpolation,
# which is redundant.
#
# @example
#
# # bad
#
# "result is #{something.to_s}"
#
# @example
#
# # 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/lint/trailing_comma_in_attribute_declaration.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for trailing commas in attribute declarations, such as
# `#attr_reader`. Leaving a trailing comma will nullify the next method
# definition by overriding it with a getter method.
#
# @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/lint/unreachable_loop.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/unreachable_loop.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for loops that will have at most one iteration.
#
# A loop that can never reach the second iteration is a possible error in the code.
# In rare cases where only one iteration (or at most one iteration) i... | 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/lint/inherit_exception.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/inherit_exception.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop looks for error classes inheriting from `Exception`
# and its standard library subclasses, excluding subclasses of
# `StandardError`. It is configurable to suggest using either
# `RuntimeError` (default) or `St... | 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/lint/non_local_exit_from_iterator.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for non-local exits from iterators without a return
# value. It registers an offense under these conditions:
#
# * No value is returned,
# * the block is preceded by a method chain,
# * the 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/lint/uri_escape_unescape.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/uri_escape_unescape.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop identifies places where `URI.escape` can be replaced by
# `CGI.escape`, `URI.encode_www_form`, or `URI.encode_www_form_component`
# depending on your specific use case.
# Also this cop identifies places where `... | 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/lint/duplicate_case_condition.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/duplicate_case_condition.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks that there are no repeated conditions
# used in case 'when' expressions.
#
# @example
#
# # bad
#
# case x
# when 'first'
# do_something
# when 'firs... | 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/lint/unified_integer.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/unified_integer.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for using Fixnum or Bignum constant.
#
# @example
#
# # bad
#
# 1.is_a?(Fixnum)
# 1.is_a?(Bignum)
#
# @example
#
# # good
#
# 1.is_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/lint/duplicate_hash_key.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/duplicate_hash_key.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for duplicated keys in hash literals.
#
# This cop mirrors a warning in Ruby 2.2.
#
# @example
#
# # bad
#
# hash = { food: 'apple', food: 'orange' }
#
# @ex... | 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/lint/deprecated_open_ssl_constant.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# Algorithmic constants for `OpenSSL::Cipher` and `OpenSSL::Digest`
# deprecated since OpenSSL version 2.2.0. Prefer passing a string
# instead.
#
# @example
#
# # Example for OpenSSL::Cipher instantia... | 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/lint/shadowed_exception.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/shadowed_exception.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for a rescued exception that get shadowed by a
# less specific exception being rescued before a more specific
# exception is rescued.
#
# @example
#
# # bad
#
# begin
... | 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/lint/percent_symbol_array.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/percent_symbol_array.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for colons and commas in %i, e.g. `%i(:foo, :bar)`
#
# It is more likely that the additional characters are unintended (for
# example, mistranslating an array of literals to percent string notation)
... | 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/lint/each_with_object_argument.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/each_with_object_argument.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks if each_with_object is called with an immutable
# argument. Since the argument is the object that the given block shall
# make calls on to build something based on the enumerable that
# each_with_object ... | 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/lint/redundant_cop_disable_directive.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb | # frozen_string_literal: true
# The Lint/RedundantCopDisableDirective cop needs to be disabled so as
# to be able to provide a (bad) example of a redundant disable.
# rubocop:disable Lint/RedundantCopDisableDirective
module RuboCop
module Cop
module Lint
# This cop detects instances of rubocop:disable comm... | 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/lint/unused_block_argument.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/unused_block_argument.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for unused block arguments.
#
# @example
# # bad
# do_something do |used, unused|
# puts used
# end
#
# do_something do |bar|
# puts :foo
# 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/lint/empty_ensure.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/empty_ensure.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for empty `ensure` blocks
#
# @example
#
# # bad
#
# def some_method
# do_something
# ensure
# end
#
# @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/lint/identity_comparison.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/identity_comparison.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
#
# Prefer `equal?` over `==` when comparing `object_id`.
#
# `Object#equal?` is provided to compare objects for identity, and in contrast
# `Object#==` is provided for the purpose of doing value comparison.
#... | 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/lint/heredoc_method_call_position.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for the ordering of a method call where
# the receiver of the call is a HEREDOC.
#
# @example
# # bad
#
# <<-SQL
# bar
# SQL
# .strip_indent
... | 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/lint/nested_method_definition.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/nested_method_definition.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for nested method definitions.
#
# @example
#
# # bad
#
# # `bar` definition actually produces methods in the same scope
# # as the outer `foo` method. Furthermore, the `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/lint/require_parentheses.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/require_parentheses.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for expressions where there is a call to a predicate
# method with at least one argument, where no parentheses are used around
# the parameter list, and a boolean operator, && or ||, is used in the
# las... | 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/lint/parentheses_as_grouped_expression.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# Checks for space between the name of a called method and a left
# parenthesis.
#
# @example
#
# # bad
# do_something (foo)
#
# # good
# do_something(foo)
# do_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/lint/redundant_splat_expansion.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for unneeded usages of splat expansion
#
# @example
#
# # bad
#
# a = *[1, 2, 3]
# a = *'a'
# a = *1
#
# begin
# foo
# rescue *[Stand... | 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/lint/mixed_regexp_capture_types.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# Do not mix named captures and numbered captures in a Regexp literal
# because numbered capture is ignored if they're mixed.
# Replace numbered captures with non-capturing groupings or
# named captures.
#
# ... | 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/lint/shadowing_outer_local_variable.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for the use of local variable names from an outer scope
# in block arguments or block-local variables. This mirrors the warning
# given by `ruby -cw` prior to Ruby 2.6:
# "shadowing outer local variable ... | 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/lint/useless_setter_call.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/useless_setter_call.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for setter call to local variable as the final
# expression of a function definition.
#
# NOTE: There are edge cases in which the local variable references a
# value that is also accessible outside... | 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/lint/ordered_magic_comments.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/ordered_magic_comments.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
#
# Checks the proper ordering of magic comments and whether
# a magic comment is not placed before a shebang.
#
# @example
# # bad
#
# # frozen_string_literal: true
# # encoding: ascii... | 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/lint/constant_definition_in_block.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/constant_definition_in_block.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# Do not define constants within a block, since the block's scope does not
# isolate or namespace the constant in any way.
#
# If you are trying to define that constant once, define it outside of
# the block instead... | 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/lint/assignment_in_condition.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/lint/assignment_in_condition.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for assignments in the conditions of
# if/while/until.
#
# `AllowSafeAssignment` option for safe assignment.
# By safe assignment we mean putting parentheses around
# an assignment to indicat... | 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/generator/configuration_injector.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/generator/configuration_injector.rb | # frozen_string_literal: true
module RuboCop
module Cop
class Generator
# A class that injects a require directive into the root RuboCop file.
# It looks for other directives that require files in the same (cop)
# namespace and injects the provided one in alpha
class ConfigurationInjector... | 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/generator/require_file_injector.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/generator/require_file_injector.rb | # frozen_string_literal: true
module RuboCop
module Cop
class Generator
# A class that injects a require directive into the root RuboCop file.
# It looks for other directives that require files in the same (cop)
# namespace and injects the provided one in alpha
class RequireFileInjector
... | 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_called_on_do_end_block.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/method_called_on_do_end_block.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for methods called on a do...end block. The point of
# this check is that it's easy to miss the call tacked on to the block
# when reading code.
#
# @example
# # bad
# a 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/proc.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/proc.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for uses of Proc.new where Kernel#proc
# would be more appropriate.
#
# @example
# # bad
# p = Proc.new { |n| puts n }
#
# # good
# p = proc { |n| puts 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/style/even_odd.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/even_odd.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for places where `Integer#even?` or `Integer#odd?`
# can be used.
#
# @example
#
# # bad
# if x % 2 == 0
# end
#
# # good
# if x.even?
# 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/inverse_methods.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/inverse_methods.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop check for usages of not (`not` or `!`) called on a method
# when an inverse of that method can be used instead.
# Methods that can be inverted by a not (`not` or `!`) should be defined
# in `InverseMethods`
... | 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/comment_annotation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/comment_annotation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks that comment annotation keywords are written according
# to guidelines.
#
# NOTE: With a multiline comment block (where each line is only a
# comment), only the first line will be able to register... | 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_equality_comparison.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/class_equality_comparison.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop enforces the use of `Object#instance_of?` instead of class comparison
# for equality.
#
# @example
# # bad
# var.class == Date
# var.class.equal?(Date)
# var.class.eql?(Date)
... | 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_fetch_block.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_fetch_block.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop identifies places where `fetch(key) { value }`
# can be replaced by `fetch(key, value)`.
#
# In such cases `fetch(key, value)` method is faster
# than `fetch(key) { value }`.
#
# @example Saf... | 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_literals.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/numeric_literals.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for big numeric literals without _ between groups
# of digits in them.
#
# @example
#
# # bad
# 1000000
# 1_00_000
# 1_0000
#
# # good
# 1_000... | 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/mixin_usage.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/mixin_usage.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks that `include`, `extend` and `prepend` statements appear
# inside classes and modules, not at the top level, so as to not affect
# the behavior of `Object`.
#
# @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/for.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/for.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop looks for uses of the `for` keyword or `each` method. The
# preferred alternative is set in the EnforcedStyle configuration
# parameter. An `each` call with a block on a single line is always
# allowed.
... | 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/struct_inheritance.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/struct_inheritance.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for inheritance from Struct.new.
#
# @example
# # bad
# class Person < Struct.new(:first_name, :last_name)
# def age
# 42
# 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/case_like_if.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/case_like_if.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop identifies places where `if-elsif` constructions
# can be replaced with `case-when`.
#
# @example
# # bad
# if status == :active
# perform_action
# elsif status == :inactive |... | 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_predicate.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/numeric_predicate.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for usage of comparison operators (`==`,
# `>`, `<`) to test numbers as zero, positive, or negative.
# These can be replaced by their respective predicate methods.
# The cop can also be configured to 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/expand_path_arguments.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/expand_path_arguments.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for use of the `File.expand_path` arguments.
# Likewise, it also checks for the `Pathname.new` argument.
#
# Contrastive bad case and good case are alternately shown in
# the following examples.
... | 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_each_methods.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/hash_each_methods.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for uses of `each_key` and `each_value` Hash methods.
#
# NOTE: If you have an array of two-element arrays, you can put
# parentheses around the block arguments to indicate that you're not
# w... | 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_underscore_variable.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_underscore_variable.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for extra underscores in variable assignment.
#
# @example
# # bad
# a, b, _ = foo()
# a, b, _, = foo()
# a, _, _ = foo()
# a, _, _, = foo()
#
# # 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/ip_addresses.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/ip_addresses.rb | # frozen_string_literal: true
require 'resolv'
module RuboCop
module Cop
module Style
# This cop checks for hardcoded IP addresses, which can make code
# brittle. IP addresses are likely to need to be changed when code
# is deployed to a different server or environment, which may break
#... | 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/end_block.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/end_block.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for END blocks.
#
# @example
# # bad
# END { puts 'Goodbye!' }
#
# # good
# at_exit { puts 'Goodbye!' }
#
class EndBlock < Base
extend AutoCorrector
... | 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/unless_else.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/unless_else.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop looks for `unless` expressions with `else` clauses.
#
# @example
# # bad
# unless foo_bar.nil?
# # do something...
# else
# # do a different thing...
# 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/self_assignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/self_assignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop enforces the use the shorthand for self-assignment.
#
# @example
#
# # bad
# x = x + 1
#
# # good
# x += 1
class SelfAssignment < Base
extend AutoCorrector
... | 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/and_or.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/and_or.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for uses of `and` and `or`, and suggests using `&&` and
# `||` instead. It can be configured to check only in conditions or in
# all contexts.
#
# @example EnforcedStyle: always
# # 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/symbol_array.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/symbol_array.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop can check for array literals made up of symbols that are not
# using the %i() syntax.
#
# Alternatively, it checks for symbol arrays using the %i() syntax on
# projects which do not want to use that synt... | 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_then.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiline_if_then.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# Checks for uses of the `then` keyword in multi-line if statements.
#
# @example
# # bad
# # This is considered bad practice.
# if cond then
# end
#
# # good
# # If statem... | 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/random_with_offset.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/random_with_offset.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for the use of randomly generated numbers,
# added/subtracted with integer literals, as well as those with
# Integer#succ and Integer#pred methods. Prefer using ranges instead,
# as it clearly states 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/conditional_assignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/conditional_assignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# Helper module to provide common methods to classes needed for the
# ConditionalAssignment Cop.
module ConditionalAssignmentHelper
extend NodePattern::Macros
EQUAL = '='
END_ALIGNMENT = 'Layout/EndAli... | 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/copyright.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/copyright.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# Check that a copyright notice was given in each source file.
#
# The default regexp for an acceptable copyright notice can be found in
# config/default.yml. The default can be changed as follows:
#
# Style... | 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/non_nil_check.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/non_nil_check.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for non-nil checks, which are usually redundant.
#
# With `IncludeSemanticChanges` set to `false` by default, this cop
# does not report offenses for `!x.nil?` and does no changes that might
# cha... | 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_condition.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/redundant_condition.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for unnecessary conditional expressions.
#
# @example
# # bad
# a = b ? b : c
#
# # good
# a = b || c
#
# @example
# # bad
# if 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/style/symbol_proc.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/symbol_proc.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# Use symbols as procs when possible.
#
# @example
# # bad
# something.map { |s| s.upcase }
#
# # good
# something.map(&:upcase)
class SymbolProc < Base
include RangeHelp
... | 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_vars.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/class_vars.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for uses of class variables. Offenses
# are signaled only on assignment to class variables to
# reduce the number of offenses that would be reported.
#
# You have to be careful when setting a valu... | 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_lambda_parameter.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/empty_lambda_parameter.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for parentheses for empty lambda parameters. Parentheses
# for empty lambda parameters do not cause syntax errors, but they are
# redundant.
#
# @example
# # bad
# -> () { do_somet... | 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/float_division.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/float_division.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for division with integers coerced to floats.
# It is recommended to either always use `fdiv` or coerce one side only.
# This cop also provides other options for code consistency.
#
# @example Enf... | 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_else.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/missing_else.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# Checks for `if` expressions that do not have an `else` branch.
#
# Supported styles are: if, case, both.
#
# @example EnforcedStyle: if
# # warn when an `if` expression is missing an `else` 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/nested_ternary_operator.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/nested_ternary_operator.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for nested ternary op expressions.
#
# @example
# # bad
# a ? (b ? b1 : b2) : a2
#
# # good
# if a
# b ? b1 : b2
# else
# a2
# 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/bisected_attr_accessor.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/bisected_attr_accessor.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for places where `attr_reader` and `attr_writer`
# for the same method can be combined into single `attr_accessor`.
#
# @example
# # bad
# class Foo
# attr_reader :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/empty_method.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/empty_method.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for the formatting of empty method definitions.
# By default it enforces empty method definitions to go on a single
# line (compact style), but it can be configured to enforce the `end`
# to go on its o... | 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.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/class_methods.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for uses of the class/module name instead of
# self, when defining class/module methods.
#
# @example
# # bad
# class SomeClass
# def SomeClass.class_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/double_negation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/double_negation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for uses of double negation (`!!`) to convert something to a boolean value.
#
# When using `EnforcedStyle: allowed_in_returns`, allow double nagation in contexts
# that use boolean as a return value. 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/regexp_literal.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/regexp_literal.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop enforces using // or %r around regular expressions.
#
# @example EnforcedStyle: slashes (default)
# # bad
# snake_case = %r{^[\dA-Z_]+$}
#
# # bad
# regex = %r{
# 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/multiple_comparison.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/multiple_comparison.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks against comparing a variable with multiple items, where
# `Array#include?` could be used instead to avoid code repetition.
#
# @example
# # bad
# a = 'a'
# foo if a == 'a' || 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_syntax.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/hash_syntax.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks hash literal syntax.
#
# It can enforce either the use of the class hash rocket syntax or
# the use of the newer Ruby 1.9 syntax (when applicable).
#
# A separate offense is registered for 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/variable_interpolation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/variable_interpolation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for variable interpolation (like "#@ivar").
#
# @example
# # bad
# "His name is #$name"
# /check #$pattern/
# "Let's go to the #@store"
#
# # good
# "His ... | 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/line_end_concatenation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/line_end_concatenation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for string literal concatenation at
# the end of a line.
#
# @example
#
# # bad
# some_str = 'ala' +
# 'bala'
#
# some_str = 'ala' <<
# ... | 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_class.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trailing_body_on_class.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for trailing code after the class definition.
#
# @example
# # bad
# class Foo; def foo; end
# end
#
# # good
# class Foo
# def foo; 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/method_call_with_args_parentheses.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop enforces the presence (default) or absence of parentheses in
# method calls containing parameters.
#
# In the default style (require_parentheses), macro methods are ignored.
# Additional methods can be 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/bare_percent_literals.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/bare_percent_literals.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks if usage of %() or %Q() matches configuration.
#
# @example EnforcedStyle: bare_percent (default)
# # bad
# %Q(He said: "#{greeting}")
# %q{She said: 'Hi'}
#
# # 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/frozen_string_literal_comment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop is designed to help you transition from mutable string literals
# to frozen string literals.
# It will add the comment `# frozen_string_literal: true` to the top of
# files to enable frozen string literals. Fr... | 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_modifier.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/nested_modifier.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for nested use of if, unless, while and until in their
# modifier form.
#
# @example
#
# # bad
# something if a if b
#
# # good
# something if b && a
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/style/if_unless_modifier_of_if_unless.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# Checks for if and unless statements used as modifiers of other if or
# unless statements.
#
# @example
#
# # bad
# tired? ? 'stop' : 'go faster' if running?
#
# # bad
# if tired?... | 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_literal_delimiters.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/percent_literal_delimiters.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop enforces the consistent usage of `%`-literal delimiters.
#
# Specify the 'default' key to set all preferred delimiters at once. You
# can continue to specify individual preferred delimiters to override 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/perl_backrefs.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/perl_backrefs.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop looks for uses of Perl-style regexp match
# backreferences like $1, $2, etc.
#
# @example
# # bad
# puts $1
#
# # good
# puts Regexp.last_match(1)
class PerlBackrefs... | 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/trivial_accessors.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/trivial_accessors.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop looks for trivial reader/writer methods, that could
# have been created with the attr_* family of functions automatically.
#
# @example
# # bad
# def foo
# @foo
# 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/if_unless_modifier.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/if_unless_modifier.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# Checks for `if` and `unless` statements that would fit on one line if
# written as modifier `if`/`unless`. The cop also checks for modifier
# `if`/`unless` lines that exceed the maximum line length.
#
# The maxim... | 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/mixin_grouping.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/style/mixin_grouping.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for grouping of mixins in `class` and `module` bodies.
# By default it enforces mixins to be placed in separate declarations,
# but it can be configured to enforce grouping them in one declaration.
#
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.