1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Suppress RuboCop false positive for Security/Open (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@22862 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2024-06-06 01:20:23 +00:00
parent 8e7dce288b
commit c1335f5126
2 changed files with 1 additions and 5 deletions

View File

@ -802,10 +802,6 @@ Security/IoMethods:
- 'test/functional/mail_handler_controller_test.rb'
- 'test/unit/mail_handler_test.rb'
Security/Open:
Exclude:
- 'app/models/version.rb'
# This cop supports unsafe autocorrection (--autocorrect-all).
Security/YAMLLoad:
Exclude:

View File

@ -106,7 +106,7 @@ module FixedIssuesExtension
@issues_progress[open] ||= begin
progress = 0
if count > 0
done = open(open).sum do |c|
done = self.open(open).sum do |c|
estimated = c.total_estimated_hours.to_f
estimated = estimated_average unless estimated > 0.0
ratio = c.closed? ? 100 : (c.done_ratio || 0)