Commit graph

15 commits

Author SHA1 Message Date
Radon Rosborough
0e9a838bdd
Apply some code review suggestions from MELPA (#246)
https://github.com/melpa/melpa/pull/8809#issuecomment-1807218549
2023-11-17 16:17:08 -08:00
Radon Rosborough
47547ea694
Fix byte-compilation order (#240)
This fixes one compilation issue, for another, see
https://github.com/radian-software/apheleia/pull/237#issuecomment-1793531728
2023-11-04 12:18:02 -07:00
Mohsin Kaleem
51b8a796b6
Restructure and refactor apheleia package (#215)
CLOSES #212 

PR to restructure apheleia to make it more modular and improve some of
the separation of concerns. Before merging we should make sure that we
don't reintroduce the issues from #181.
2023-10-17 21:20:38 +01:00
Radon Rosborough
791346cd3a
Fix brittany formatter & misc improvements (#222)
* Fix brittany installation, needed the `--reorder-goals` argument to be
added so that a version that was not the latest version could be
installed so that it was compatible with the base lib version shipped
with Ubuntu 20.04. We'll upgrade to 22.04 eventually (before it falls
out of LTS). Ref: https://github.com/radian-software/apheleia/pull/221
* Add a `make fmt-build-common` target which allows tagging a docker
image containing just the base software and not any formatters, to make
it easy to debug formatter installation manually.
* Update `apheleia-ft` to also run formatter tests when any files
affecting a formatter are changed, which includes the installation
script, the sample input/output, and also any scripts (e.g.
`apheleia-phpcs`) that it uses. We don't have any logic that will run
all formatter tests at once, because that is unwieldy. That can be done
manually if making a big change.
* Update to actions/checkout@v4 from v2 because the older one was listed
as deprecated.
* Print full stacktraces when `apheleia-ft` fails with an Elisp error.
2023-10-06 22:01:38 -07:00
Radon Rosborough
5b287a9426 Fix compilation order 2023-08-26 09:05:29 -07:00
Mohsin Kaleem
3e93610387
Separate formatters definitions from core apheleia library (#161)
Moves the bulk of apheleia.el into a new apheleia-core.el file and move
formatter definitions and mode-associations into a new
apheleia-formatters.el file. The end user experience should be
unchanged. Loading `apheleia.el` will still load everything load
everything, just like it used to.
2023-03-12 10:22:36 +00:00
Ellis Kenyő
9b745df2fa
Add emacs-lisp formatting (#102)
* feat: add emacs-lisp formatting

* Disable indent-tabs-mode

* Add stub file for installation

* Fix lint errors

* fix: correctly format based on previous mode

* Formatting

* Fix weird indent

* Add checkindent target

* Update changelog

* Long line

* Empty commit

* fix ci

* revert changelog reformatting

* more changelog

* more

Co-authored-by: Radon Rosborough <radon.neon@gmail.com>
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2022-09-03 11:22:35 -07:00
Radon Rosborough
53f243b111
Add formatter tests (#72)
Closes #24
Builds on #25 by @PrimaryCanary
2022-01-05 15:35:12 -08:00
Radon Rosborough
a606d59c2d Port longlines checker from CTRLF 2022-01-03 20:07:29 -08:00
Radon Rosborough
61f9335756 Fix Makefile 2019-11-16 22:05:28 -08:00
Radon Rosborough
68d8755333 Migrate from Semaphore CI to CircleCI 2019-11-16 22:01:04 -08:00
Radon Rosborough
1d7eb306cf Shorten line 2019-07-10 22:50:01 -07:00
Radon Rosborough
ef86b0c4a3 Fix really weird Makefile error 2019-07-10 22:17:26 -07:00
Radon Rosborough
9ed9d2760d Add Docker and improve Makefile 2019-07-10 22:06:18 -07:00
Radon Rosborough
80bf0874bc Add Makefile and fix problems it found 2019-07-10 19:12:20 -07:00