Commit Graph

143 Commits

Author SHA1 Message Date
Akshay
d324490e45 bump to v0.5.8 2023-09-09 17:06:08 +05:30
Astro
bcb3d10f2a
make eta_reduction less aggressive (#76)
Co-authored-by: Stephan Maka <stephan.maka@cyberus-technology.de>
2023-07-05 17:17:24 +05:30
figsoda
3c7136a23f
apply clippy suggestions (#73) 2023-02-20 15:54:02 +05:30
figsoda
ec55198a39
flake: avoid ifd (#70) 2023-02-20 15:53:48 +05:30
Akshay
f0267dfb72 handle duplicate args error 2023-01-08 15:54:31 +05:30
ilkecan
c1a6bdc42b
Update rnix to 0.10.2 (#58)
Closes: #56
2023-01-08 18:37:28 +05:30
ilkecan
9615760940
walker.next: don't stop until self.dirs is empty (#57)
Closes: #38
2023-01-08 18:20:14 +05:30
Stanisław Pitucha
cd187b2b73
new lint: empty_list_concat (#50)
`[] ++ something` should be reduced to just `something`

Simplify the check

Add unit tests
2023-01-08 18:07:00 +05:30
Akshay
9cb88dd5d1
fix ci (#67)
* bump cachix action

* temporarily disable cachix

* remove deprecated overlay syntax

* update ci
2023-01-08 15:58:04 +05:30
Stanisław Pitucha
6463c05411 new lint: repeated_keys
Check for repeated keys in attrsets. For example:

```
foo.bar1 = 1;
foo.bar2 = 2;
foo.bar3 = 3;
```

should recommend creating a

```
foo = { ... }
```

Report only on multi-level keys

Add tests

tweak repeated-keys lint
2023-01-08 13:47:26 +05:30
Akshay
a0c7a3274d
Merge pull request #60 from mtoohey31/patch-1
remove dbg!
2023-01-08 07:26:37 +00:00
Matthew Toohey
2889b60c46
remove dbg! 2022-11-12 19:40:48 -05:00
Akshay
6b490d712e
Merge pull request #54 from ilkecan/accept-all-config-file-names
Don't reject the given config file based on its name
2022-09-24 08:30:40 +05:30
ilkecan
1d381c96df Don't reject the given config file based on its name
Closes: #51
2022-09-24 02:50:45 +00:00
Akshay
6422c959d3
Merge pull request #45 from NobbZ/fix-gitconfig-not-allowed-in-pure-mode
use `self` for `src`.
2022-07-10 13:38:53 +00:00
Norbert Melzer
09a3a91b80 use self for src.
`gitignoreSource` is not needed in flakes and will now work anymore in nix 2.10 flakes
2022-06-26 11:55:18 +02:00
Akshay
60df6b3208 bump to v0.5.6 2022-06-04 22:00:56 +05:30
Akshay
11066fbbdd raise, don't fix for empty_let_in with comments 2022-06-04 21:54:01 +05:30
Akshay
33490aa211 do not raise empty-let when comments are present 2022-06-04 16:20:19 +05:30
Akshay
d197ae1124 update readme 2022-05-01 20:47:35 +05:30
Akshay
53b454cd6a add ignore to statix.toml 2022-05-01 20:42:12 +05:30
Akshay
448e6f2096 show only available out-formats
the json out-format is displayed only when statix is compiled
with

    cargo bulid --all-features
    # or
    cargo build --features=json
2022-02-20 11:39:17 +05:30
Akshay
58e24a596d bump to v0.5.4 2022-02-20 11:31:38 +05:30
Akshay
c917670c91 useless_has_attr: do not parenthesize select expressions in fixes
`select` expresisons are more tightly binding than `or` expressions,
we do not have to parenthesize them when placed next to an `or`.
2022-02-20 11:29:59 +05:30
Akshay
44865fcb29 new subcommand: statix-list
produces a list of lints with their error codes,
handy for statix-explain or configuring the `disabled`
array in .statix.toml
2022-02-20 11:01:53 +05:30
Akshay
c7874ec26d new lint: useless_has_attr 2022-02-20 11:01:36 +05:30
Akshay
e8130a90dc new lint: bool_simplification
TODO: add more patterns to this
2022-02-20 09:37:32 +05:30
Akshay
a80e252193 parallelize statix-check 2022-02-19 20:44:59 +05:30
Akshay
2aec51a440
Merge pull request #36 from m1-s/update_version
create release v0.5.3 for return code fix
2022-02-09 21:34:18 +05:30
Michael Schneider
c8c91e9c63 bump to v0.5.3 2022-02-09 12:43:16 +01:00
Akshay
014be14e7d fix: statix always exits with exit code 1 2022-02-08 21:00:31 +05:30
Akshay
ade09b4d17 rework docs and readme 2022-01-30 12:39:38 +05:30
Akshay
7457498ea6 new lint: deprecated_to_path 2022-01-30 12:30:51 +05:30
Akshay
adacdb07ca fix statix warnings 2022-01-30 12:10:55 +05:30
Akshay
a254edfcd2 new lint: faster_zipattrswith 2022-01-30 12:10:21 +05:30
Akshay
effe06e2f1 do not use git dependency 2022-01-29 16:58:19 +05:30
Akshay
df29effd59 bump rnix to latest master, support nix 2.5 syntax 2022-01-29 16:31:20 +05:30
Akshay
8e4eeb979e do not raise empty_pattern on nixos modules 2022-01-29 10:13:41 +05:30
Akshay
479e3a272e bump to v0.5.2 2022-01-28 19:31:14 +05:30
Akshay
ea04e018dd
Merge pull request #34 from nerdypepper/feat/exit-code
exit with non-zero status if warnings are present
2022-01-28 19:27:25 +05:30
Akshay
3d18754b9d exit with non-zero status if warnings are present 2022-01-23 10:25:53 +05:30
Akshay
7cc8878075
Merge pull request #33 from nerdypepper/fix/nix-presence
fix: nix binary should not be mandatory
2022-01-23 10:08:03 +05:30
Akshay
bfb11bcffc fix: nix binary should not be mandatory 2022-01-23 09:59:32 +05:30
Akshay
23892b034d Merge branch 'add/cachix-build-action' 2022-01-15 14:57:35 +05:30
Akshay
9a1796bdf3 bump flake.lock 2022-01-15 14:57:14 +05:30
Akshay
33e2442049 remove test matrix
`nix build` already performs `cargo test`
2022-01-15 10:41:00 +05:30
Akshay
47eae19787 disable macos for now 2022-01-15 10:35:25 +05:30
Akshay
01ea0a26c1 init build & test flow 2022-01-15 10:31:10 +05:30
Akshay
22edbb0618 bump to v0.5.0 2022-01-15 09:54:05 +05:30
Akshay
045d4ff2ad ignore .git by default 2022-01-14 22:48:06 +05:30