Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9785300

Browse files
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

‎.rubocop.yml

Lines changed: 1 addition & 1 deletion
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

‎common/tests/test.rb

Lines changed: 0 additions & 2 deletions
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

‎utils/devtool.rb

Lines changed: 3 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /