Commit Graph

39 Commits

Author SHA1 Message Date
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
b99dbc2529 bump to v0.3.6 2021-11-04 20:17:45 +05:30
Akshay
2939957c48 fix globs not ignore files correctly 2021-11-04 20:02:21 +05:30
Akshay
9ac0957e28 Squashed commit of the following:
commit c0487a3b8b
Author: Akshay <nerdy@peppe.rs>
Date:   Thu Nov 4 18:46:03 2021 +0530

    use ignore crate to enforce simpler ignore rules

    - also respects .gitignore by default
    - adds new flag `-u` to unrestrict statix
2021-11-04 18:47:28 +05:30
figsoda
831bd7e91d apply clippy lints 2021-11-01 22:34:22 -04:00
Akshay
90ea9335b5 bump to v0.3.5 2021-11-01 21:18:59 +05:30
Akshay
31bd39c75b bump to v0.3.4 2021-11-01 07:52:32 +05:30
Akshay
150106459f fix broken flake builds 2021-10-31 22:53:22 +05:30
Akshay
84c9d656dd bump to v0.3.2 2021-10-31 22:45:42 +05:30
Akshay
e8c955da4c add explain subcommand and explanations to all lints 2021-10-31 21:35:15 +05:30
Akshay
246c69f8cf bump to v0.3.1 2021-10-29 18:50:01 +05:30
Akshay
a34ab7a09f bump to v0.3.0
also add release checklist
2021-10-29 18:44:14 +05:30
Akshay
1a97cce01f report syntax errors as statix errors
- statix now reports errors also, not just warnings
- all diagnostics are available on stderr stream
- non-utf8 files are skipped, does not eject early
2021-10-29 18:44:14 +05:30
Akshay
c3cede18c9 improve json output for suggestions, bump to v0.2.5 2021-10-28 17:34:59 +05:30
Akshay
6e8dd004ea fix version command not fetching latest version 2021-10-28 17:23:29 +05:30
Akshay
a627799e2a improve json output
The `at` field now includes a `from` and `to` position with line and
column information, instead of a [usize; 2].
2021-10-28 17:14:21 +05:30
Akshay
aa1a855276 bump to v0.2.4 2021-10-28 07:53:40 +05:30
Akshay
3c9a675b9d fix fp with manual_inherit and manual_inherit_from
the lint also needed to validate if the length of the path component was
exactly one, and not just check if the first component matches the
value.
2021-10-28 07:50:36 +05:30
Akshay
8eccf15964 add 3 new lints, bump to v0.2.3
- empty_pattern
- redundant_pattern_bind
- unquoted_splice
2021-10-28 00:33:48 +05:30
Akshay
f909b20c54 allow stdin input to statix-single, vim plugin 2021-10-27 17:13:23 +05:30
Akshay
ed1ee66b06 add MIT license 2021-10-27 08:02:57 +05:30
Akshay
20d195988d set internal crates to 0.0.0, bump to v0.2.0 2021-10-26 19:50:23 +05:30
Akshay
393c285662 fix single fix command 2021-10-26 19:16:52 +05:30
Akshay
cd527e849f fix minor bug with out-format 2021-10-25 22:18:42 +05:30
Akshay
5f0a1e67c6 rework cli, use subcommands instead 2021-10-25 22:08:52 +05:30
Akshay
b09f1f9584 rework cli, fix is now a flag, implement dry-run mode 2021-10-24 13:26:37 +05:30
Akshay
5de0ba055c add support for json out 2021-10-24 13:24:52 +05:30
Akshay
c79799c0e4 add support for errfmt friendly output 2021-10-23 22:14:56 +05:30
Akshay
05b11f14b7 simplify flake 2021-10-23 13:18:03 +05:30
Akshay
c2f0582d19 initial implementation of multipass code fixer 2021-10-23 12:41:52 +05:30
Akshay
b26272ba3e minor refactor 2021-10-19 22:27:23 +05:30
Akshay
e4c4a77d03 refactor out lint runner into lint module 2021-10-19 19:31:01 +05:30
Akshay
214e3bc4b6 fully flesh out CLI 2021-10-19 15:58:46 +05:30
Akshay
75c3d4be13 don't report fix on stderr 2021-10-03 16:58:38 +05:30
Akshay
2dacf12a3d rename to statix, skip self env arg 2021-10-02 10:50:15 +05:30
Akshay
3eec886fe8 use stderr by default, improved macro code 2021-09-21 16:42:30 +05:30
Akshay
c91c2ae139 init cli entrypoint 2021-09-15 16:19:58 +05:30
Akshay
171a4fa4d1 restructure repo into bin, lib and macros 2021-09-11 21:18:09 +05:30