van-mronov commented on issue #1756: Adopt Credo inside Elixir test suite
URL: https://github.com/apache/couchdb/issues/1756#issuecomment-441913045
 
 
   Hi, all!
   
   Since version 1.6 elixir provides built-in code formatter which refers most 
of code style issues.
   The goal of the formatter is to automate the styling of codebases into a 
unique and consistent layout used across teams and the whole community.
   
   It has several options useful for CI and development:
   `--check-formatted` - checks that the file is already formatted.
   `--check-equivalent` - checks if the files after formatting have the same 
AST as before formatting. If the ASTs are not equivalent, it is a bug in the 
code formatter. This option is recommended if you are automatically formatting 
files.
   
   If any of the --check-* flags are given and a check fails, the formatted 
contents won’t be written to disk nor printed to standard output.
   
   So, perhaps, it make sense to adopt formatter firstly.
   
   Ref.: https://hexdocs.pm/mix/Mix.Tasks.Format.html#content

----------------------------------------------------------------
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