Lints and suggestions for the Nix programming language
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #124 from oppiliappan/taplo

style: fmt toml using taplo

authored by

Shahar "Dawn" Or and committed by
GitHub
4bbc68bb 0c7343c2

+31 -34
+1 -6
Cargo.toml
··· 1 1 [workspace] 2 2 3 - members = [ 4 - "bin", 5 - "lib", 6 - "macros", 7 - "vfs", 8 - ] 3 + members = ["bin", "lib", "macros", "vfs"] 9 4 10 5 [workspace.lints.clippy] 11 6 pedantic = { level = "deny", priority = -1 }
+8 -8
bin/Cargo.toml
··· 1 1 [package] 2 - name = "statix" 3 - version = "0.5.8" 2 + authors = ["Akshay <nerdy@peppe.rs>"] 3 + description = "Lints and suggestions for the Nix programming language" 4 4 edition = "2018" 5 5 license = "MIT" 6 - authors = [ "Akshay <nerdy@peppe.rs>" ] 7 - description = "Lints and suggestions for the Nix programming language" 6 + name = "statix" 7 + version = "0.5.8" 8 8 9 9 [lib] 10 10 name = "statix" ··· 27 27 vfs = { path = "../vfs" } 28 28 29 29 [dependencies.serde] 30 + features = ["derive"] 30 31 version = "1.0.68" 31 - features = [ "derive" ] 32 32 33 33 [dependencies.serde_json] 34 - version = "1.0.68" 35 34 optional = true 35 + version = "1.0.68" 36 36 37 37 [dev-dependencies] 38 38 insta = "1.8.0" 39 - strip-ansi-escapes = "0.1.1" 40 39 paste = "1.0.15" 40 + strip-ansi-escapes = "0.1.1" 41 41 42 42 [features] 43 - json = [ "lib/json-out", "serde_json" ] 43 + json = ["lib/json-out", "serde_json"] 44 44 45 45 [lints] 46 46 workspace = true
+9 -5
flake-parts/fmt.nix
··· 11 11 programs = { 12 12 nixfmt.enable = true; 13 13 prettier.enable = true; 14 - # https://github.com/pappasam/toml-sort/issues/62 15 - # toml-sort = { 16 - # enable = true; 17 - # all = true; 18 - # }; 14 + taplo = { 15 + enable = true; 16 + settings.formatting = { 17 + reorder_keys = true; 18 + reorder_arrays = true; 19 + reorder_inline_tables = true; 20 + allowed_blank_lines = 1; 21 + }; 22 + }; 19 23 }; 20 24 settings.on-unmatched = "fatal"; 21 25 };
-2
flake-parts/rust.nix
··· 19 19 treefmt = { 20 20 programs.rustfmt.enable = true; 21 21 settings.global.excludes = [ 22 - "**/Cargo.toml" 23 - "Cargo.toml" 24 22 "bin/tests/snapshots/*.snap" 25 23 ]; 26 24 };
+7 -7
lib/Cargo.toml
··· 1 1 [package] 2 + edition = "2018" 3 + license = "MIT" 2 4 name = "lib" 3 5 version = "0.0.0" 4 - edition = "2018" 5 - license = "MIT" 6 6 7 7 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 8 8 9 9 [dependencies] 10 - rnix = "0.10.2" 11 10 if_chain = "1.0" 11 + lazy_static = "1.0" 12 12 macros = { path = "../macros" } 13 - lazy_static = "1.0" 13 + rnix = "0.10.2" 14 14 rowan = "0.12.5" 15 15 serde_json = { version = "1.0.68", optional = true } 16 16 17 17 [dependencies.serde] 18 + features = ["derive"] 19 + optional = true 18 20 version = "1.0.130" 19 - features = [ "derive" ] 20 - optional = true 21 21 22 22 [features] 23 23 default = [] 24 - json-out = [ "serde", "serde_json" ] 24 + json-out = ["serde", "serde_json"] 25 25 26 26 [lints] 27 27 workspace = true
+4 -4
macros/Cargo.toml
··· 1 1 [package] 2 + edition = "2018" 3 + license = "MIT" 2 4 name = "macros" 3 5 version = "0.0.0" 4 - edition = "2018" 5 - license = "MIT" 6 6 7 7 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 8 8 9 9 [dependencies] 10 - quote = "1.0" 11 10 proc-macro2 = "1.0.27" 11 + quote = "1.0" 12 12 13 13 [dependencies.syn] 14 + features = ["full"] 14 15 version = "1.0" 15 - features = [ "full" ] 16 16 17 17 [lib] 18 18 proc-macro = true
+2 -2
vfs/Cargo.toml
··· 1 1 [package] 2 + edition = "2018" 3 + license = "MIT" 2 4 name = "vfs" 3 5 version = "0.0.0" 4 - edition = "2018" 5 - license = "MIT" 6 6 7 7 [dependencies] 8 8 indexmap = "1.6.2"