Commit Graph

123 Commits

Author SHA1 Message Date
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
Akshay
b1c8280851 fix bug with overriding of config combined with serde 2022-01-14 22:40:48 +05:30
Akshay
305960c98b add dump command, support version overrides in statix.toml 2022-01-14 22:21:42 +05:30
Akshay
7d732a051e refactor parsing code, simplify tests 2022-01-14 18:09:42 +05:30
Akshay
d1ff222bcf allow for version based lints 2022-01-08 16:03:10 +05:30
Rui Chen
94a2edf573
docs: add homebrew installation
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-12-13 23:20:27 -05:00
Akshay
7147695971
Merge pull request #26 from Gerschtli/aarch64
Add aarch64-linux as supported system in flake.nix
2021-12-09 10:38:14 +05:30
Tobias Happ
43964c4008 add aarch64-linux as supported system in flake.nix 2021-12-06 18:21:55 +01:00
Akshay
d6e9ebcc11 bump to v0.4.2 2021-12-04 13:07:22 +05:30
Akshay
19e2aa4a38 remove tests for unquoted_splices 2021-12-04 13:04:20 +05:30
Akshay
21775f28cd new lint: empty_inherit 2021-12-04 13:04:20 +05:30
Akshay
1079486539 remove lint: unquoted_splice 2021-11-28 19:25:36 +05:30
Akshay
cef2deec58 fix spell err in readme.md 2021-11-28 13:39:30 +05:30
Akshay
a7edc7b471 bump to v0.4.1 2021-11-28 13:36:09 +05:30
Akshay
8b75ed8609 document configuration and --config flag 2021-11-28 13:30:40 +05:30
Akshay
2b6012a79c introduce --config flag 2021-11-28 13:25:23 +05:30
Akshay
4e063b2abc add snapshot test suite 2021-11-08 10:33:13 +05:30
Akshay
78decf580d bump to v0.4.0 2021-11-06 14:56:58 +05:30
Akshay
04f843e5fd output check diagnostics on stdout instead of stderr 2021-11-06 14:54:29 +05:30
Akshay
324a333e67 introducing "streaming" option to check, fix and single 2021-11-06 14:51:55 +05:30
Akshay
63eba9d5c6 introduce ReadOnlyVfs::singleton
create a VFS with exactly one file, handy for operations involving a
single buffer or file
2021-11-06 14:50:58 +05:30