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/layout/first_argument_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_argument_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the indentation of the first argument in a method call.
# Arguments after the first one are checked by Layout/ArgumentAlignment,
# not by this cop.
#
# For indenting the first parameter of 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/layout/first_array_element_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_array_element_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the indentation of the first element in an array literal
# where the opening bracket and the first element are on separate lines.
# The other elements' indentations are handled by the ArrayAlignment 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/layout/empty_lines_around_begin_body.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks if empty lines exist around the bodies of begin-end
# blocks.
#
# @example
#
# # good
#
# begin
# # ...
# end
#
# # bad
#
# beg... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_method_name.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_method_name.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for space between a method name and a left parenthesis in defs.
#
# @example
#
# # bad
# def func (x) end
# def method= (y) end
#
# # good
# def func(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/layout/multiline_hash_key_line_breaks.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop ensures that each key in a multi-line hash
# starts on a separate line.
#
# @example
#
# # bad
# {
# a: 1, b: 2,
# c: 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/layout/space_before_semicolon.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_before_semicolon.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for semicolon (;) preceded by space.
#
# @example
# # bad
# x = 1 ; y = 2
#
# # good
# x = 1; y = 2
class SpaceBeforeSemicolon < Base
include SpaceBeforePunctuation... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_block_braces.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_block_braces.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks that block braces have or don't have surrounding space inside
# them on configuration. For blocks taking parameters, it checks that the
# left brace has or doesn't have trailing space depending on
# configurati... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_not.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_not.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for space after `!`.
#
# @example
# # bad
# ! something
#
# # good
# !something
class SpaceAfterNot < Base
include RangeHelp
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/layout/comment_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/comment_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the indentation of comments.
#
# @example
# # bad
# # comment here
# def method_name
# end
#
# # comment here
# a = 'hello'
#
# # yet a... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_around_keyword.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_around_keyword.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks the spacing around the keywords.
#
# @example
#
# # bad
# something 'test'do|x|
# end
#
# while(something)
# end
#
# something = 123if test
#
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/initial_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/initial_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for indentation of the first non-blank non-comment
# line in a file.
#
# @example
# # bad
# class A
# def foo; end
# end
#
# # good
# 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/layout/empty_lines_around_access_modifier.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Access modifiers should be surrounded by blank lines.
#
# @example EnforcedStyle: around (default)
#
# # bad
# class Foo
# def bar; end
# private
# def baz; end
# ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/extra_spacing.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/extra_spacing.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for extra/unnecessary whitespace.
#
# @example
#
# # good if AllowForAlignment is true
# name = "RuboCop"
# # Some comment and an empty line
#
# website += "... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_block_body.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_block_body.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks if empty lines around the bodies of blocks match
# the configuration.
#
# @example EnforcedStyle: empty_lines
# # good
#
# foo do |bar|
#
# # ...
#
# ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_around_block_parameters.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_around_block_parameters.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks the spacing inside and after block parameters pipes. Line breaks
# inside parameter pipes are checked by `Layout/MultilineBlockLayout` and
# not by this cop.
#
# @example EnforcedStyleInsidePipes: no_spac... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/trailing_whitespace.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/trailing_whitespace.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop looks for trailing whitespace in the source code.
#
# @example
# # The line in this example contains spaces after the 0.
# # bad
# x = 0
#
# # The line in this example ends dir... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_array_brace_layout.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_array_brace_layout.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks that the closing brace in an array literal is either
# on the same line as the last array element or on a new line.
#
# When using the `symmetrical` (default) style:
#
# If an array's openi... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for spaces between `->` and opening parameter
# parenthesis (`(`) in lambda literals.
#
# @example EnforcedStyle: require_no_space (default)
# # bad
# a = -> (x, y) { x + y }
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks if empty lines exist around the bodies of `begin`
# sections. This cop doesn't check empty lines at `begin` body
# beginning/end and around method definition body.
# `Style/EmptyLinesAroundBeginBody` 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/layout/space_inside_string_interpolation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_string_interpolation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for whitespace within string interpolations.
#
# @example EnforcedStyle: no_space (default)
# # bad
# var = "This is the #{ space } example"
#
# # good
# var = "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/layout/condition_position.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/condition_position.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for conditions that are not on the same line as
# if/while/until.
#
# @example
#
# # bad
#
# if
# some_condition
# do_something
# end
#
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_comma.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_comma.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for comma (,) not followed by some kind of space.
#
# @example
#
# # bad
# [1,2]
# { foo:bar,}
#
# # good
# [1, 2]
# { foo:bar, }
class SpaceAfterComm... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop enforces empty line after multiline condition.
#
# @example
# # bad
# if multiline &&
# condition
# do_something
# end
#
# # good
# if multiline &&
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/heredoc_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/heredoc_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the indentation of the here document bodies. The bodies
# are indented one step.
#
# Note: When ``Layout/LineLength``'s `AllowHeredoc` is false (not default),
# this cop does not add any of... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/block_alignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/block_alignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks whether the end keywords are aligned properly for do
# end blocks.
#
# Three modes are supported through the `EnforcedStyleAlignWith`
# configuration parameter:
#
# `start_of_block` :... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_method_body.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_method_body.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks if empty lines exist around the bodies of methods.
#
# @example
#
# # good
#
# def foo
# # ...
# end
#
# # bad
#
# def bar
#
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_before_comment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_before_comment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for missing space between a token and a comment on the
# same line.
#
# @example
# # bad
# 1 + 1# this operation does ...
#
# # good
# 1 + 1 # this operation does ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks method call operators to not have spaces around them.
#
# @example
# # bad
# foo. bar
# foo .bar
# foo . bar
# foo. bar .buzz
# foo
# . bar
# . buzz... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/end_of_line.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/end_of_line.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for Windows-style line endings in the source code.
#
# @example EnforcedStyle: native (default)
# # The `native` style means that CR+LF (Carriage Return + Line Feed) is
# # enforced on Window... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_array_line_breaks.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_array_line_breaks.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop ensures that each item in a multi-line array
# starts on a separate line.
#
# @example
#
# # bad
# [
# a, b,
# c
# ]
#
# # 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/layout/space_inside_reference_brackets.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks that reference brackets have or don't have
# surrounding space depending on configuration.
#
# @example EnforcedStyle: no_space (default)
# # The `no_space` style enforces that reference brackets have
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_colon.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_colon.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for colon (:) not followed by some kind of space.
# N.B. this cop does not handle spaces after a ternary operator, which are
# instead handled by Layout/SpaceAroundOperators.
#
# @example
# # bad
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/hash_alignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/hash_alignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Check that the keys, separators, and values of a multi-line hash
# literal are aligned according to configuration. The configuration
# options are:
#
# * key (left align keys, one space before hash rockets and v... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/line_length.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/line_length.rb | # frozen_string_literal: true
require 'uri'
module RuboCop
module Cop
module Layout
# This cop checks the length of lines in the source code.
# The maximum length is configurable.
# The tab size is configured in the `IndentationWidth`
# of the `Layout/IndentationStyle` cop.
# It al... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/array_alignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/array_alignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Here we check if the elements of a multi-line array literal are
# aligned.
#
# @example EnforcedStyle: with_first_element (default)
# # good
#
# array = [1, 2, 3,
# 4, 5, 6]
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks that the equals signs in parameter default assignments
# have or don't have surrounding space depending on configuration.
#
# @example EnforcedStyle: space (default)
# # bad
# def some_method(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/layout/empty_line_after_magic_comment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for a newline after the final magic comment.
#
# @example
# # good
# # frozen_string_literal: true
#
# # Some documentation for Person
# class Person
# # Some code
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for the placement of the closing parenthesis
# in a method call that passes a HEREDOC string as an argument.
# It should be placed at the end of the line containing the
# opening HEREDOC tag.
#
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_parameter_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_parameter_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the indentation of the first parameter in a method
# definition. Parameters after the first one are checked by
# Layout/ParameterAlignment, not by this cop.
#
# For indenting the first argument 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/layout/case_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/case_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks how the ``when``s of a `case` expression
# are indented in relation to its `case` or `end` keyword.
#
# It will register a separate offense for each misaligned `when`.
#
# @example
# ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
#
# Checks the indentation of here document closings.
#
# @example
#
# # bad
# class Foo
# def bar
# <<~SQL
# 'Hi'
# SQL
# 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/layout/else_alignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/else_alignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the alignment of else keywords. Normally they should
# be aligned with an if/unless/while/until/begin/def keyword, but there
# are special cases when they should follow the same rules as the
# alignmen... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_block_layout.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_block_layout.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks whether the multiline do end blocks have a newline
# after the start of the block. Additionally, it checks whether the block
# arguments, if any, are on the same line as the start of the
# block. Putti... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the indentation of the first key in a hash literal
# where the opening brace and the first key are on separate lines. The
# other keys' indentations are handled by the HashAlignment cop.
#
# By d... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop ensures that each argument in a multi-line method call
# starts on a separate line.
#
# @example
#
# # bad
# foo(a, b,
# c
# )
#
# # good
# foo(
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for two or more consecutive blank lines.
#
# @example
#
# # bad - It has two empty lines.
# some_method
# # one empty line
# # two empty lines
# some_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/layout/space_inside_percent_literal_delimiters.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for unnecessary additional spaces inside the delimiters of
# %i/%w/%x literals.
#
# @example
#
# # good
# %i(foo bar baz)
#
# # bad
# %w( foo bar baz )
#
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks that brackets used for array literals have or don't have
# surrounding space depending on configuration.
#
# @example EnforcedStyle: space
# # The `space` style enforces that array literals have
#... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/leading_comment_space.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/leading_comment_space.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks whether comments have a leading space after the
# `#` denoting the start of the comment. The leading space is not
# required for some RDoc special syntax, like `#++`, `#--`,
# `#:nodoc`, `=begin`- 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/layout/parameter_alignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/parameter_alignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Here we check if the parameters on a multi-line method call or
# definition are aligned.
#
# To set the alignment of the first argument, use the cop
# FirstParameterIndentation.
#
# @example Enforced... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_before_block_braces.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_before_block_braces.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks that block braces have or don't have a space before the opening
# brace depending on configuration.
#
# @example EnforcedStyle: space (default)
# # bad
# foo.map{ |a|
# a.bar.to_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/layout/multiline_method_call_brace_layout.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks that the closing brace in a method call is either
# on the same line as the last method argument, or a new line.
#
# When using the `symmetrical` (default) style:
#
# If a method call's ope... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/dot_position.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/dot_position.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the . position in multi-line method calls.
#
# @example EnforcedStyle: leading (default)
# # bad
# something.
# method
#
# # good
# something
# .meth... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_semicolon.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_after_semicolon.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for semicolon (;) not followed by some kind of space.
#
# @example
# # bad
# x = 1;y = 2
#
# # good
# x = 1; y = 2
class SpaceAfterSemicolon < Base
include SpaceAft... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_class_body.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_class_body.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks if empty lines around the bodies of classes match
# the configuration.
#
# @example EnforcedStyle: empty_lines
# # good
#
# class Foo
#
# def bar
# # .... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_parens.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_parens.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for spaces inside ordinary round parentheses.
#
# @example EnforcedStyle: no_space (default)
# # The `no_space` style enforces that parentheses do not have spaces.
#
# # bad
# f( 3)
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/indentation_style.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/indentation_style.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks that the indentation method is consistent.
# Either tabs only or spaces only are used for indentation.
#
# @example EnforcedStyle: spaces (default)
# # bad
# # This example uses a tab t... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the indentation of the right hand side operand in
# binary operations that span more than one line.
#
# The `aligned` style checks that operators are aligned if they are part
# of an `if` or `whi... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_array_element_line_break.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_array_element_line_break.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for a line break before the first element in a
# multi-line array.
#
# @example
#
# # bad
# [ :a,
# :b]
#
# # good
# [
# :a,
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/trailing_empty_lines.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/trailing_empty_lines.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop looks for trailing blank lines and a final newline in the
# source code.
#
# @example EnforcedStyle: final_blank_line
# # `final_blank_line` looks for one blank line followed by a new line
# #... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks that the closing brace in a hash literal is either
# on the same line as the last hash element, or a new line.
#
# When using the `symmetrical` (default) style:
#
# If a hash's opening brac... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_range_literal.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_inside_range_literal.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for spaces inside range literals.
#
# @example
# # bad
# 1 .. 3
#
# # good
# 1..3
#
# # bad
# 'a' .. 'z'
#
# # good
# 'a'..'z'
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/layout/multiline_assignment_layout.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_assignment_layout.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks whether the multiline assignments have a newline
# after the assignment operator.
#
# @example EnforcedStyle: new_line (default)
# # bad
# foo = if expression
# 'bar'
# ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/begin_end_alignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/begin_end_alignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks whether the end keyword of `begin` is aligned properly.
#
# Two modes are supported through the `EnforcedStyleAlignWith` configuration
# parameter. If it's set to `start_of_line` (which is the 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/layout/indentation_consistency.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/indentation_consistency.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for inconsistent indentation.
#
# The difference between `indented_internal_methods` and `normal` is
# that the `indented_internal_methods` style prescribes that in
# classes and modules the `pro... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_line_between_defs.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_line_between_defs.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks whether method definitions are
# separated by one empty line.
#
# `NumberOfEmptyLines` can be an integer (default is 1) or
# an array (e.g. [1, 2]) to specify a minimum and maximum
# number... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks for a newline after an attribute accessor or a group of them.
# `alias` syntax and `alias_method`, `public`, `protected`, and `private` methods are allowed
# by default. These are customizable with `AllowAliasSyntax`... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks the indentation of the method name part in method calls
# that span more than one line.
#
# @example EnforcedStyle: aligned (default)
# # bad
# while myvariable
# .b
# ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_method_parameter_line_break.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/first_method_parameter_line_break.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks for a line break before the first parameter in a
# multi-line method parameter definition.
#
# @example
#
# # bad
# def method(foo, bar,
# baz)
# 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/layout/space_around_operators.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/space_around_operators.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# Checks that operators have space around them, except for ** which
# should or shouldn't have surrounding space depending on configuration.
#
# This cop has `AllowForAlignment` option. When `true`, allows most
# ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks whether the rescue and ensure keywords are aligned
# properly.
#
# @example
#
# # bad
# begin
# something
# rescue
# puts 'error'
# end
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks if empty lines exist around the arguments
# of a method invocation.
#
# @example
# # bad
# do_something(
# foo
#
# )
#
# process(bar,
#
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_comment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/layout/empty_comment.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Layout
# This cop checks empty comment.
#
# @example
# # bad
#
# #
# class Foo
# end
#
# # good
#
# #
# # Description of `Foo` class.
# #
# 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/mixin/nil_methods.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/nil_methods.rb | # frozen_string_literal: true
module RuboCop
module Cop
# This module provides a list of methods that are:
# 1. In the NilClass by default
# 2. Added to NilClass by explicitly requiring any standard libraries
# 3. Cop's configuration parameter AllowedMethods.
module NilMethods
include Allow... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for checking hash alignment.
module HashAlignmentStyles
# Handles calculation of deltas when the enforced style is 'key'.
class KeyAlignment
def checkable_layout?(_node)
true
end
def ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/configurable_formatting.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/configurable_formatting.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Shared functionality between mixins that enforce naming conventions
module ConfigurableFormatting
include ConfigurableEnforcedStyle
def check_name(node, name, name_range)
if valid_name?(node, name)
correct_style_detected... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common code for indenting the first elements in multiline
# array literals, hash literals, and method definitions.
module MultilineElementIndentation
private
def each_argument_node(node, type)
left_parenthesis = node.loc.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/mixin/range_help.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/range_help.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Methods that calculate and return Parser::Source::Ranges
module RangeHelp
private
BYTE_ORDER_MARK = 0xfeff # The Unicode codepoint
def source_range(source_buffer, line_number, column, length = 1)
if column.is_a?(Range)
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for checking the closing brace of a literal is
# either on the same line as the last contained elements or a new line.
module MultilineLiteralBraceLayout
include ConfigurableEnforcedStyle
private
def check_... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/first_element_line_break.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/first_element_line_break.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for checking for a line break before the first
# element in a multi-line collection.
module FirstElementLineBreak
private
def check_method_line_break(node, children)
return if children.empty?
retu... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/interpolation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/interpolation.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for working with string interpolations.
#
# @abstract Subclasses are expected to implement {#on_interpolation}.
module Interpolation
def on_dstr(node)
on_node_with_interpolations(node)
end
alias ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/trailing_comma.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/trailing_comma.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common methods shared by Style/TrailingCommaInArguments and
# Style/TrailingCommaInLiteral
module TrailingComma
include ConfigurableEnforcedStyle
include RangeHelp
MSG = '%<command>s comma after the last %<unit>s.'
privat... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/unused_argument.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/unused_argument.rb | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# Common functionality for cops handling unused arguments.
module UnusedArgument
extend NodePattern::Macros
def after_leaving_scope(scope, _variable_table)
scope.variables.each_value do |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/mixin/trailing_body.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/trailing_body.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common methods shared by TrailingBody cops
module TrailingBody
def trailing_body?(node)
body = node.to_a.reverse[0]
body && node.multiline? &&
body_on_first_line?(node, body)
end
def body_on_first_line?(nod... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Handles `EnforcedStyle` configuration parameters.
module ConfigurableEnforcedStyle
def opposite_style_detected
style_detected(alternative_style)
end
def correct_style_detected
style_detected(style)
end
d... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/heredoc.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/heredoc.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for working with heredoc strings.
module Heredoc
OPENING_DELIMITER = /(<<[~-]?)['"`]?([^'"`]+)['"`]?/.freeze
def on_str(node)
return unless node.heredoc?
on_heredoc(node)
end
alias on_dstr... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/surrounding_space.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/surrounding_space.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for checking and correcting surrounding whitespace.
module SurroundingSpace
include RangeHelp
NO_SPACE_COMMAND = 'Do not use'
SPACE_COMMAND = 'Use'
SINGLE_SPACE_REGEXP = /[ \t]/.freeze
private
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/on_normal_if_unless.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/on_normal_if_unless.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for cops checking if and unless expressions.
module OnNormalIfUnless
def on_if(node)
return if node.modifier_form? || node.ternary?
on_normal_if_unless(node)
end
end
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/mixin/percent_literal.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/percent_literal.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for handling percent literals.
module PercentLiteral
include RangeHelp
private
def percent_literal?(node)
return unless (begin_source = begin_source(node))
begin_source.start_with?('%')
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/mixin/string_literals_help.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/string_literals_help.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for cops checking single/double quotes.
module StringLiteralsHelp
include StringHelp
private
def wrong_quotes?(node)
src = node.source
return false if src.start_with?('%', '?')
if 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/mixin/array_syntax.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/array_syntax.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common code for ordinary arrays with [] that can be written with %
# syntax.
module ArraySyntax
private
def bracketed_array_of?(element_type, node)
return false unless node.square_brackets? && !node.values.empty?
node... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/uncommunicative_name.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/uncommunicative_name.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality shared by Uncommunicative cops
module UncommunicativeName
CASE_MSG = 'Only use lowercase characters for %<name_type>s.'
NUM_MSG = 'Do not end %<name_type>s with a number.'
LENGTH_MSG = '%<name_type>s must be at 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/mixin/empty_parameter.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/empty_parameter.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common code for empty parameter cops.
module EmptyParameter
extend NodePattern::Macros
private
def_node_matcher :empty_arguments?, <<~PATTERN
(block _ $(args) _)
PATTERN
def check(node)
empty_arguments?... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/parentheses.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/parentheses.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for handling parentheses.
module Parentheses
private
def parens_required?(node)
range = node.source_range
source = range.source_buffer.source
/[a-z]/.match?(source[range.begin_pos - 1]) || /[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/mixin/negative_conditional.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/negative_conditional.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Some common code shared between `NegatedIf` and
# `NegatedWhile` cops.
module NegativeConditional
extend NodePattern::Macros
MSG = 'Favor `%<inverse>s` over `%<current>s` for ' \
'negative conditions.'
private
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/rescue_node.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/rescue_node.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for checking `rescue` nodes.
module RescueNode
def on_new_investigation
@modifier_locations = processed_source
.tokens
.select(&:rescue_modifier?)
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/space_before_punctuation.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/space_before_punctuation.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for cops checking for space before
# punctuation.
module SpaceBeforePunctuation
include RangeHelp
MSG = 'Space found before %<token>s.'
def on_new_investigation
each_missing_space(processed_source.t... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/allowed_methods.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/allowed_methods.rb | # frozen_string_literal: true
module RuboCop
module Cop
# This module encapsulates the ability to allow certain methods when
# parsing.
module AllowedMethods
private
# @api public
def allowed_method?(name)
allowed_methods.include?(name.to_s)
end
# @api public
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/safe_assignment.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/safe_assignment.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for safe assignment. By safe assignment we mean
# putting parentheses around an assignment to indicate "I know I'm using an
# assignment as a condition. It's not a mistake."
module SafeAssignment
extend NodePattern::... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/code_length.rb | .bundles_cache/ruby/2.6.0/gems/rubocop-0.93.1/lib/rubocop/cop/mixin/code_length.rb | # frozen_string_literal: true
module RuboCop
module Cop
# Common functionality for checking length of code segments.
module CodeLength
include ConfigurableMax
MSG = '%<label>s has too many lines. [%<length>d/%<max>d]'
private
def message(length, max_length)
format(MSG, labe... | 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.