Your environment
vscode-ruby version: 0.10.4
- Ruby version: 2.2.1
- VS Code version: 1.10.1
- Operating System: macOS 10.11.2
Expected behavior
Ruby reek linter uses the directory directive configurations.
Actual behavior
Ruby reek linter is ignore directive directory configurations.
Steps to reproduce the problem
- Initialize a new rails application
- Add a
.reek configuration file in the project root folder with the following content:
"app/controllers":
IrresponsibleModule:
enabled: false
- The IrresponsibleModule rule is highlighted in the controller
Theory
I think the cause is that each file is being linted individually without reek knowing the context of its root directory? I don't know how to debug the extension so I can't dig any further.
The following command works as expected:
/my_project_root $ reek app/controllers
The following command doesn't pickup the directory directives:
/my_project_root/app $ reek controllers
PS: Thank for building this extension, it's great!!!
Your environment
vscode-rubyversion: 0.10.4Expected behavior
Ruby reek linter uses the directory directive configurations.
Actual behavior
Ruby reek linter is ignore directive directory configurations.
Steps to reproduce the problem
.reekconfiguration file in the project root folder with the following content:Theory
I think the cause is that each file is being linted individually without reek knowing the context of its root directory? I don't know how to debug the extension so I can't dig any further.
The following command works as expected:
/my_project_root $ reek app/controllersThe following command doesn't pickup the directory directives:
/my_project_root/app $ reek controllersPS: Thank for building this extension, it's great!!!