Closed revolter closed 3 years ago
Currently, if you're using the directory option, after calling a lint method on this plugin, the current directory remains changed to the specified value, even for other plugins.
directory
It is caused by this line:
https://github.com/ashfurrow/danger-ruby-swiftlint/blob/d1ac19bbe5a518b7bd5f343aeea84c5df6e2e2c3/ext/swiftlint/swiftlint.rb#L12
A workaround for this is:
current_dir = Dir.pwd() swiftlint.directory = 'MyDirectory' swiftlint.lint_files Dir.chdir(current_dir)
(Moved from https://github.com/ashfurrow/danger-swiftlint/issues/4)
Currently, if you're using the
directory
option, after calling a lint method on this plugin, the current directory remains changed to the specified value, even for other plugins.It is caused by this line:
https://github.com/ashfurrow/danger-ruby-swiftlint/blob/d1ac19bbe5a518b7bd5f343aeea84c5df6e2e2c3/ext/swiftlint/swiftlint.rb#L12
A workaround for this is:
(Moved from https://github.com/ashfurrow/danger-swiftlint/issues/4)