Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make options for credo configurable #2337

Conversation

adam-e-trepanier
Copy link
Contributor

@adam-e-trepanier adam-e-trepanier commented Mar 6, 2019

Add credo --strict option

If a user sets 'let g:ale_elixir_credo_strict=1' it will run credo with --strict instead of suggest. The default (0) is to run as suggest.

ToC and doc file updated however I can't seem to get the tests to pass for the ToC, not sure what I am doing wrong. Any help would be appreciated.

Closes #2335

Adam Trepanier added 5 commits March 6, 2019 16:38
If a user sets 'let g:ale_elixir_credo_strict=1' it will run credo with
--strict instead of suggest.  The defaul t(0) is to run as suggest.
@adam-e-trepanier
Copy link
Contributor Author

adam-e-trepanier commented Mar 7, 2019

Fixed the issue. @w0rp please let me now if you require any changes.

@w0rp w0rp changed the title 2335 make options for credo configurable make options for credo configurable Mar 8, 2019
Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me. Add tests for this. See :help ale-development.

ale_linters/elixir/credo.vim Outdated Show resolved Hide resolved
Adam Trepanier added 8 commits March 9, 2019 11:13
Went back to ':help ale-testing' and found that I can run ./run_test
<filename> which helped pinpoint the issue with my vader test.

Needed to set the filename for the a mix project which already existed
in the test data.  Also used the  ale#path#Simply function to get the
correct directory of where the command would be executed.
@w0rp w0rp merged commit a22ab78 into dense-analysis:master Mar 11, 2019
@w0rp
Copy link
Member

w0rp commented Mar 11, 2019

Cheers! 🍻

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

Successfully merging this pull request may close these issues.

None yet

2 participants