Commit Graph

155 Commits

Author SHA1 Message Date
Astro
e88f43eaab Cargo.toml: bump version to 0.1.1 2021-12-11 02:02:04 +01:00
Astro
80acbe56e6 Cargo.lock: update 2021-12-11 02:01:22 +01:00
Astro
951d787886 .github/workflows/checks.yml: quelch that one clippy nitpick 2021-12-11 01:59:55 +01:00
Astro
62e1b35cd7 fix, simplify, refactor 2021-12-11 01:59:08 +01:00
Astro
1874a16ad9 dead_code: fix looped scanning of let inherit bindings 2021-12-11 01:13:40 +01:00
Astro
297446cd51 delint with clippy 2021-12-11 00:02:02 +01:00
Astro
a5f5b673f7 edit: improve lambda pattern removal in the presence of whitespace 2021-12-10 23:38:40 +01:00
Astro
7df2b8548f flake.nix, .github/workflows/checks.yml: remove rustfmt 2021-12-10 22:20:10 +01:00
Astro
d528df6cf0 add option --no-lambda-pattern-names 2021-12-10 22:01:53 +01:00
Astro
1a06f0cab2 main: add option -h to skip hidden files by default 2021-12-10 21:00:33 +01:00
Astro
d03d5df1f8 flake.nix: add rust-analyzer to devShell
allows using lsp
2021-12-10 21:00:03 +01:00
Astro
23e503b3f1 .github/workflows: split checks.yml into build.yml 2021-12-09 17:39:19 +01:00
Astro
f5ef795420 .github/workflows/checks.yml: split cargo build --release 2021-12-09 17:29:31 +01:00
Astro
483a73291a .github/workflows/checks.yml: fix upload-artifact args 2021-12-09 17:26:42 +01:00
Astro
0022899cbc .github/workflows/checks.yml: add build with actions/upload-artifact 2021-12-09 17:25:23 +01:00
Astro
babc230b91 .github/workflows/checks.yml: copy action-rs quickstart 2021-12-09 17:15:26 +01:00
Astro
dd04c4bf35 flake.nix: switch from mozillapkgs to fenix 2021-12-09 16:44:31 +01:00
Astro
3bab18e097 add rustfmt, apply suggestions 2021-12-09 15:55:22 +01:00
Astro
a483b1d42c add clippy, apply suggestions 2021-12-09 15:54:09 +01:00
Astro
de62a3a4e4 main: find .nix files recursively 2021-12-08 19:17:09 +01:00
Astro
96a06966bc scope: add inherits_from() to treat inherit clauses specially 2021-12-08 17:50:41 +01:00
Astro
236876b13f Revert "scope: remove broken RecAttrSet for now"
This reverts commit 5a15a18abd.
2021-12-08 17:30:20 +01:00
Astro
600a0da972 edit: replace lambda args with prepended underscore 2021-12-08 04:05:43 +01:00
Astro
cdfdaf096c dead_code_tests: add let_inherit_in_rec_attrset_alive() 2021-12-08 03:49:19 +01:00
Astro
5a15a18abd scope: remove broken RecAttrSet for now 2021-12-08 03:48:58 +01:00
Astro
c83b6e41fc scope: filter RecAttrSet for keys that are Ident 2021-12-08 03:44:49 +01:00
Astro
b442d3f92e README: to boldly go where no evaluation has gone before 2021-12-08 01:37:23 +01:00
Astro
2259c36eff README: fix usage 2021-12-08 01:36:01 +01:00
Astro
64f6ac269f README: Usage 2021-12-08 01:34:04 +01:00
Astro
4c624453a1 report: micro-refactor output 2021-12-08 01:30:00 +01:00
Astro
3faa57f165 implement editing source files 2021-12-08 01:15:28 +01:00
Astro
c60397ecd3 main: add quiet mode 2021-12-08 01:15:03 +01:00
Astro
d5f2da02fc main: use version from $CARGO_PKG_VERSION 2021-12-08 01:14:21 +01:00
Astro
ad1329cf12 implement no_lambda_arg+no_underscore options 2021-12-07 22:10:44 +01:00
Astro
452759a13d main: refactor into report 2021-12-07 21:41:59 +01:00
Astro
a31782a51d scope: add RecAttrSet 2021-12-07 21:15:39 +01:00
Astro
e754ef4e7f usage: become aware of shadowed bindings 2021-12-07 20:58:24 +01:00
Astro
99ea26c6ee dead_code_tests: add lambda_at_pattern_alive() 2021-12-07 20:25:20 +01:00
Astro
3aac2dea11 binding: add is_mortal() to avoid reporting _: and lambda patterns without ellipsis 2021-12-07 20:19:11 +01:00
Astro
5cc971bf16 dead_code: loop to find unused code recursively 2021-12-07 20:07:52 +01:00
Astro
9c48ee09a1 main: underline name.node() not the whole node 2021-12-07 19:24:06 +01:00
Astro
91a1cec2b3 refactor into binding and scope 2021-12-07 19:06:21 +01:00
Astro
af2a29cad6 README: extend 2021-12-07 00:53:39 +01:00
Astro
773345bbbe dead_code_tests: add more alive tests 2021-12-07 00:52:35 +01:00
Astro
7d4d52be15 flake.nix: remove zombie code 2021-12-06 21:58:51 +01:00
Astro
2db913eb15 dead_code: fix LambdaArg 2021-12-06 21:58:25 +01:00
Astro
00c3d33e79 dead_code_tests: init 2021-12-06 21:58:02 +01:00
Astro
546f0711e9 dead_code: don't pass in results 2021-12-06 03:28:58 +01:00
Astro
5237687b0b split into multiple files 2021-12-06 01:23:07 +01:00
Astro
e99eb7358e flake.nix: remove dead code 2021-12-06 01:10:27 +01:00