mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
rubocop Style/AndOr style enabled
This commit is contained in:
parent
f8784fdcd8
commit
4aa1f0bf3a
3 changed files with 5 additions and 7 deletions
|
|
@ -88,6 +88,10 @@ Style/AlignHash:
|
|||
Style/AlignParameters:
|
||||
Enabled: true
|
||||
|
||||
# Use && instead of and, use || instead of or
|
||||
Style/AndOr:
|
||||
Enabled: true
|
||||
|
||||
AllCops:
|
||||
Include:
|
||||
- '**/Rakefile'
|
||||
|
|
|
|||
|
|
@ -7,12 +7,6 @@
|
|||
|
||||
|
||||
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Style/AndOr:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 1
|
||||
Style/BlockNesting:
|
||||
Max: 4
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class ApplicationController < ActionController::Base
|
|||
helper_method :date_string
|
||||
|
||||
def store_location
|
||||
session[:return_to] = request.fullpath if request.get? and controller_name != "user_sessions" and controller_name != "sessions"
|
||||
session[:return_to] = request.fullpath if request.get? && controller_name != "user_sessions" && controller_name != "sessions"
|
||||
end
|
||||
|
||||
def after_sign_in_path_for(resource)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue