File tree Expand file tree Collapse file tree 8 files changed +5
-11
lines changed Expand file tree Collapse file tree 8 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -265,3 +265,7 @@ Style/YodaExpression:
265
265
Enabled : false
266
266
Metrics/BlockLength :
267
267
Max : 36
268
+ Lint/RedundantRequireStatement :
269
+ Enabled : true # Let RuboCop remove truly redundant requires
270
+ Rails/WhereRange :
271
+ Enabled : true # Modern Rails range syntax is cleaner and equivalent
Original file line number Diff line number Diff line change 6
6
7
7
require 'addressable/uri'
8
8
require 'net/http'
9
- require 'set'
10
9
11
10
# rubocop:disable Metrics/ClassLength
12
11
class ProjectsController < ApplicationController
Original file line number Diff line number Diff line change 13
13
# the Detective INPUTS and OUTPUTS to determine what order to run, and
14
14
# run them in parallel in an appropriate order.
15
15
16
- require 'set'
17
-
18
16
# rubocop:disable Metrics/ClassLength
19
17
class Chief
20
18
# Confidence level (1..5) where automation result will *override*
Original file line number Diff line number Diff line change 6
6
7
7
# Determine if project sites support HTTPS
8
8
9
- require 'set'
10
-
11
9
class HardenedSitesDetective < Detective
12
10
# All of the security-hardening headers that need to be present to pass.
13
11
# They're listed in the same order as the criteria text.
Original file line number Diff line number Diff line change 4
4
# OpenSSF Best Practices badge contributors
5
5
# SPDX-License-Identifier: MIT
6
6
7
- require 'set'
8
-
9
7
# rubocop: disable Metrics/ClassLength
10
8
class Badge
11
9
ACCEPTABLE_PERCENTAGES = ( 0 ..99 ) . to_a . freeze
Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ def self.projects_to_remind
536
536
. where ( 'badge_percentage_0 < 100' )
537
537
. where ( 'lost_passing_at IS NULL OR lost_passing_at < ?' ,
538
538
LOST_PASSING_REMINDER . days . ago )
539
- . where ( ' projects.updated_at < ?' , LAST_UPDATED_REMINDER . days . ago )
539
+ . where ( projects : { updated_at : ... LAST_UPDATED_REMINDER . days . ago } )
540
540
. where ( 'last_reminder_at IS NULL OR last_reminder_at < ?' ,
541
541
LAST_SENT_REMINDER . days . ago )
542
542
. joins ( :user ) . references ( :user ) # Need this to check email address
Original file line number Diff line number Diff line change 8
8
9
9
# This assumes that "ClientIp.acquire" works correctly.
10
10
11
- require 'set'
12
-
13
11
# Use recommended format of Rack::Attack config
14
12
# rubocop: disable Style/ClassAndModuleChildren
15
13
# rubocop: disable Style/IfUnlessModifier, Style/MethodCalledOnDoEndBlock
Original file line number Diff line number Diff line change 5
5
# SPDX-License-Identifier: MIT
6
6
7
7
require 'test_helper'
8
- require 'set'
9
8
10
9
# rubocop:disable Metrics/ClassLength
11
10
class CriteriaTest < ActiveSupport ::TestCase
You can’t perform that action at this time.
0 commit comments