If the linting can be auto-fixed on pre-commit, it's valuable. It removes negative nit comments that may deter people from contributing. If they can't be fixed with a linter, I'd question the validity of the style preference from outside--and instead defer any linting failures to be fixed by regular contributors.
This is why I love the Elixir formatter. When you run it, it automatically fixes any offenses. You can add it as a pre-commit hook and your work will always be formatted. You can also run a check on CI to make sure all code is formatted.
I like that it is really opinionated and not really configurable. It gives you a style guide for the entire Elixir ecosystem.
Iโd wish there was something like this for Ruby. Rubocop can be such a pain...
I've heard about Prettier before, but it is still not quite the same as the Elixir formatter. For Elixir, it is a part of the language, and many libraries use it. This means that there is a cohesiveness in most Elixir codebases.
Ruby, while it does have some efforts, does not have a formatter as a core part of the language.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If the linting can be auto-fixed on pre-commit, it's valuable. It removes negative nit comments that may deter people from contributing. If they can't be fixed with a linter, I'd question the validity of the style preference from outside--and instead defer any linting failures to be fixed by regular contributors.
This is why I love the Elixir formatter. When you run it, it automatically fixes any offenses. You can add it as a pre-commit hook and your work will always be formatted. You can also run a check on CI to make sure all code is formatted.
I like that it is really opinionated and not really configurable. It gives you a style guide for the entire Elixir ecosystem.
Iโd wish there was something like this for Ruby. Rubocop can be such a pain...
Check out Prettierโs Ruby plugin:
github.com/prettier/plugin-ruby
I've heard about Prettier before, but it is still not quite the same as the Elixir formatter. For Elixir, it is a part of the language, and many libraries use it. This means that there is a cohesiveness in most Elixir codebases.
Ruby, while it does have some efforts, does not have a formatter as a core part of the language.