[ rails ] reek in sublime

Install package

*** important ! even we have reek in the rvm

gem install reek

NOTE : you have to run this install in the right directory !!!

 

Sublime package

Install SublimeLinter-contrib-reek package

 

​​​​SublimeLinter-contrib-reek package read reek configuration from config.reek

Example : if our project uses `site.reek`

Tools > SublimeLinter > Open User Settings

SublimeLinter.sublime-settings

"linters": {
"reek": {
"@disable": false,
"args": ["-c", "/home/pong/Desktop/whatever_project/site.reek"],
"excludes": []
}

}

 

SublimeLinter Debug Tips

Tools > SublimeLinter > Debug mode

Then

View > Show Console

 

ref : https://packagecontrol.io/packages/SublimeLinter-contrib-reek ,

http://www.sublimelinter.com/en/latest/troubleshooting.html#debug-mode

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s