-
-
Notifications
You must be signed in to change notification settings - Fork 518
lint #6732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
lint #6732
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -184,7 +184,7 @@ def case_contact_csv_name(case_contacts) | |||||
| casa_case_number = case_contacts&.first&.casa_case&.case_number | ||||||
| current_date = Time.now.strftime("%Y-%m-%d") | ||||||
|
||||||
| current_date = Time.now.strftime("%Y-%m-%d") | |
| current_date = Time.current.strftime("%Y-%m-%d") |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,5 +2,6 @@ | |||||||
|
|
||||||||
| class Users::SessionsController < Devise::SessionsController | ||||||||
| include Accessible | ||||||||
|
|
||||||||
| skip_before_action :check_user, only: :destroy | ||||||||
|
||||||||
| skip_before_action :check_user, only: :destroy | |
| skip_before_action :check_user | |
| before_action :check_user, except: :destroy |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,7 +166,7 @@ def transition_aged_youth_filter | |
| filter = additional_filters[:transition_aged_youth] | ||
|
|
||
| bool_filter filter do | ||
| "transition_aged_youth_cases.volunteer_id IS #{(filter[0] == "true") ? "NOT" : nil} NULL" | ||
| "transition_aged_youth_cases.volunteer_id IS #{"NOT" if filter[0] == "true"} NULL" | ||
| end | ||
|
Comment on lines
168
to
170
|
||
| }.call | ||
| end | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,6 @@ def valid_phone_number(number) | |
| end | ||
|
|
||
| def strip_unnecessary_characters(number) | ||
| number.gsub(/[()\+\s\-\.]/, "") | ||
| number.gsub(/[()+\s\-.]/, "") | ||
| end | ||
|
Comment on lines
36
to
38
|
||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| class ExampleRecurringTask | ||
| include Delayed::RecurringJob | ||
|
|
||
| run_every 1.day | ||
| run_at "11:00am" | ||
| timezone "US/Pacific" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With
.standard_todo.ymlremoved, this controller will still triggerRails/LexicallyScopedActionFilterbecause it usesskip_before_actionwithonly:. Refactor to avoid lexically scoped skipping (e.g.,skip_before_action :check_userand then re-addbefore_action :check_user, except: :destroy, or move the condition into the originalcheck_usercallback).