Andika Demas Riyandi
1669bd4f05
Merge branch 'master' into adding-formatter
2021-02-04 23:24:49 +07:00
Andika Demas Riyandi
0f254124fb
remove bash attribute from devshell, and use rustfmt --edition 2018
2021-02-04 23:22:19 +07:00
Andika Demas Riyandi
3139152e3c
Merge pull request #35 from numtide/basile/elm-format
...
Add elm-format example
2021-02-04 22:32:50 +07:00
Andika Demas Riyandi
0719c65893
Add javascript, golang, and python formatter to examples folder
2021-02-04 22:28:05 +07:00
Andika Demas Riyandi
8e619c4805
Merge pull request #26 from numtide/minimal-test
...
Add test to prjfmt
2021-02-04 16:19:35 +07:00
Basile Henry
02271a2ef2
Add elm-format example
2021-02-04 09:00:13 +01:00
Andika Demas Riyandi
2b34725508
update CmdContext's args field to options
2021-02-03 17:45:57 +07:00
Andika Demas Riyandi
6da1525c34
add test on check_prjfmt
2021-02-03 17:35:43 +07:00
Andika Demas Riyandi
b1edbc1a8b
fix failing test
2021-02-03 17:35:43 +07:00
Andika Demas Riyandi
a8d065025d
Add test to manifest and tool
2021-02-03 17:35:43 +07:00
Andika Demas Riyandi
42a861105c
Merge pull request #34 from numtide/args-to-options
...
change config from 'args' to 'options' to match formatters
2021-02-03 17:34:45 +07:00
Andika Demas Riyandi
f3ea689221
change config from 'args' to 'options' to match formatters
2021-02-03 17:19:11 +07:00
Andika Demas Riyandi
7db5ebc8af
include rust-src in rust package
2021-02-03 16:54:39 +07: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
Andika Demas Riyandi
46dd46fdad
Merge pull request #25 from numtide/basile/ignore
...
Use ignore for better control over globbing
2021-01-29 17:06:07 +07:00
Basile Henry
c4ba6ca953
Remove unnecessary clones
2021-01-28 11:29:11 +01:00
Basile Henry
e81f8dcf00
Update cargoSha256
2021-01-28 11:22:11 +01:00
Basile Henry
5f1d425153
Exclude not from root
2021-01-28 11:22:01 +01:00
Basile Henry
58074d9c30
Use ignore for better control over globbing
...
resolves #13 : Includes and excludes
resolves #24 : Follows .gitgnore directives
2021-01-28 10:34:13 +01:00
Basile Henry
e6e98b600c
Remove redudant extern crate
2021-01-28 10:33:45 +01:00
Jonas Chevalier
e76e621b63
ci: initial setup ( #21 )
2021-01-27 15:58:47 +01:00
zimbatm
79442b2b4c
fix devshell
...
Use the right mkShell
2021-01-27 15:14:39 +01:00
Jonas Chevalier
3852256526
fixes the build on NixOS ( #20 )
...
* remove curl
It is not being used right now and depends on libcurl and zlib
* devshell: add clang
Rust need a CC to compile some of the stuff. Since LLVM is being used by
Rust and clang is also working on darwin, use that.
* Use oxalica's rust-overlay, add project binary using rustPlatform, and update flake.nix
Co-authored-by: Andika Demas Riyandi <andika.riyan@gmail.com>
2021-01-27 14:39:55 +01:00
Andika Demas Riyandi
52061927c0
Merge pull request #23 from numtide/cleanup-deps
...
Cleaned up package dependencies
2021-01-27 20:04:11 +07:00
Andika Demas Riyandi
b91731ec7c
remove extern crate from lib.rs
2021-01-27 20:02:48 +07:00
Andika Demas Riyandi
cae48808b5
Cleaned up package dependencies
2021-01-27 17:43:45 +07:00
Andika Demas Riyandi
2ec001cb4b
Merge pull request #17 from numtide/basile/parallel-formatting
...
Run formatters in parallel
2021-01-27 17:36:07 +07:00
Basile Henry
2b3b4f9981
Remove redundant type signature
2021-01-27 09:20:22 +01:00
Basile Henry
5a4d0099df
Run formatters in parallel
...
All the formatters are run in parallel using rayon's powerful par_iter
which uses a thread pool under the hood.
2021-01-26 22:00:15 +01:00
Andika Demas Riyandi
9a641a5bd8
Change cache directory default to ~/.cache and clean up warnings
2021-01-26 18:41:04 +07:00
Andika Demas Riyandi
19f77cf969
rename project, adding cache mechanism ( #12 )
...
* rename project, adding cache mechanism
* refactor code and finalize cachin evaluation
* fix caching evaluation and manifest creation
2021-01-25 15:01:08 +01:00
Jonas Chevalier
7020163755
README.md: init ( #5 )
...
Add first draft of a README
2021-01-18 16:03:58 +01:00
Andika Demas Riyandi
044fdbb03e
Merge pull request #4 from numtide/list-and-format
...
first working example: List directory and format files
2021-01-11 22:06:02 +07:00
Andika Demas Riyandi
d40f78417a
first working example
2021-01-11 15:12:16 +07:00
Andika Demas Riyandi
431a174b9d
fix new fmt.toml parsing
2021-01-07 17:27:17 +07:00
Andika Demas Riyandi
621ddac2af
adding an command to add/check ( #1 )
...
* adding an command to add/check
* Make cargo fmt working on rust folder
* fix the build with `nix develop -i`
Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2021-01-01 11:53:16 +00:00
Andika Demas Riyandi
b5efb65465
add examples folder for testing
2020-12-18 17:27:29 +07:00
Andika Demas Riyandi
9a47dad8b1
initial the project with basic Nix and Rust files
2020-12-18 17:26:56 +07:00