# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Layout/IndentFirstArrayElement:
Exclude:
- - 'app/models/project.rb'
- 'app/models/setting.rb'
- 'lib/redmine/nested_set/issue_nested_set.rb'
- 'lib/redmine/nested_set/project_nested_set.rb'
# The earliest start date of a project, based on it's issues and versions
def start_date
- @start_date ||= [
- issues.minimum('start_date'),
- shared_versions.minimum('effective_date'),
- Issue.fixed_version(shared_versions).minimum('start_date')
- ].compact.min
+ @start_date ||=
+ [
+ issues.minimum('start_date'),
+ shared_versions.minimum('effective_date'),
+ Issue.fixed_version(shared_versions).minimum('start_date')
+ ].compact.min
end
# The latest due date of an issue or version
def due_date
- @due_date ||= [
- issues.maximum('due_date'),
- shared_versions.maximum('effective_date'),
- Issue.fixed_version(shared_versions).maximum('due_date')
- ].compact.max
+ @due_date ||=
+ [
+ issues.maximum('due_date'),
+ shared_versions.maximum('effective_date'),
+ Issue.fixed_version(shared_versions).maximum('due_date')
+ ].compact.max
end
def overdue?