-
Notifications
You must be signed in to change notification settings - Fork 38
Home
Vitalii Elenhaupt edited this page Apr 14, 2019
·
32 revisions
- Useless assignments
- Unused arguments
- Shadowed argument
- Shadowing outer variable
- Duplicated method
- Unneeded private method
- Unreachable code
- Redundant
.with_index
,.with_object
,each_with_index
,each_with_object
- Expression in a void context
- Unnecessary return
- Unnecessary if-else/return true/false
- ...
- Show end location of the error (
node.end_location
) - Add an option to display affected code in
DotFormatter
- Add severity
error
/warning
/refactoring
etc. - Rename
Error
andsource.errors
to the entity that fits better (i.e.Issue
,source.issues
) - Use namespaces for rules, i.e.
Lint
,Style
etc. - Autocorrect issues #34
- ...
-
Emacs ameba.el
-
SublimeText SublimeLinter-contrib-ameba
-
Atom atom-linter-ameba
-
VSCode extension vscode-crystal-ameba
-
Vim
- vim-crystal via Syntastic
- via Ale
-
Codacy. See codacy-ameba
Would be really cool to make ameba more extensible. Let's say if someone would need the linting of config/*.yml
or *.ecr
files, he would just create a third-party project, register its own "rules" through Ameba's interface and use it together with the main "engine".
So the runner/formatters/config etc. will remain the same and the developer will need to take care of his own "rules".