From 05b20e61c997055adb29a7e0422cfe9d3c84c6d0 Mon Sep 17 00:00:00 2001 From: Brian Bugh Date: Wed, 13 Jun 2018 15:40:00 -0500 Subject: [PATCH 1/2] Fixes Rubocop AllCops Exclude exact file names --- src/beautifiers/rubocop.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/beautifiers/rubocop.coffee b/src/beautifiers/rubocop.coffee index fd03f85..f15df96 100644 --- a/src/beautifiers/rubocop.coffee +++ b/src/beautifiers/rubocop.coffee @@ -62,7 +62,7 @@ module.exports = class Rubocop extends Beautifier rubocopArguments = [ "--auto-correct" "--force-exclusion" - "--stdin", "atom-beautify.rb" # filename is required but not used + "--stdin", fullPath or "atom-beautify.rb" # --stdin requires an argument ] exeOptions = { ignoreReturnCode: true, From d87b5af8c85b65c5293691d0461696f3d61d1100 Mon Sep 17 00:00:00 2001 From: Brian Bugh Date: Wed, 13 Jun 2018 15:44:53 -0500 Subject: [PATCH 2/2] Updated CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba0eec0..a09ae82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # 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 Rubocop not excluding files with an exact pattern match (`db/schema.rb` vs `db/**/*`) # v0.32.5 (2018-05-28) - Fixes an issue with Rubocop not working on Windows ([#2092](https://github.com/Glavin001/atom-beautify/issues/2092))