Add and apply Style/RedundantArgument rubocop rule
This rule was added in rubocop 1.4.0.
This commit is contained in:
@@ -490,6 +490,9 @@ Style/Proc:
|
|||||||
Style/RaiseArgs:
|
Style/RaiseArgs:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
Style/RedundantArgument:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Style/RedundantCondition:
|
Style/RedundantCondition:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class Management::UsersController < Management::BaseController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def user_without_email
|
def user_without_email
|
||||||
new_password = "aAbcdeEfghiJkmnpqrstuUvwxyz23456789$!".split("").sample(10).join("")
|
new_password = "aAbcdeEfghiJkmnpqrstuUvwxyz23456789$!".split("").sample(10).join
|
||||||
@user.password = new_password
|
@user.password = new_password
|
||||||
@user.password_confirmation = new_password
|
@user.password_confirmation = new_password
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<% Setting.mime_types[group].each do |content_type, mime_type_value| %>
|
<% Setting.mime_types[group].each do |content_type, mime_type_value| %>
|
||||||
<span class="content-type">
|
<span class="content-type">
|
||||||
<%= check_box_tag content_type,
|
<%= check_box_tag content_type,
|
||||||
setting.value.split(" ").include?(mime_type_value),
|
setting.value.split.include?(mime_type_value),
|
||||||
setting.value.split(" ").include?(mime_type_value) %>
|
setting.value.split.include?(mime_type_value) %>
|
||||||
<%= label_tag content_type, content_type.upcase %>
|
<%= label_tag content_type, content_type.upcase %>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user