Merge pull request #2165 from bbugh/fix-rubocop-exact-file-exclude

Fix rubocop exact file exclude
This commit is contained in:
Steven Zeck 2018-06-16 18:25:14 -05:00 committed by GitHub
commit 43bf23f2a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Next # Next
- Fixes an issue where Atom Beautify would display a Docker error instead of an executable error ([#2146](https://github.com/Glavin001/atom-beautify/issues/2146)) - Fixes an issue where Atom Beautify would display a Docker error instead of an executable error ([#2146](https://github.com/Glavin001/atom-beautify/issues/2146))
- Fixes Rubocop not excluding files with an exact pattern match (`db/schema.rb` vs `db/**/*`)
# v0.32.5 (2018-05-28) # v0.32.5 (2018-05-28)
- Fixes an issue with Rubocop not working on Windows ([#2092](https://github.com/Glavin001/atom-beautify/issues/2092)) - Fixes an issue with Rubocop not working on Windows ([#2092](https://github.com/Glavin001/atom-beautify/issues/2092))

View File

@ -62,7 +62,7 @@ module.exports = class Rubocop extends Beautifier
rubocopArguments = [ rubocopArguments = [
"--auto-correct" "--auto-correct"
"--force-exclusion" "--force-exclusion"
"--stdin", "atom-beautify.rb" # filename is required but not used "--stdin", fullPath or "atom-beautify.rb" # --stdin requires an argument
] ]
exeOptions = { exeOptions = {
ignoreReturnCode: true, ignoreReturnCode: true,