Skip to content

Commit 929c7a9

Browse files
committed
Ignore dotfiles when aggregating CPP files for compilation
1 parent 520d4e1 commit 929c7a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2626
### Fixed
2727
- OSX splash screen re-disabled
2828
- ArduinoCITable didn't initialize its size on `clear()`
29+
- CPP file aggregation now ignores dotfiles
2930

3031
### Security
3132

lib/arduino_ci/cpp_library.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def cpp_files_in(some_dir)
6060
return [] unless File.exist?(some_dir)
6161
real = File.realpath(some_dir)
6262
files = Find.find(real).reject { |path| File.directory?(path) }
63-
ret = files.select { |path| CPP_EXTENSIONS.include?(File.extname(path)) }
64-
ret
63+
cpp = files.select { |path| CPP_EXTENSIONS.include?(File.extname(path)) }
64+
cpp.reject { |path| File.basename(path).start_with?(".") } # ignore hidden
6565
end
6666

6767
# CPP files that are part of the project library under test

0 commit comments

Comments
 (0)