OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
update rubocop.yml
ulfertsd125242deb6b
diff --git a/.rubocop.yml b/.rubocop.ymlindex 0bde5894219..97081e50496 100644--- a/.rubocop.yml+++ b/.rubocop.yml@@ -1,277 +1,278 @@+inherit_from: .rubocop_todo.yml+AllCops:- TargetRubyVersion: 2.5+ TargetRubyVersion: 2.6Exclude:- db/schema.rb-AccessorMethodName:++Layout/ConditionPosition:Enabled: false-ActionFilter:+Layout/DotPosition:+ EnforcedStyle: leading++Layout/LineLength:+ Max: 130++Layout/MultilineMethodCallIndentation:Enabled: false-Alias:++Lint/AmbiguousOperator:Enabled: false-AndOr:+Lint/AmbiguousRegexpLiteral:Enabled: false-ArrayJoin:+Lint/AssignmentInCondition:Enabled: false-AsciiComments:+Lint/DeprecatedClassMethods:Enabled: false-AsciiIdentifiers:+Lint/ElseLayout:Enabled: false-Attr:+Lint/FlipFlop:Enabled: false-BlockLength:+Lint/LiteralInInterpolation:Enabled: false-BlockNesting:+Lint/Loop:Enabled: false-CaseEquality:+Lint/ParenthesesAsGroupedExpression:Enabled: false-CharacterLiteral:+Lint/RequireParentheses:Enabled: false-ClassAndModuleChildren:+Lint/SuppressedException:Enabled: false-ClassLength:+Lint/UnderscorePrefixedVariableName:Enabled: false-ClassVars:+Lint/Void:Enabled: false-CollectionMethods:- PreferredMethods:- find: detect- reduce: inject- collect: map- find_all: select-ColonMethodCall:+Metrics/ClassLength:Enabled: false-CommentAnnotation:+Metrics/CyclomaticComplexity:Enabled: false-CyclomaticComplexity:+Metrics/BlockLength:Enabled: false-Delegate:+Metrics/BlockNesting:Enabled: false-PreferredHashMethods:+Metrics/MethodLength:Enabled: false-Documentation:+Metrics/ModuleLength:Enabled: false-DotPosition:- EnforcedStyle: leading--DoubleNegation:+Metrics/ParameterLists:Enabled: false-EachWithObject:- Enabled: false-EmptyLiteral:+Naming/AccessorMethodName:Enabled: false-Encoding:+Naming/AsciiIdentifiers:Enabled: false-EvenOdd:+Naming/FileName:Enabled: false-FileName:- Enabled: false+Naming/PredicateName:+ ForbiddenPrefixes:+ - is_-FlipFlop:- Enabled: false-FormatString:+Style/Alias:Enabled: false-GlobalVars:+Style/AndOr:Enabled: false-GuardClause:+Style/ArrayJoin:Enabled: false-IfUnlessModifier:+Style/AsciiComments:Enabled: false-IfWithSemicolon:+Style/Attr:Enabled: false-InlineComment:+Style/CaseEquality:Enabled: false-Lambda:+Style/CharacterLiteral:Enabled: false-LambdaCall:+Style/ClassAndModuleChildren:Enabled: false-LineEndConcatenation:+Style/ClassVars:Enabled: false-LineLength:- Max: 130+Style/CollectionMethods:+ PreferredMethods:+ find: detect+ reduce: inject+ collect: map+ find_all: select-MethodLength:+Style/ColonMethodCall:Enabled: false-Metrics/ModuleLength:+Style/CommentAnnotation:Enabled: false-ModuleFunction:+Style/PreferredHashMethods:Enabled: false-NegatedIf:+Style/Documentation:Enabled: false-NegatedWhile:+Style/DoubleNegation:Enabled: false-Next:+Style/EachWithObject:Enabled: false-NilComparison:+Style/EmptyLiteral:Enabled: false-Not:+Style/Encoding:Enabled: false-NumericLiterals:+Style/EvenOdd:Enabled: false-OneLineConditional:+Style/FormatString:Enabled: false-ParameterLists:+Style/GlobalVars:Enabled: false-PercentLiteralDelimiters:+Style/GuardClause:Enabled: false-PerlBackrefs:+Style/IfUnlessModifier:Enabled: false-PredicateName:- NamePrefixBlacklist:- - is_--Proc:+Style/IfWithSemicolon:Enabled: false-RaiseArgs:+Style/InlineComment:Enabled: false-RegexpLiteral:+Style/Lambda:Enabled: false-SelfAssignment:+Style/LambdaCall:Enabled: false-SingleLineBlockParams:+Style/LineEndConcatenation:Enabled: false-SingleLineMethods:+Style/ModuleFunction:Enabled: false-SignalException:+Style/NegatedIf:Enabled: false-SpecialGlobalVars:+Style/NegatedWhile:Enabled: false-# Forcing single quotes doesn't give any reasonable advantages. To the contrary:-# it forces you to change the quotes every time you want to add interpolation,-# newlines or other escape sequences (\n), or quotes (') to a string. Rubbish.-# Don't even think about performance. That never was a valid argument to begin with.-#-# For the record: using single quotes does NOT have any performance advantages.-# Even if it did, this would be a silly argument.-#-# Ideally we would just use double quotes everywhere but since that would result-# in innumerable rubocop offenses we will just disable this. Quote away.-StringLiterals:+Style/Next:Enabled: false-TrivialAccessors:+Style/NilComparison:Enabled: false-VariableInterpolation:+Style/Not:Enabled: false-WhenThen:+Style/OneLineConditional:Enabled: false-WhileUntilModifier:+Style/PercentLiteralDelimiters:Enabled: false-WordArray:+Style/PerlBackrefs:Enabled: false-Style/FrozenStringLiteralComment:+Style/Proc:Enabled: false-Style/NumericLiterals:+Style/RaiseArgs:Enabled: false-# Lint--AmbiguousOperator:+Style/RegexpLiteral:Enabled: false-AmbiguousRegexpLiteral:+Style/SelfAssignment:Enabled: false-AssignmentInCondition:+Style/SingleLineBlockParams:Enabled: false-ConditionPosition:+Style/SingleLineMethods:Enabled: false-DeprecatedClassMethods:+Style/SignalException:Enabled: false-ElseLayout:+Style/SpecialGlobalVars:Enabled: false-HandleExceptions:+# Forcing single quotes doesn't give any reasonable advantages. To the contrary:+# it forces you to change the quotes every time you want to add interpolation,+# newlines or other escape sequences (\n), or quotes (') to a string. Rubbish.+# Don't even think about performance. That never was a valid argument to begin with.+#+# For the record: using single quotes does NOT have any performance advantages.+# Even if it did, this would be a silly argument.+#+# Ideally we would just use double quotes everywhere but since that would result+# in innumerable rubocop offenses we will just disable this. Quote away.+Style/StringLiterals:Enabled: false-LiteralInCondition:+Style/TrivialAccessors:Enabled: false-LiteralInInterpolation:+Style/VariableInterpolation:Enabled: false-Loop:+Style/WhenThen:Enabled: false-ParenthesesAsGroupedExpression:+Style/WhileUntilModifier:Enabled: false-RequireParentheses:+Style/WordArray:Enabled: false-UnderscorePrefixedVariableName:+Style/FrozenStringLiteralComment:Enabled: false-Void:+Style/NumericLiterals:Enabled: false-Layout/MultilineMethodCallIndentation:- Enabled: false+Style/HashEachMethods:+ Enabled: true++Style/HashTransformKeys:+ Enabled: true+Style/HashTransformValues:+ Enabled: truediff --git a/modules/bim/spec/api/v3/work_packages/work_package_representer_spec.rb b/modules/bim/spec/api/v3/work_packages/work_package_representer_spec.rbindex 864907208a3..a0713a0bcfd 100644--- a/modules/bim/spec/api/v3/work_packages/work_package_representer_spec.rb+++ b/modules/bim/spec/api/v3/work_packages/work_package_representer_spec.rb@@ -54,7 +54,7 @@ describe ::API::V3::WorkPackages::WorkPackageRepresenter doendbefore(:each) do- allow(User).to receive(:current).and_return user+ login_as userendsubject(:generated) { representer.to_json }