discourse/lib/autospec
David Taylor 9fea43e46a
DEV: Remove use of `cd` in the app (#8337)
`FileUtils.cd` and `Dir.chdir` cause the working directory to change for the entire process. We run sidekiq jobs, hijacked requests and deferred jobs in threads, which can make working directory changes have unintended side-effects.

- Add a rubocop rule to warn about usage of Dir.chdir and FileUtils.cd
- Added rubocop:disable for scripts used outside the app
- Refactored code using cd to use alternative methods
- Temporarily skipped the rubocop check for lib/backup_restore. This will require more complex refactoring, so I will create a separate PR for review
2019-11-13 09:57:39 +00:00
..
base_runner.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
formatter.rb DEV: Add a new way to run specs in parallel with better output (#7778) 2019-06-21 10:59:01 +10:00
manager.rb DEV: Abort autospec on [ENTER], even if no specs have failed (#8320) 2019-11-08 14:23:12 +00:00
qunit_runner.rb DEV: autospec chrome check was failing on macOS (#7649) 2019-05-30 12:09:01 +02:00
reload_css.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
rspec_runner.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
simple_runner.rb DEV: Remove use of `cd` in the app (#8337) 2019-11-13 09:57:39 +00:00