Merge pull request #1685 from swhitt/fix-rubocop
Add `.rb` to temp files passed to `rubocop`
This commit is contained in:
commit
3001d312c7
|
@ -1,4 +1,5 @@
|
|||
# Next
|
||||
- Fix [#1652](https://github.com/Glavin001/atom-beautify/issues/1652) and [#1653](https://github.com/Glavin001/atom-beautify/issues/1653). Add `.rb` to temp files passed in to the `rubocop` executable so they are not excluded.
|
||||
- ...
|
||||
|
||||
# v0.29.26 (2017-05-28)
|
||||
|
|
|
@ -51,7 +51,7 @@ module.exports = class Rubocop extends Beautifier
|
|||
@run(rubocopPath, [
|
||||
"--auto-correct"
|
||||
"--config", configFile
|
||||
tempFile = @tempFile("temp", text)
|
||||
tempFile = @tempFile("temp", text, '.rb')
|
||||
], {ignoreReturnCode: true})
|
||||
.then(=>
|
||||
@readFile(tempFile)
|
||||
|
@ -60,7 +60,7 @@ module.exports = class Rubocop extends Beautifier
|
|||
@run("rubocop", [
|
||||
"--auto-correct"
|
||||
"--config", configFile
|
||||
tempFile = @tempFile("temp", text)
|
||||
tempFile = @tempFile("temp", text, '.rb')
|
||||
], {ignoreReturnCode: true})
|
||||
.then(=>
|
||||
@readFile(tempFile)
|
||||
|
|
Loading…
Reference in New Issue