Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9785300

Browse files
committedApr 22, 2022
Fix newest rubocop complaints
1 parent 1323c82 commit 9785300

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed
 

Diff for: ‎.rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
Layout/IndentationWidth:
1313
Width: 4
14-
IgnoredPatterns: ['^\s*module']
14+
AllowedPatterns: ['^\s*module']
1515

1616
Layout/LineLength:
1717
Max: 100

Diff for: ‎common/tests/test.rb

-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88
class Test
99
INDENT = ' '
1010

11-
# rubocop:disable Style/RedundantInitialize
1211
def initialize
1312
# Template instance variables.
1413
# @test_name
1514
# @test_description
1615
# @test_output
1716
# @test_error
1817
end
19-
# rubocop:enable Style/RedundantInitialize
2018

2119
private
2220

Diff for: ‎utils/devtool.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ def test_integration(bsp)
9494
private
9595

9696
def boot_test?
97-
Dir.exist?("#{@folder}/tests")
97+
Dir.exist?("#{@folder}/kernel/tests")
9898
end
9999

100100
def unit_integration_tests?
101-
!Dir.glob("#{@folder}/tests/00_*.rs").empty?
101+
!Dir.glob("#{@folder}/kernel/tests/00_*.rs").empty?
102102
end
103103
end
104104

@@ -233,7 +233,7 @@ def ready_for_publish
233233
SUPPORTED_BSPS = %w[rpi3 rpi4].freeze
234234

235235
def bsp_from_env
236-
bsp = ENV['BSP']
236+
bsp = ENV.fetch('BSP', nil)
237237

238238
return bsp if SUPPORTED_BSPS.include?(bsp)
239239

0 commit comments

Comments
 (0)
Please sign in to comment.