Skip to content

Commit

Permalink
update packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
misogi committed Dec 16, 2015
1 parent a2b1f92 commit 6e3c77d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
11 changes: 9 additions & 2 deletions README.md
@@ -1,8 +1,14 @@
# README

This is extension for Visual Studio Code.

Visual Studio Code 上で rubocop を実行します。

execute rubocop on Visual Studio Code
execute rubocop
- by execute command "Ruby: execute rubocop" (press F1)
- on Saving .rb file

![exec on save](./images/onsave.gif)

# Configuration

Expand All @@ -17,4 +23,5 @@ Speciry to config ruby.rubocop.executePath

# todo

- more configurable command line option (like -R)
- more configurable command line option (like -R)
- integration with rbenv
Binary file added images/onsave.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/rubocop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ruby-rubocop",
"version": "0.1.2",
"version": "0.1.3",
"publisher": "misogi",
"displayName": "ruby-rubocop",
"description": "execute rubocop for code. press F1 and type rubocop",
Expand Down
3 changes: 2 additions & 1 deletion src/rubocop.ts
Expand Up @@ -50,8 +50,9 @@ export class Rubocop {
const range = new vscode.Range(
loc.line - 1, loc.column - 1, loc.line - 1, loc.length + loc.column - 1);
const sev = this.severity(offence.severity);
const message = `${offence.message} (${offence.severity}:${offence.cop_name})`;
const diagnostic = new vscode.Diagnostic(
range, offence.message, sev);
range, message, sev);
diagnostics.push(diagnostic);
});
entries.push([url, diagnostics]);
Expand Down

0 comments on commit 6e3c77d

Please sign in to comment.