wohali commented on a change in pull request #1769: Add Credo to Elixir test 
suite
URL: https://github.com/apache/couchdb/pull/1769#discussion_r237355583
 
 

 ##########
 File path: Makefile
 ##########
 @@ -172,14 +172,18 @@ soak-eunit: couch
        while [ $$? -eq 0 ] ; do $(REBAR) -r eunit $(EUNIT_OPTS) ; done
 
 .PHONY: elixir
-elixir: elixir-check-formatted
+elixir: elixir-check-formatted elixir-credo
        @rm -rf dev/lib
        @dev/run -a adm:pass --no-eval test/elixir/run
 
 .PHONY: elixir-check-formatted
 elixir-check-formatted:
        @cd test/elixir/ && mix format --check-formatted
 
+.PHONY: elixir-credo
+elixir-credo:
+       @cd test/elixir/ && mix deps.get && mix credo
+
 
 Review comment:
   A concern I have is that credo is formatting the code. It shouldn't do a 
format - it should be doing a check, and failing if the code doesn't pass the 
check. This is in keeping with the philosophy that a `make check` run is a 
pass/fail thing, it shouldn't have side effects.
   
   A separate target that actually does the change would be useful.
   
   See apache/couchdb#1776 for what I did on a similar Python PR (inspired by 
you here!)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to