Skip to content

Commit 1f41448

Browse files
committed
Appease rubocop
1 parent 1fb35f1 commit 1f41448

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Diff for: .rubocop.yml

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Layout/ExtraSpacing:
3131
Layout/EndOfLine:
3232
EnforcedStyle: lf
3333

34+
Layout/EndAlignment:
35+
EnforcedStyleAlignWith: start_of_line
36+
37+
Layout/CaseIndentation:
38+
EnforcedStyle: end
39+
3440
Metrics/LineLength:
3541
Description: Limit lines to 80 characters.
3642
StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits

Diff for: lib/arduino_ci/arduino_installation.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ def autolocate!(output = $stdout)
110110
# Forcibly install Arduino from the web
111111
# @return [bool] Whether the command succeeded
112112
def force_install(output = $stdout, version = DESIRED_ARDUINO_IDE_VERSION)
113-
worker_class = case Host.os
114-
when :osx then ArduinoDownloaderOSX
115-
when :windows then ArduinoDownloaderWindows
116-
when :linux then ArduinoDownloaderLinux
117-
end
113+
worker_class = case Host.os
114+
when :osx then ArduinoDownloaderOSX
115+
when :windows then ArduinoDownloaderWindows
116+
when :linux then ArduinoDownloaderLinux
117+
end
118118
worker = worker_class.new(version, output)
119119
worker.execute
120120
end

Diff for: lib/arduino_ci/cpp_library.rb

-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ def code_files_in(some_dir, extensions)
170170
raise ArgumentError, 'some_dir is not a Pathname' unless some_dir.is_a? Pathname
171171
return [] unless some_dir.exist? && some_dir.directory?
172172

173-
real = some_dir.realpath
174173
files = some_dir.realpath.children.reject(&:directory?)
175174
cpp = files.select { |path| extensions.include?(path.extname.downcase) }
176175
not_hidden = cpp.reject { |path| path.basename.to_s.start_with?(".") }

0 commit comments

Comments
 (0)