Skip to content

ahmadseleem/linter-ruby-reek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linter-Ruby-Reek = LRR

LRR: A neat Linter for Ruby files.

Using Reek Ruby gem: a tool that examines Ruby classes, modules and methods.

∑ ∑ Reports any code SMELLS it detects. ∑ ∑

We use The interface of the beautifull Linter to prived the neet features of Reek.

Installation

dependencies:

1 - Linter package. To install Linter: Linter.

2 - Reek gem. Make ensure that reek is installed on your system.

== To install reek, do the following:

gem install reek

Executable Path

Add reek path:

  • Up here in the settings panel

or

  • here: ~/.atom/config.cson (choose Open Your Config in Atom menu).
"linter-ruby-reek":
  executablePath: "/path/to/your/reek/here"
  • Run which reek to find the path or run rbenv which reek for rbenv users.
  • If you don't, reek will be the default settings.

Reek Configuration Path

Add reek configuration path (if it's not default config.reek):

  • Up here in the settings panel

or

  • here: ~/.atom/config.cson (choose Open Your Config in Atom menu).
"linter-ruby-reek":
  configPath: "test.reek"

NOTE - 1:

  • Open atom from the terminal if you don't see the linter working, it's Atom doesn't see the path sometimes unless opened from the terminal. I'm working to find the best way to avoid this issues BUT, maybe you should add the Path in ~/.atom/config.cson in that order:
    1. "linter-ruby":
    2. "linter-reek":
    3. linter: I have to test that and see...

NOTE - 2:

  • Please, note that reek only provides line numbers for errors, for now. So, columns are set to 1 as default.

Enjoy it! ;)

Thank you! @ahmadSeleem