# This configuration was generated by
# `rubocop --auto-gen-config`
-# on 2020-08-09 18:49:49 UTC using RuboCop version 0.89.0.
+# on 2020-09-02 06:16:56 UTC using RuboCop version 0.90.0.
# 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
Rails/TimeZone:
Enabled: false
+# Offense count: 1
+Style/CombinableLoops:
+ Exclude:
+ - 'db/migrate/021_move_to_innodb.rb'
+
# Offense count: 572
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
- 'test/models/trace_test.rb'
- 'test/models/tracetag_test.rb'
+# Offense count: 6
+# Configuration parameters: AllowModifier.
+Style/SoleNestedConditional:
+ Exclude:
+ - 'app/controllers/user_blocks_controller.rb'
+ - 'app/models/old_way.rb'
+ - 'app/validators/characters_validator.rb'
+ - 'app/validators/whitespace_validator.rb'
+ - 'lib/classic_pagination/pagination.rb'
+
# Offense count: 28
# Cop supports --auto-correct.
Style/StringConcatenation:
result = [-5, nil]
else
case message
- when "putway" then
+ when "putway"
orn = renumberednodes.dup
result = putway(renumberednodes, *args)
result[4] = renumberednodes.reject { |k, _v| orn.key?(k) }
result = putrelation(renumberednodes, renumberedways, *args)
when "deleteway"
result = deleteway(*args)
- when "putpoi" then
+ when "putpoi"
result = putpoi(*args)
renumberednodes[result[2]] = result[3] if result[0].zero? && result[2] != result[3]
when "startchangeset"
user.languages = params[:user][:languages].split(",")
case params[:avatar_action]
- when "new" then
+ when "new"
user.avatar.attach(params[:user][:avatar])
user.image_use_gravatar = false
- when "delete" then
+ when "delete"
user.avatar.purge_later
user.image_use_gravatar = false
- when "gravatar" then
+ when "gravatar"
user.avatar.purge_later
user.image_use_gravatar = true
end
##
# raised when user input couldn't be parsed
class APIBadUserInput < APIError
- def initialize(message)
- super message
- end
-
def status
:bad_request
end
##
# raised when bounding box is invalid
class APIBadBoundingBox < APIError
- def initialize(message)
- super message
- end
-
def status
:bad_request
end