Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Rubocop all the things #22919

Open
wants to merge 205 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
3ab431e
rubocop -a --only Bundler/OrderedGems
Fryguy Feb 29, 2024
a2b0ede
rubocop -a --only Layout/ArgumentAlignment
Fryguy Feb 29, 2024
e93c342
rubocop -a --only Layout/ArrayAlignment
Fryguy Feb 29, 2024
c17d08e
rubocop -a --only Layout/BeginEndAlignment
Fryguy Feb 29, 2024
fbeae64
rubocop -a --only Layout/BlockAlignment
Fryguy Feb 29, 2024
60c7c36
rubocop -a --only Layout/BlockEndNewline
Fryguy Feb 29, 2024
c5085c6
rubocop -a --only Layout/ClosingHeredocIndentation
Fryguy Feb 29, 2024
5c11e0e
rubocop -a --only Layout/ClosingParenthesisIndentation
Fryguy Feb 29, 2024
b30e83e
rubocop -a --only Layout/CommentIndentation
Fryguy Feb 29, 2024
cdea9bb
rubocop -a --only Layout/EmptyComment
Fryguy Feb 29, 2024
66fc796
rubocop -a --only Layout/EmptyLineAfterGuardClause
Fryguy Feb 29, 2024
56f86c6
rubocop -a --only Layout/EmptyLineAfterMagicComment
Fryguy Feb 29, 2024
9673ced
rubocop -a --only Layout/EmptyLineBetweenDefs
Fryguy Feb 29, 2024
deda507
rubocop -a --only Layout/EmptyLines
Fryguy Feb 29, 2024
0c7dec9
rubocop -a --only Layout/EmptyLinesAroundAttributeAccessor
Fryguy Feb 29, 2024
db24a23
rubocop -a --only Layout/EmptyLinesAroundBeginBody
Fryguy Feb 29, 2024
ef64dc8
rubocop -a --only Layout/EmptyLinesAroundBlockBody
Fryguy Feb 29, 2024
e6aee5c
rubocop -a --only Layout/EmptyLinesAroundClassBody
Fryguy Feb 29, 2024
0359d19
rubocop -a --only Layout/EmptyLinesAroundExceptionHandlingKeywords
Fryguy Feb 29, 2024
7758303
rubocop -a --only Layout/EmptyLinesAroundMethodBody
Fryguy Feb 29, 2024
35f894b
rubocop -a --only Layout/EmptyLinesAroundModuleBody
Fryguy Feb 29, 2024
0125221
rubocop -a --only Layout/ExtraSpacing
Fryguy Feb 29, 2024
a01a06d
rubocop -a --only Layout/FirstArgumentIndentation
Fryguy Feb 29, 2024
15b59fe
rubocop -a --only Layout/FirstArrayElementIndentation
Fryguy Feb 29, 2024
473778e
rubocop -a --only Layout/FirstHashElementIndentation
Fryguy Feb 29, 2024
4d42d57
rubocop -a --only Layout/HashAlignment
Fryguy Feb 29, 2024
a68ec06
rubocop -a --only Layout/HeredocIndentation
Fryguy Feb 29, 2024
e43c15d
rubocop -a --only Layout/IndentationConsistency
Fryguy Feb 29, 2024
6008a35
rubocop -a --only Layout/IndentationStyle
Fryguy Feb 29, 2024
8f46ac6
rubocop -a --only Layout/IndentationWidth
Fryguy Feb 29, 2024
9c04d6c
rubocop -a --only Layout/LeadingCommentSpace
Fryguy Feb 29, 2024
48e9936
rubocop -a --only Layout/LineContinuationLeadingSpace
Fryguy Feb 29, 2024
d132a70
rubocop -a --only Layout/LineContinuationSpacing
Fryguy Feb 29, 2024
0d3785e
rubocop -a --only Layout/LineEndStringConcatenationIndentation
Fryguy Feb 29, 2024
c15bd2f
rubocop -a --only Layout/MultilineArrayBraceLayout
Fryguy Feb 29, 2024
40e74f6
rubocop -a --only Layout/MultilineBlockLayout
Fryguy Feb 29, 2024
6d6f9a9
rubocop -a --only Layout/MultilineHashBraceLayout
Fryguy Feb 29, 2024
11c5a78
rubocop -a --only Layout/MultilineMethodCallBraceLayout
Fryguy Feb 29, 2024
d01a76d
rubocop -a --only Layout/MultilineMethodCallIndentation
Fryguy Feb 29, 2024
96d5e55
rubocop -a --only Layout/MultilineOperationIndentation
Fryguy Feb 29, 2024
be5a973
rubocop -a --only Layout/SpaceAfterComma
Fryguy Feb 29, 2024
5d7e38b
rubocop -a --only Layout/SpaceAroundMethodCallOperator
Fryguy Feb 29, 2024
c1b6513
rubocop -a --only Layout/SpaceAroundOperators
Fryguy Feb 29, 2024
551ec01
rubocop -a --only Layout/SpaceBeforeBlockBraces
Fryguy Feb 29, 2024
ec330e0
rubocop -a --only Layout/SpaceBeforeBrackets
Fryguy Feb 29, 2024
2bf370b
rubocop -a --only Layout/SpaceBeforeComma
Fryguy Feb 29, 2024
1c154b4
rubocop -a --only Layout/SpaceInsideArrayLiteralBrackets
Fryguy Feb 29, 2024
5e820dd
rubocop -a --only Layout/SpaceInsideArrayPercentLiteral
Fryguy Feb 29, 2024
6205af5
rubocop -a --only Layout/SpaceInsideBlockBraces
Fryguy Feb 29, 2024
42880c3
rubocop -a --only Layout/SpaceInsideHashLiteralBraces
Fryguy Feb 29, 2024
a5117d0
rubocop -a --only Layout/SpaceInsidePercentLiteralDelimiters
Fryguy Feb 29, 2024
4ea944d
rubocop -a --only Layout/SpaceInsideStringInterpolation
Fryguy Feb 29, 2024
d9dd670
rubocop -a --only Layout/TrailingEmptyLines
Fryguy Feb 29, 2024
35d5d82
rubocop -a --only Layout/TrailingWhitespace
Fryguy Feb 29, 2024
22cca16
rubocop -a --only Lint/AmbiguousBlockAssociation
Fryguy Feb 29, 2024
00679c5
rubocop -a --only Lint/AmbiguousOperator
Fryguy Feb 29, 2024
75a6ec5
rubocop -a --only Lint/AmbiguousOperatorPrecedence
Fryguy Feb 29, 2024
e880c29
rubocop -a --only Lint/ErbNewArguments
Fryguy Feb 29, 2024
a233789
rubocop -a --only Lint/LambdaWithoutLiteralBlock
Fryguy Feb 29, 2024
3391d7b
rubocop -a --only Lint/ParenthesesAsGroupedExpression
Fryguy Feb 29, 2024
f91cce3
rubocop -a --only Lint/RedundantSplatExpansion
Fryguy Feb 29, 2024
74fd130
rubocop -a --only Lint/RedundantStringCoercion
Fryguy Feb 29, 2024
dc68e37
rubocop -a --only Lint/SendWithMixinArgument
Fryguy Feb 29, 2024
29ffeeb
rubocop -a --only Lint/SymbolConversion
Fryguy Feb 29, 2024
3377702
rubocop -a --only Lint/ToJSON
Fryguy Feb 29, 2024
75ebb12
rubocop -a --only Lint/UnusedBlockArgument
Fryguy Feb 29, 2024
8c6b978
rubocop -a --only Lint/UnusedMethodArgument
Fryguy Feb 29, 2024
29fd459
rubocop -a --only Lint/UriRegexp
Fryguy Feb 29, 2024
e15050f
rubocop -a --only Lint/UselessAccessModifier
Fryguy Feb 29, 2024
85a62ff
rubocop -a --only Lint/Void
Fryguy Feb 29, 2024
1d086e1
rubocop -a --only Naming/BinaryOperatorParameterName
Fryguy Feb 29, 2024
d347e4a
rubocop -a --only Performance/BindCall
Fryguy Feb 29, 2024
b5d6ef9
rubocop -a --only Performance/BlockGivenWithExplicitBlock
Fryguy Feb 29, 2024
a64577f
rubocop -a --only Performance/Caller
Fryguy Feb 29, 2024
7c1d63e
rubocop -a --only Performance/CompareWithBlock
Fryguy Feb 29, 2024
863917e
rubocop -a --only Performance/ConstantRegexp
Fryguy Feb 29, 2024
4876626
rubocop -a --only Performance/RedundantBlockCall
Fryguy Feb 29, 2024
fa59f02
rubocop -a --only Performance/RedundantMatch
Fryguy Feb 29, 2024
ac4798a
rubocop -a --only Performance/RegexpMatch
Fryguy Feb 29, 2024
dd36bca
rubocop -a --only Performance/StringIdentifierArgument
Fryguy Feb 29, 2024
9aa955a
rubocop -a --only Performance/StringReplacement
Fryguy Feb 29, 2024
53aa34a
rubocop -a --only Rails/ActiveRecordCallbacksOrder
Fryguy Feb 29, 2024
ea3424f
rubocop -a --only Rails/Delegate
Fryguy Feb 29, 2024
e828324
rubocop -a --only Rails/DuplicateAssociation
Fryguy Feb 29, 2024
67728f6
rubocop -a --only Rails/DurationArithmetic
Fryguy Feb 29, 2024
ae737cb
rubocop -a --only Rails/FilePath
Fryguy Feb 29, 2024
af8745c
rubocop -a --only Rails/FindBy
Fryguy Feb 29, 2024
5094c33
rubocop -a --only Rails/IndexBy
Fryguy Feb 29, 2024
225816b
rubocop -a --only Rails/IndexWith
Fryguy Feb 29, 2024
26da9f3
rubocop -a --only Rails/PluralizationGrammar
Fryguy Feb 29, 2024
893cdc6
rubocop -a --only Rails/Presence
Fryguy Feb 29, 2024
679b16a
rubocop -a --only Rails/Present
Fryguy Feb 29, 2024
c009644
rubocop -a --only Rails/RedundantForeignKey
Fryguy Feb 29, 2024
342cca2
rubocop -a --only Rails/RootPublicPath
Fryguy Feb 29, 2024
6a324e5
rubocop -a --only Rails/SafeNavigation
Fryguy Feb 29, 2024
35dd991
rubocop -a --only Rails/StripHeredoc
Fryguy Feb 29, 2024
c8ed579
rubocop -a --only Rails/TopLevelHashWithIndifferentAccess
Fryguy Feb 29, 2024
efe9291
rubocop -a --only Rails/Validation
Fryguy Feb 29, 2024
0a05379
rubocop -a --only Rails/WhereNot
Fryguy Feb 29, 2024
759aebe
rubocop -a --only Style/AccessorGrouping
Fryguy Feb 29, 2024
d662a8d
rubocop -a --only Style/Alias
Fryguy Feb 29, 2024
c5eca7e
rubocop -a --only Style/ArgumentsForwarding
Fryguy Feb 29, 2024
ee3bea6
rubocop -a --only Style/BarePercentLiterals
Fryguy Feb 29, 2024
4bfceb2
rubocop -a --only Style/BlockComments
Fryguy Feb 29, 2024
b068888
rubocop -a --only Style/BlockDelimiters
Fryguy Feb 29, 2024
8aef328
rubocop -a --only Style/CaseEquality
Fryguy Feb 29, 2024
79c240f
rubocop -a --only Style/ClassCheck
Fryguy Feb 29, 2024
c4278ba
rubocop -a --only Style/ClassEqualityComparison
Fryguy Feb 29, 2024
9e75cd2
rubocop -a --only Style/ColonMethodCall
Fryguy Feb 29, 2024
3c810b0
rubocop -a --only Style/CommentAnnotation
Fryguy Feb 29, 2024
c11d1ea
rubocop -a --only Style/ConditionalAssignment
Fryguy Feb 29, 2024
3e328f7
rubocop -a --only Style/EachForSimpleLoop
Fryguy Feb 29, 2024
597cfc3
rubocop -a --only Style/EachWithObject
Fryguy Feb 29, 2024
2c5fc7a
rubocop -a --only Style/EmptyCaseCondition
Fryguy Feb 29, 2024
6d7da75
rubocop -a --only Style/EmptyLiteral
Fryguy Feb 29, 2024
b4f7f30
rubocop -a --only Style/EvalWithLocation
Fryguy Feb 29, 2024
45e3430
rubocop -a --only Style/ExpandPathArguments
Fryguy Feb 29, 2024
ae7f451
rubocop -a --only Style/ExplicitBlockArgument
Fryguy Feb 29, 2024
c334dfc
rubocop -a --only Style/FetchEnvVar
Fryguy Feb 29, 2024
434ba42
rubocop -a --only Style/FileWrite
Fryguy Feb 29, 2024
5a6ec33
rubocop -a --only Style/FormatString
Fryguy Feb 29, 2024
28fc6df
rubocop -a --only Style/HashAsLastArrayItem
Fryguy Feb 29, 2024
a1abb42
rubocop -a --only Style/HashSyntax
Fryguy Feb 29, 2024
b9b30e7
rubocop -a --only Style/IfInsideElse
Fryguy Feb 29, 2024
d6df9eb
rubocop -a --only Style/Lambda
Fryguy Feb 29, 2024
c09dc36
rubocop -a --only Style/MethodCallWithArgsParentheses
Fryguy Feb 29, 2024
324c8b7
rubocop -a --only Style/MultilineIfModifier
Fryguy Feb 29, 2024
d513b35
rubocop -a --only Style/MultilineMemoization
Fryguy Feb 29, 2024
8e02fdc
rubocop -a --only Style/MultilineTernaryOperator
Fryguy Feb 29, 2024
8cc3a47
rubocop -a --only Style/MultilineWhenThen
Fryguy Feb 29, 2024
4949aa4
rubocop -a --only Style/MultipleComparison
Fryguy Feb 29, 2024
6fd83d0
rubocop -a --only Style/NestedParenthesizedCalls
Fryguy Feb 29, 2024
1e8f1e1
rubocop -a --only Style/NestedTernaryOperator
Fryguy Feb 29, 2024
3c1ca73
rubocop -a --only Style/Next
Fryguy Feb 29, 2024
973925d
rubocop -a --only Style/NumericLiteralPrefix
Fryguy Feb 29, 2024
a527752
rubocop -a --only Style/OperatorMethodCall
Fryguy Feb 29, 2024
2f6e83a
rubocop -a --only Style/OrAssignment
Fryguy Feb 29, 2024
fe4a742
rubocop -a --only Style/ParenthesesAroundCondition
Fryguy Feb 29, 2024
916593f
rubocop -a --only Style/PercentLiteralDelimiters
Fryguy Feb 29, 2024
38d8786
rubocop -a --only Style/RaiseArgs
Fryguy Feb 29, 2024
0f170fb
rubocop -a --only Style/RandomWithOffset
Fryguy Feb 29, 2024
01e3107
rubocop -a --only Style/RedundantArrayConstructor
Fryguy Feb 29, 2024
b16b9ee
rubocop -a --only Style/RedundantAssignment
Fryguy Feb 29, 2024
55758cf
rubocop -a --only Style/RedundantBegin
Fryguy Feb 29, 2024
f7c9cb8
rubocop -a --only Style/RedundantCondition
Fryguy Feb 29, 2024
fe9f154
rubocop -a --only Style/RedundantConstantBase
Fryguy Feb 29, 2024
ccdcec2
rubocop -a --only Style/RedundantCurrentDirectoryInPath
Fryguy Feb 29, 2024
700ce74
rubocop -a --only Style/RedundantFileExtensionInRequire
Fryguy Feb 29, 2024
02fff1a
rubocop -a --only Style/RedundantFilterChain
Fryguy Feb 29, 2024
bb2deb4
rubocop -a --only Style/RedundantFreeze
Fryguy Feb 29, 2024
95f2155
rubocop -a --only Style/RedundantLineContinuation
Fryguy Feb 29, 2024
e535510
rubocop -a --only Style/RedundantParentheses
Fryguy Feb 29, 2024
0623866
rubocop -a --only Style/RedundantRegexpArgument
Fryguy Feb 29, 2024
bf11339
rubocop -a --only Style/RedundantRegexpEscape
Fryguy Feb 29, 2024
c08a056
rubocop -a --only Style/RedundantReturn
Fryguy Feb 29, 2024
1a9a4b5
rubocop -a --only Style/RedundantSelf
Fryguy Feb 29, 2024
13d9a58
rubocop -a --only Style/RedundantSelfAssignmentBranch
Fryguy Feb 29, 2024
e0813a1
rubocop -a --only Style/RedundantStringEscape
Fryguy Feb 29, 2024
82ac784
rubocop -a --only Style/RescueStandardError
Fryguy Feb 29, 2024
41e453a
rubocop -a --only Style/SingleLineMethods
Fryguy Feb 29, 2024
c81a486
rubocop -a --only Style/SoleNestedConditional
Fryguy Feb 29, 2024
e9ce040
rubocop -a --only Style/StderrPuts
Fryguy Feb 29, 2024
ba3704a
rubocop -a --only Style/TernaryParentheses
Fryguy Feb 29, 2024
deb6ca4
rubocop -a --only Style/TrailingCommaInArguments
Fryguy Feb 29, 2024
eb09596
rubocop -a --only Style/TrivialAccessors
Fryguy Feb 29, 2024
ba869ee
rubocop -a --only Style/UnlessElse
Fryguy Feb 29, 2024
625dfb4
rubocop -a --only Style/UnpackFirst
Fryguy Feb 29, 2024
1c50c5b
rubocop -a --only Layout/ArgumentAlignment
Fryguy Feb 29, 2024
548bde0
rubocop -a --only Layout/ArrayAlignment
Fryguy Feb 29, 2024
2de05c8
rubocop -a --only Layout/AssignmentIndentation
Fryguy Feb 29, 2024
891d2c6
rubocop -a --only Layout/BlockAlignment
Fryguy Feb 29, 2024
d36675e
rubocop -a --only Layout/CaseIndentation
Fryguy Feb 29, 2024
8a53f18
rubocop -a --only Layout/ClosingParenthesisIndentation
Fryguy Feb 29, 2024
b237fe0
rubocop -a --only Layout/CommentIndentation
Fryguy Feb 29, 2024
0cd8257
rubocop -a --only Layout/ElseAlignment
Fryguy Feb 29, 2024
0c0a6ae
rubocop -a --only Layout/EmptyLineAfterGuardClause
Fryguy Feb 29, 2024
4a2c467
rubocop -a --only Layout/EmptyLineBetweenDefs
Fryguy Feb 29, 2024
16ced30
rubocop -a --only Layout/EmptyLines
Fryguy Feb 29, 2024
eed1448
rubocop -a --only Layout/EmptyLinesAroundClassBody
Fryguy Feb 29, 2024
efa3224
rubocop -a --only Layout/EndAlignment
Fryguy Feb 29, 2024
dd59d35
rubocop -a --only Layout/ExtraSpacing
Fryguy Feb 29, 2024
70db5e7
rubocop -a --only Layout/FirstArgumentIndentation
Fryguy Feb 29, 2024
e98de78
rubocop -a --only Layout/FirstArrayElementIndentation
Fryguy Feb 29, 2024
85a0260
rubocop -a --only Layout/FirstHashElementIndentation
Fryguy Feb 29, 2024
e90092b
rubocop -a --only Layout/HashAlignment
Fryguy Feb 29, 2024
e6f8ed7
rubocop -a --only Layout/HeredocIndentation
Fryguy Feb 29, 2024
7afb463
rubocop -a --only Layout/IndentationConsistency
Fryguy Feb 29, 2024
6f37ffa
rubocop -a --only Layout/IndentationWidth
Fryguy Feb 29, 2024
3b31943
rubocop -a --only Layout/MultilineMethodCallIndentation
Fryguy Feb 29, 2024
2323122
rubocop -a --only Layout/MultilineOperationIndentation
Fryguy Feb 29, 2024
50badb5
rubocop -a --only Layout/SpaceAroundOperators
Fryguy Feb 29, 2024
1e18928
rubocop -a --only Layout/SpaceInsideHashLiteralBraces
Fryguy Feb 29, 2024
155a575
rubocop -a --only Layout/TrailingWhitespace
Fryguy Feb 29, 2024
1327c80
rubocop -a --only Lint/AmbiguousOperator
Fryguy Feb 29, 2024
c9e70bd
rubocop -a --only Lint/ElseLayout
Fryguy Feb 29, 2024
16b498e
rubocop -a --only Lint/UnusedMethodArgument
Fryguy Feb 29, 2024
ae6f512
rubocop -a --only Performance/BlockGivenWithExplicitBlock
Fryguy Feb 29, 2024
065aa2c
rubocop -a --only Rails/IndexBy
Fryguy Feb 29, 2024
8da62b9
rubocop -a --only Rails/IndexWith
Fryguy Feb 29, 2024
d430c26
rubocop -a --only Style/DefWithParentheses
Fryguy Feb 29, 2024
9c15725
rubocop -a --only Style/EmptyElse
Fryguy Feb 29, 2024
4bd50b4
rubocop -a --only Style/FetchEnvVar
Fryguy Feb 29, 2024
4aa31b1
rubocop -a --only Style/ParenthesesAroundCondition
Fryguy Feb 29, 2024
97835c7
rubocop -a --only Style/RedundantAssignment
Fryguy Feb 29, 2024
a0fe6fb
rubocop -a --only Style/Semicolon
Fryguy Feb 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/cloud_network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CloudNetwork < ApplicationRecord
%i(maximum_transmission_unit port_security_enabled qos_policy_id).each do |action|
define_method("#{action}=") do |value|
extra_attributes_save(action, value)
end
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub is presenting this funny, but it's a hidden tab character being fixed to spaces.


define_method(action) do
extra_attributes_load(action)
Expand Down
2 changes: 1 addition & 1 deletion app/models/network_port.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def cloud_subnets_names
allowed_address_pairs fixed_ips).each do |action|
define_method("#{action}=") do |value|
extra_attributes_save(action, value)
end
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub is presenting this funny, but it's a hidden tab character being fixed to spaces.


define_method(action) do
extra_attributes_load(action)
Expand Down
2 changes: 1 addition & 1 deletion lib/extensions/ar_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def columns_for_distinct(columns, orders) #:nodoc:
s.gsub(/\s+(?:ASC|DESC)\b/i, "")
.gsub(/\s+NULLS\s+(?:FIRST|LAST)\b/i, "")
end
}.reject(&:blank?).map.with_index { |column, i| "#{column} AS alias_#{i}" }
}.reject(&:blank?).map.with_index { |column, i| "#{column} AS alias_#{i}" }

(order_columns << super).join(", ")
end
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/postponed_translation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

pt = PostponedTranslation.new("Test %{bar}") do
{:bar => "foo"}
end
end
expect(pt.translate).to eq("Test foo")
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

previous_params_to_attrs = params_to_attrs.each_with_object({}) do |key, attrs|
attrs[key] = ansible_cred.send(key)
end
end

result = ansible_cred.update_in_provider update_params

Expand Down