41 Commits

Author SHA1 Message Date
1c6f4f1da7 Merge pull request #9 from justinbarclay/patch-1 2023-02-04 11:10:33 +00:00
Justin
b542b763fa Add support for ruby-ts-mode 2023-02-03 19:37:31 -08:00
b180786c00 chore(release): 0.5.1 0.5.1 2022-10-24 22:55:12 +01:00
1d09a2a7ab chore(makefile): add Makefile with release helper targets 2022-10-24 22:53:48 +01:00
9b0023158c fix: use -a and -A flags to avoid deprecation warnings
The --auto-correct and --auto-correct-all flags have been deprecated in
favor of --autocorrect and --autocorrect-all.

For the sake of backwards compatibility, we now use -a and -A which
remain unchanged since auto-correction support was first added to
Rubocop.

Fixes #8
2022-10-24 22:39:28 +01:00
b848101059 chore(release): 0.5.0 0.5.0 2020-07-13 12:46:06 +01:00
b4be08469c feat(cops): Add support for running unsafe cops with latest RuboCop
Latest version of RuboCop now only performs auto-corrections from "safe"
cops when given the `--auto-correct`/`-a` option. To run
auto-corrections from all cops, including "unsafe" ones, you must now
pass in `--auto-correct-all`/`-A` instead.

The new `rubocopfmt-include-unsafe-cops` defcustom defaults to no `nil`,
for backwards compatibility. Turn on unsafe cops by setting it to `t`.
2020-07-13 12:44:27 +01:00
054681f682 chore(release): 0.4.1 0.4.1 2020-05-26 23:44:46 +01:00
9b7c86a5ec fix: Always move back to same column after applying rcs patch
Previously the cursor would move to the beginning of line if the current
line was changed by `rubocopfmt`.

This fix is borrowed from:
https://github.com/dominikh/go-mode.el/pull/236
2020-05-26 23:37:37 +01:00
bbfc30250b chore(release): 0.4.0 0.4.0 2020-05-19 21:35:15 +01:00
cf87bee06f docs(readme): Expand installation info and add performance section 2020-05-19 21:25:15 +01:00
d7d6d81b52 feat(lsp): Add experimental use of lsp-format-buffer
Add support for using `lsp-format-buffer` to format Ruby buffers instead
of `rubocopfmt` when `rubocopfmt-mode` and `lsp-mode` are both enabled.

Disabled by default, and must manually be enabled by setting
`rubocopfmt-on-save-use-lsp-format-buffer` to `t`.

I consider this feature EXPERIMENTAL, meaning it "works on my machine",
with no guarantees of it working elsewhere, nor if it will remain part
of rubocopfmt in the future.
2020-05-19 21:25:14 +01:00
fc96145719 Merge pull request #3 from terlar/master
Make bundler optional
2018-10-09 18:03:27 +01:00
Terje Larsen
920917ddd9 Update readme with bundler opt-out 2018-10-09 18:29:31 +02:00
Terje Larsen
efeae0c046 Make bundler optional
For some projects I don't have bundler as part of the Gemfile but run it
as an external tool. With this kind of setup it would be nice to be able
to opt out of `bundle exec` even if you have a Gemfile and are using
bundler for the rest of the project.
2018-10-09 18:22:26 +02:00
43ffa9d9c3 Bump version to 0.3.0 0.3.0 2018-10-01 12:12:28 +01:00
fac2123138 Add option to customize which major modes rubocopfmt-mode applies to
It also enables rubocopfmt to work with the enh-ruby-mode out of the
box, in addition to the default ruby-mode it already supported. And
additional major modes can be added via:

    M-x customize-group rubocopfmt

Fixes issue #2.
2018-10-01 12:11:29 +01:00
34c69c9c92 Bump version to 0.2.2 0.2.2 2018-05-19 15:48:41 +01:00
266eda4a6b Fix minor grammatical issue with readme 2018-05-19 15:46:57 +01:00
3a12b2c2dd Update readme with information about disabled Cop
And generally reword things for the better.
2018-05-19 15:41:58 +01:00
187bbab100 Update description in rubocopfmt.el 2018-05-19 15:41:37 +01:00
3b5ecca7db Bump version to 0.2.1 0.2.1 2018-05-19 15:16:59 +01:00
266bc804a1 Specify cl-lib as a package dependency 2018-05-19 15:01:14 +01:00
91beef24e3 Add missing require for cl-lib 2018-05-19 14:54:30 +01:00
25845fabab Bump version to 0.2.0 0.2.0 2018-05-19 14:45:51 +01:00
04cf1e4a35 Add Internals and Bundler Integration sections to readme 2018-05-19 14:44:54 +01:00
749a62503b Reorganize function order 2018-05-19 14:24:52 +01:00
d2c33ff528 Merge pull request #1 from jimeh/remove-rubocopfmt-gem-dependency
Remove extermal rubocopfmt command dependency
2018-05-19 13:16:39 +00:00
97183947a5 Update readme for use without external rubocopfmt command 2018-05-19 14:02:11 +01:00
ee7b69f73b Allow showing errors in dedicated buffer 2018-05-19 14:02:11 +01:00
0eb95d9db9 Change license and copyright to the same as go-mode.el
Large portions of rubocopfmt.el is based on code from go-mode.el. As
such rubocopfmt.el should really carry the same license and copyright
as go-mode.el does.
2018-05-19 14:02:11 +01:00
40de4b843f Fix headline description 2018-05-19 13:24:15 +01:00
69d8dd97c7 Fix typo a some whitespace 2018-05-19 13:23:55 +01:00
b8e81a3518 Fix repository URL 2018-05-19 13:12:43 +01:00
e730418ea9 Fix complaints by package-lint and checkdoc 2018-05-19 13:10:15 +01:00
9d0aef2f82 Refactor rubocopfmt.el to use rubocop directly
Having the rubocopfmt Ruby gem as an external dependency is becoming
tedious. So lets parse rubocop's output and perform the diffing
ourselves within Emacs.

This effectively marks the end of the rubocopfmt Ruby gem, as I no
longer need it, and will not maintain it moving forward.
2018-05-19 13:06:05 +01:00
54e023fd40 Update for compatability with rubocopfmt 0.1.0.beta17 2017-12-14 12:50:52 +00:00
fd74b7b329 Update readme 2017-02-01 22:38:09 +00:00
1435feb237 Update for compatability with rubocopfmt 0.1.0.beta10 2017-01-31 09:37:39 +00:00
e34b2fd758 Update readme 2017-01-20 22:56:45 +00:00
c09d91f76a Initial commit 0.1.0 2017-01-20 22:53:39 +00:00