aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2025-01-12[#336] Fix broken link (#340)Radon Rosborough
Close https://github.com/radian-software/apheleia/issues/336
2024-09-02Fix `apheleia-npx` in Yarn PnP projects (#301)Xandor Schiefer
* `apheleia-npx` would use an incorrect path for the Yarn PnP ESM loader. * `apheleia-npx` did not correctly guard against word splitting. * `apheleia-npx` was sometimes not able to find formatters in a Yarn PnP project if there was also a node_modules folder at the root of the project. Unfortunately, many tools (including [Prettier](https://github.com/prettier/prettier/issues/13032)) will create a cache folder in `node_modules` even in Yarn PnP projects. The presence of any `node_modules` folders are irrelevant when a `.pnp.cjs` file is present. --------- Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2024-04-13Add integration tests (#204)Radon Rosborough
Work in progress, some of the code is cribbed from https://github.com/radian-software/dumbparens
2024-03-30Prevent null issues when strings are unequal (#290)Ellis Kenyő
In the case where s2 is larger than s1, this errors because the index is out of range. A good testcase is the below ```lisp (apheleia--align-point " <div class=\"left-[40rem] fixed inset-y-0 right-0 z-0 hidden lg:block xl:left-[50rem]\">\n <svg\n" "<div class=\"left-[40rem] fixed inset-y-0 right-0 z-0 hidden lg:block xl:left-[50rem]\">\n <svg" 6) ``` If I've implemented the indexing wrong, do let me know but this seems to work just fine now for `mix` (the formatter that triggered this) --------- Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2024-03-02Add changelog linter (#287)Radon Rosborough
This should help make sure we don't forget to document any important user-visible changes.
2023-11-17Apply some code review suggestions from MELPA (#246)Radon Rosborough
https://github.com/melpa/melpa/pull/8809#issuecomment-1807218549
2023-11-04Fix byte-compilation order (#240)Radon Rosborough
This fixes one compilation issue, for another, see https://github.com/radian-software/apheleia/pull/237#issuecomment-1793531728
2023-10-17Restructure and refactor apheleia package (#215)Mohsin Kaleem
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-06Fix brittany formatter & misc improvements (#222)Radon Rosborough
* 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-08-26Fix compilation orderRadon Rosborough
2023-03-12Separate formatters definitions from core apheleia library (#161)Mohsin Kaleem
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.
2022-09-03Add emacs-lisp formatting (#102)Ellis Kenyő
* 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-01-05Add formatter tests (#72)Radon Rosborough
Closes #24 Builds on #25 by @PrimaryCanary
2022-01-03Port longlines checker from CTRLFRadon Rosborough
2019-11-16Fix MakefileRadon Rosborough
2019-11-16Migrate from Semaphore CI to CircleCIRadon Rosborough
2019-07-10Shorten lineRadon Rosborough
2019-07-10Fix really weird Makefile errorRadon Rosborough
2019-07-10Add Docker and improve MakefileRadon Rosborough
2019-07-10Add Makefile and fix problems it foundRadon Rosborough