Commit Graph

20 Commits

Author SHA1 Message Date
a-kenji
5b9d911bee
fix typos (#183) 2022-10-16 15:26:44 +02:00
zimbatm
2af3933b4b
formatters-spec: clarify syntax and semantics rule 2022-08-09 10:37:45 +02:00
zimbatm
f400c2f320
fix typo 2022-08-09 10:27:10 +02:00
Jonas Chevalier
26d7f5f15e
website: remove landing page (#145)
It's better to have no landing page than a half-finished one.
2021-12-24 17:47:18 +01:00
zimbatm
5e9ae5436e
fmt 2021-11-12 20:31:40 +01:00
Basile Henry
a2db2cc181
Support global excludes (#121)
* Support global excludes

Closes #119

Adds an extra field to the config to support excludes that apply to all formatters

* Move global config into its own toml section
2021-07-17 10:32:51 +00:00
Jonas Chevalier
07aaf738fd
nix: remove flake-compat (#117)
We shouldn't punish stable Nix users. flake-compat does that by making
the default.nix convoluted to use. Instead do the reverse and have
flake.nix depend on default.nix.
2021-06-29 11:01:37 +02:00
Jonas Chevalier
b25cfa461f
formatter: add rufo (#113) 2021-05-08 16:26:26 +00:00
zimbatm
f640dd9c9d
terraform fmt workaround
See #97
2021-05-07 00:21:06 +02:00
Jonas Chevalier
29d7a8b225
Update formatters-spec.md
Thanks @nmattia
2021-05-03 20:43:21 +02:00
Jonas Chevalier
3dc5943e60
fix docs (#94)
* nix: simplify the code a bit

* docs: fix the website

Make the paths relative so they work on GitHub Pages. Fix the landing
page overriding the docs. Put the docs in the right sub-folder.
2021-03-03 13:45:46 +01:00
Basile Henry
405d83ae5e
Add clang-format and stylish-haskell configs to the docs (#88) 2021-03-03 10:35:26 +01:00
Basile Henry
0ecbb2c870
Publish the docbook to GitHub Pages (#89)
* Build docs in nix

* Build docs in CI and update gh-pages

* Format nix
2021-03-03 10:34:57 +01:00
zimbatm
c787831f2f
docs: add more compatibility notes 2021-03-02 19:11:54 +01:00
Andika Demas Riyandi
164a74a9e3
fix hierarchy of the books (#80) 2021-03-02 12:29:31 +01:00
zimbatm
6b72db4087
docs: add list of known formatters 2021-02-26 22:02:16 +01:00
Andika Demas Riyandi
3ad67a3851
adding working directory option on prjfmt.toml for each formatter (#59)
* adding working directory option on prjfmt.toml for each formatter

* rename workdir into work_dir

* switch from xshell into process::Command

* fix unordered command_context by changing to BTreeMap
2021-02-19 17:02:33 +01:00
Jonas Chevalier
08d9fcf21f
rename to treefmt (#56) 2021-02-15 20:22:03 +00:00
Andika Demas Riyandi
c8e525f78c
Engine refactor (#48)
* refactor: move src/formatters/tool.rs to src/engine.rs

Start to put the utilities in the right place. More follow-up
refactoring is required.

* clean run_cli

* engine annotations

* docs: started a list of formatters

* refactor types, function, and argument naming

Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2021-02-10 14:37:34 +01:00
Jonas Chevalier
9642ef2f1e
docs: add formatter spec (#32)
* docs: add formatter spec

Describe how formatters should ideally work.

* Update docs/formatter_spec.md

Co-authored-by: Andika Demas Riyandi <andika.riyan@gmail.com>

* formatter MUST NOT do file traversal

Co-authored-by: Andika Demas Riyandi <andika.riyan@gmail.com>
2021-02-02 11:25:32 +01:00