Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PDK-1523) Refactor filesystem operations to use PDK::Util::Filesystem #799

Merged
merged 24 commits into from
Nov 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4d40bcd
(PDK-1523) Use PDK::Util::Filesystem.file? instead of File.file?
rodjek Nov 7, 2019
474468b
(PDK-1523) Use PDK::Util::Filesystem.exist? instead of File.exist?
rodjek Nov 7, 2019
0b213ab
(PDK-1523) Use PDK::Util::Filesystem.directory? instead of File.direc…
rodjek Nov 7, 2019
c07f95d
(PDK-1523) Use PDK::Util::Filesystem.mkdir_p instead of FileUtils.mkd…
rodjek Nov 7, 2019
e9e5eb6
(PDK-1523) Use PDK::Util::Filesystem.expand_path instead of File.expa…
rodjek Nov 7, 2019
a33ce34
(PDK-1523) Use PDK::Util::Filesystem.glob instead of Dir.glob
rodjek Nov 7, 2019
b0049db
(PDK-1523) Use PDK::Util::Filesystem.fnmatch? instead of File.fnmatch?
rodjek Nov 7, 2019
91fb507
(PDK-1523) Use PDK::Util::Filesystem.readable? instead of File.readable?
rodjek Nov 7, 2019
5650ecc
(PDK-1523) Use PDK::Util::Filesystem.rm instead of FileUtils.rm
rodjek Nov 7, 2019
4744eec
(PDK-1523) Use PDK::Util::Filesystem.read_file instead of File.read
rodjek Nov 8, 2019
add41f4
(PDK-1523) Use PDK::Util::Filesystem.zero? instead of File.zero?
rodjek Nov 8, 2019
b8a3cf4
(PDK-1523) Use PDK::Util::Filesystem.stat instead of File.stat
rodjek Nov 8, 2019
157f672
(PDK-1523) Use PDK::Util::Filesystem.directory? instead of Dir.exist?
rodjek Nov 8, 2019
543ad42
(PDK-1523) Use PDK::Util::Filesystem.glob instead of Dir.[]
rodjek Nov 8, 2019
d30783d
(PDK-1523) Use PDK::Util::Filesystem.{read_file,write_file} instead o…
rodjek Nov 11, 2019
2fce16a
(PDK-1523) Use PDK::Util::Filesystem.symlink? instead of File.symlink?
rodjek Nov 11, 2019
57ce8b1
(PDK-1523) Use PDK::Util::Filesystem.rm instead of File.delete
rodjek Nov 11, 2019
a805297
(PDK-1523) Use PDK::Util::Filesystem.rm_f instead of FileUtils.rm_f
rodjek Nov 11, 2019
5c8a364
(PDK-1523) Use PDK::Util::Filesystem.rm_rf instead of FileUtils.rm_rf
rodjek Nov 12, 2019
382b924
(PDK-1523) Use PDK::Util::Filesystem.cp instead of FileUtils.cp
rodjek Nov 12, 2019
e62c5b1
(PDK-1523) Use PDK::Util::Filesystem.mv instead of FileUtils.mv
rodjek Nov 12, 2019
61bb2fc
(PDK-1523) Use PDK::Util::Filesystem.rm_rf instead of FileUtils.remov…
rodjek Nov 12, 2019
a9edfe4
(PDK-1523) Use PDK::Util::Filesystem.remove_entry_secure instead of F…
rodjek Nov 12, 2019
d419c56
(maint) Remove unnecessary fileutils requires
rodjek Nov 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 119 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require: rubocop-rspec
require:
- rubocop-rspec
- ./ext/rubocop.rb
inherit_from: .rubocop_todo.yml

AllCops:
Expand Down Expand Up @@ -145,3 +147,119 @@ Style/SymbolArray:
# Enforce LF line endings, even when on Windows
Layout/EndOfLine:
EnforcedStyle: lf

PDK/FileFilePredicate:
Exclude:
- lib/pdk/util/filesystem.rb
- Gemfile

PDK/FileExistPredicate:
Exclude:
- Rakefile
- lib/pdk/util/filesystem.rb
- package-testing/Rakefile

PDK/FileDirectoryPredicate:
Exclude:
- lib/pdk/util/filesystem.rb

PDK/FileUtilsMkdirP:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/*
- rakelib/command_spec.rake

PDK/FileExpandPath:
Exclude:
- lib/pdk/util/filesystem.rb
- package-testing/**/*
- rakelib/*
- spec/spec_helper.rb
- spec/acceptance/**/*.rb
- pdk.gemspec

PDK/DirGlob:
Exclude:
- lib/pdk/util/filesystem.rb
- rakelib/command_spec.rake

PDK/FileFnmatchPredicate:
Exclude:
- lib/pdk/util/filesystem.rb

PDK/FileReadablePredicate:
Exclude:
- lib/pdk/util/filesystem.rb
- Gemfile

PDK/FileUtilsRm:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb

PDK/FileRead:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
- Gemfile
- spec/unit/pdk/util/filesystem_spec.rb

PDK/FileZeroPredicate:
Exclude:
- lib/pdk/util/filesystem.rb

PDK/FileStat:
Exclude:
- lib/pdk/util/filesystem.rb

PDK/DirExistPredicate:
Exclude:
- rakelib/*.rake

PDK/DirBrackets:
Exclude:
- pdk.gemspec
- spec/spec_helper_acceptance.rb
- spec/spec_helper.rb
- rakelib/*.rake
- package-testing/spec/spec_helper_package.rb

PDK/FileOpen:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/unit/pdk/util/filesystem_spec.rb
- Gemfile
- spec/acceptance/**/*.rb
- rakelib/*.rake
- package-testing/Rakefile

PDK/FileSymlinkPredicate:
Exclude:
- lib/pdk/util/filesystem.rb

PDK/FileUtilsRMF:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb

PDK/FileUtilsRMRF:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
- rakelib/*.rake
- spec/spec_helper_acceptance.rb

PDK/FileUtilsCP:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb

PDK/FileUtilsMV:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb

PDK/FileUtilsRemoveEntrySecure:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
Loading