Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Add config to set Unicode handling on ruby -wc linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gracia authored and rebornix committed Apr 17, 2017
1 parent 9ba2381 commit 9c6ab8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lint/lib/linters/Ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ function RubyWC(opts) {
this.ext = "";
this.path = opts.path;
this.args = ["-wc"];

if(opts.unicode) {
this.args.push("-Ku");
}
}

RubyWC.prototype.processResult = function(data) {
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Enable each one in your workspace or user settings:

//advanced: set command line options for some linters:
"ruby.lint": {
"ruby": {
"unicode": true //Runs ruby -wc -Ku
},
"rubocop": {
"only": ["SpaceInsideBlockBraces", "LeadingCommentSpace"],
"lint": true,
Expand Down

0 comments on commit 9c6ab8e

Please sign in to comment.