emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rubocop 969f60e 53/64: Add some configuration documentatio


From: ELPA Syncer
Subject: [nongnu] elpa/rubocop 969f60e 53/64: Add some configuration documentation
Date: Wed, 11 Aug 2021 10:08:04 -0400 (EDT)

branch: elpa/rubocop
commit 969f60e5810cec6d962f558a6665f5ab625d4896
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>

    Add some configuration documentation
---
 README.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/README.md b/README.md
index bc617da..5471aa9 100644
--- a/README.md
+++ b/README.md
@@ -49,6 +49,24 @@ If you use them often you might want to enable 
`rubocop-mode` which will added s
 (add-hook 'ruby-mode-hook #'rubocop-mode)
 ```
 
+## Configuration
+
+There are a couple of configuration variables that you can use to adjust 
RuboCop.el's behavior.
+
+You can change the shell command used by `rubocop-check-*` commands via 
`rubocop-check-command`:
+
+``` emacs-lisp
+;; let's run only lint cops
+(setq rubocop-check-command "rubocop --lint --format emacs")
+```
+
+You can change the shell command used by `rubocop-autocorrect-*` commands via 
`rubocop-autocorrect-command`
+
+``` emacs-lisp
+;; let's run all auto-corrections possible (by default it's only the safe ones)
+(setq rubocop-autocorrect-command "rubocop -A --format emacs")
+```
+
 ## Known issues
 
 Check out the project's



reply via email to

[Prev in Thread] Current Thread [Next in Thread]