Fix newest rubocop complaints

pull/158/head
Andre Richter 2 years ago
parent 1323c8245b
commit 9785300ab4
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -11,7 +11,7 @@
Layout/IndentationWidth:
Width: 4
IgnoredPatterns: ['^\s*module']
AllowedPatterns: ['^\s*module']
Layout/LineLength:
Max: 100

@ -8,7 +8,6 @@
class Test
INDENT = ' '
# rubocop:disable Style/RedundantInitialize
def initialize
# Template instance variables.
# @test_name
@ -16,7 +15,6 @@ class Test
# @test_output
# @test_error
end
# rubocop:enable Style/RedundantInitialize
private

@ -94,11 +94,11 @@ class TutorialCrate
private
def boot_test?
Dir.exist?("#{@folder}/tests")
Dir.exist?("#{@folder}/kernel/tests")
end
def unit_integration_tests?
!Dir.glob("#{@folder}/tests/00_*.rs").empty?
!Dir.glob("#{@folder}/kernel/tests/00_*.rs").empty?
end
end
@ -233,7 +233,7 @@ class DevTool
SUPPORTED_BSPS = %w[rpi3 rpi4].freeze
def bsp_from_env
bsp = ENV['BSP']
bsp = ENV.fetch('BSP', nil)
return bsp if SUPPORTED_BSPS.include?(bsp)

Loading…
Cancel
Save