Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

make rubocop happy

Klaus Zanders589bba4feeba
diff --git a/modules/costs/app/models/time_entry.rb b/modules/costs/app/models/time_entry.rb
index 9984922099c..501d8fad8f1 100644
--- a/modules/costs/app/models/time_entry.rb
+++ b/modules/costs/app/models/time_entry.rb
@@ -125,7 +125,7 @@ class TimeEntry < ApplicationRecord
(user_id == usr.id && usr.allowed_in_project?(:view_own_hourly_rate, project))
end
- def start_timestamp
+ def start_timestamp # rubocop:disable Metrics/AbcSize
return nil if start_time.blank?
return nil if time_zone.blank?
return nil if spent_on.blank?
diff --git a/modules/costs/app/services/time_entries/set_attributes_service.rb b/modules/costs/app/services/time_entries/set_attributes_service.rb
index 08a513ba65e..8742c1fb1d2 100644
--- a/modules/costs/app/services/time_entries/set_attributes_service.rb
+++ b/modules/costs/app/services/time_entries/set_attributes_service.rb
@@ -30,7 +30,7 @@ module TimeEntries
class SetAttributesService < ::BaseServices::SetAttributes
private
- def set_attributes(_attributes)
+ def set_attributes(_attributes) # rubocop:disable Metrics/AbcSize
model.attributes = params
##