Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

How to actually set up linter? #6

Open
kirylrb opened this issue Jul 13, 2018 · 5 comments
Open

How to actually set up linter? #6

kirylrb opened this issue Jul 13, 2018 · 5 comments

Comments

@kirylrb
Copy link

kirylrb commented Jul 13, 2018

Please help to setup plugin, documenttion of Sublime Linter is not obvious.

✗ which reek
/Users/codequest_user/.rbenv/shims/reek

Sublime Linter settings:

// SublimeLinter Settings - User
{

"linters": {
		"reek": {
		"@disable": false,
					"args": ["-c", "~/.rbenv/shims/rbenv"],
					"ENV": "~/.rbenv/shims/rbenv",
					"excludes": []
		}
 
},

	"paths": {
		"osx": [
			"~/.rbenv/shims"
		]
	}
}

And that's not working. Any help, please?

@kirylrb
Copy link
Author

kirylrb commented Sep 3, 2018

@kruszczynski
Copy link
Contributor

I haven't used the extension in a while now but it seems like:
"args": ["-c", "~/.rbenv/shims/rbenv"],
should be more like
"args": ["-c", "~/.rbenv/shims/reek"],
Let me know if it works!

@kirylrb
Copy link
Author

kirylrb commented Sep 3, 2018

@kruszczynski

SublimeLinter: WARNING: reek output:
Error: We found some problems with your configuration file: [/] 'set -e [ -n "$RBENV_DEBUG" ] && set -x\nprogram="${0##*/}" if [ "$program" = "ruby" ]; then for arg; do case "$arg" in -e* | -- ) break ;; */* ) if [ -f "$arg" ]; then export RBENV_DIR="${arg%/*}" break fi ;; esac done fi\nexport RBENV_ROOT="/Users/kiryl/.rbenv" exec "/usr/local/Cellar/rbenv/1.1.1/libexec/rbenv" exec "$program" "$@"': not a mapping.

Now I got an error with such configuration:

// SublimeLinter Settings - User
{

"linters": {
		"reek": {
		"@disable": false,
					"args": ["-c", "~/.rbenv/shims/reek"],
					"ENV": "~/.rbenv/shims",
					"excludes": []
		}
 
},

	"paths": {
		"osx": [
			"~/.rbenv/shims"
		]
	}
}

@kirylrb
Copy link
Author

kirylrb commented Sep 11, 2018

@kruszczynski Could you comment this settings? Something wrong unfortunately

@kruszczynski
Copy link
Contributor

@kirylpl I don't know, sorry, looks to me like an issue with your Ruby installation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants