Skip to content

Commit 49ef446

Browse files
committed
lint
1 parent a7cb545 commit 49ef446

File tree

19 files changed

+18
-245
lines changed

19 files changed

+18
-245
lines changed

.standard_todo.yml

Lines changed: 0 additions & 242 deletions
This file was deleted.

app/controllers/all_casa_admins/sessions_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
class AllCasaAdmins::SessionsController < Devise::SessionsController
44
include Accessible
5+
56
skip_before_action :check_user, only: :destroy
67
end

app/controllers/casa_cases_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def case_contact_csv_name(case_contacts)
184184
casa_case_number = case_contacts&.first&.casa_case&.case_number
185185
current_date = Time.now.strftime("%Y-%m-%d")
186186

187-
"#{casa_case_number.nil? ? "" : casa_case_number + "-"}case-contacts-#{current_date}.csv"
187+
"#{casa_case_number + "-" unless casa_case_number.nil?}case-contacts-#{current_date}.csv"
188188
end
189189

190190
def court_date_unknown?

app/controllers/emancipation_checklists_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class EmancipationChecklistsController < ApplicationController
22
include DateHelper
3+
34
before_action :require_organization!
45
after_action :verify_authorized
56

app/controllers/imports_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ class ImportsController < ApplicationController
22
require "csv"
33

44
include ActionView::Helpers::UrlHelper
5+
56
before_action :failed_csv_service, only: [:create, :download_failed]
67
after_action :verify_authorized
78

app/controllers/users/sessions_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
class Users::SessionsController < Devise::SessionsController
44
include Accessible
5+
56
skip_before_action :check_user, only: :destroy
67
end

app/datatables/volunteer_datatable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def transition_aged_youth_filter
166166
filter = additional_filters[:transition_aged_youth]
167167

168168
bool_filter filter do
169-
"transition_aged_youth_cases.volunteer_id IS #{(filter[0] == "true") ? "NOT" : nil} NULL"
169+
"transition_aged_youth_cases.volunteer_id IS #{"NOT" if filter[0] == "true"} NULL"
170170
end
171171
}.call
172172
end

app/decorators/contact_type_decorator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class ContactTypeDecorator < Draper::Decorator
22
include ActionView::Helpers::DateHelper
3+
34
delegate_all
45

56
def hash_for_multi_select_with_cases(casa_case_ids)

app/helpers/phone_number_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ def valid_phone_number(number)
3434
end
3535

3636
def strip_unnecessary_characters(number)
37-
number.gsub(/[()\+\s\-\.]/, "")
37+
number.gsub(/[()+\s\-.]/, "")
3838
end
3939
end

app/models/casa_org.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class CasaOrg < ApplicationRecord
22
prepend ActiveSupport::ToJsonWithActiveSupportEncoder
3+
34
# NOTE: location of the default report template
45
CASA_DEFAULT_COURT_REPORT = File.new(Rails.root.join("app/documents/templates/default_report_template.docx"), "r")
56
CASA_DEFAULT_LOGO = Rails.public_path.join("logo.jpeg")

0 commit comments

Comments
 (0)