lpil / dogma

:closed_lock_with_key: A code style linter for Elixir
Other
471 stars 52 forks source link

Configuration and ignoring via comments #219

Closed sobolevn closed 6 years ago

sobolevn commented 8 years ago

I have seen, that dogma has a mechanism to extract all comments from a source files: https://hexdocs.pm/dogma/Dogma.Util.Comment.html

The question is, how do we suppose to use it? I could not find any docs about it.

The way I used to do it (coming from pylint, eslint and shellcheck):

  1. Configuration for all file in the header
  2. Configuration for a single line as an inline comment (because sometimes you have to break the rules)

Thanks!

lpil commented 8 years ago

I'd like the inline comment feature :)

scouten commented 8 years ago

+1!