# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
-# using RuboCop version 1.0.0.
+# using RuboCop version 1.5.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
- 'lib/redmine/safe_attributes.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
+# Cop supports --auto-correct.
+# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
+Layout/EmptyLineBetweenDefs:
+ Exclude:
+ - 'config/initializers/10-patches.rb'
+
# Cop supports --auto-correct.
Layout/EmptyLines:
Exclude:
- 'test/unit/attachment_test.rb'
- 'test/unit/issue_import_test.rb'
+Lint/DuplicateBranch:
+ Exclude:
+ - 'app/helpers/queries_helper.rb'
+ - 'app/models/issue.rb'
+ - 'lib/redmine/sudo_mode.rb'
+
+# Configuration parameters: AllowComments, AllowEmptyLambdas.
+Lint/EmptyBlock:
+ Exclude:
+ - 'app/controllers/issues_controller.rb'
+ - 'app/models/auth_source_ldap.rb'
+ - 'lib/redmine/scm/adapters/abstract_adapter.rb'
+ - 'test/helpers/application_helper_test.rb'
+ - 'test/unit/lib/redmine/menu_manager/menu_item_test.rb'
+ - 'test/unit/lib/redmine/plugin_test.rb'
+
Lint/FloatComparison:
Exclude:
- 'app/models/time_entry.rb'
Exclude:
- 'lib/redmine/core_ext.rb'
+Lint/OutOfRangeRegexpRef:
+ Exclude:
+ - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
+
# Cop supports --auto-correct.
Lint/ParenthesesAsGroupedExpression:
Exclude:
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-# Configuration parameters: EnforcedStyle.
+# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
# SupportedStyles: snake_case, normalcase, non_integer
+# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
Naming/VariableNumber:
Exclude:
- 'test/functional/versions_controller_test.rb'
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
Rails/Exit:
Exclude:
- - 'lib/**/*.rake'
- 'config/environment.rb'
- 'config/initializers/10-patches.rb'
- 'config/routes.rb'
- 'lib/redmine/wiki_formatting/markdown/formatter.rb'
- 'test/helpers/activities_helper_test.rb'
+# Cop supports --auto-correct.
+Style/CollectionCompact:
+ Exclude:
+ - 'app/controllers/issues_controller.rb'
+ - 'app/controllers/projects_controller.rb'
+ - 'lib/redmine/sudo_mode.rb'
+
# Cop supports --auto-correct.
Style/ColonMethodCall:
Exclude:
Style/ConditionalAssignment:
Enabled: false
+Style/DocumentDynamicEvalDefinition:
+ Exclude:
+ - 'app/helpers/attachments_helper.rb'
+
Style/Documentation:
Enabled: false
+# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: allowed_in_returns, forbidden
Style/DoubleNegation:
- 'test/functional/issues_custom_fields_visibility_test.rb'
- 'test/unit/auth_source_ldap_test.rb'
+# Cop supports --auto-correct.
# Configuration parameters: AllowIfModifier.
Style/IfInsideElse:
Exclude:
- 'lib/redmine/ciphering.rb'
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
+# Cop supports --auto-correct.
Style/MultipleComparison:
Exclude:
- 'app/helpers/application_helper.rb'
- - 'app/helpers/workflows_helper.rb'
- - 'app/models/import.rb'
- 'app/models/version.rb'
- 'app/models/wiki_page.rb'
Style/Proc:
Enabled: false
+# Configuration parameters: Methods.
+Style/RedundantArgument:
+ Exclude:
+ - 'app/controllers/account_controller.rb'
+ - 'lib/redmine/scm/adapters/cvs_adapter.rb'
+ - 'lib/redmine/scm/adapters/git_adapter.rb'
+ - 'test/functional/projects_controller_test.rb'
+ - 'test/unit/issue_test.rb'
+
# Cop supports --auto-correct.
Style/RedundantAssignment:
Exclude:
Style/SingleLineMethods:
Enabled: false
+# Cop supports --auto-correct.
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
Exclude: