Commit Graph

204 Commits

Author SHA1 Message Date
Markus Napierkowski
003814af6f dead_code_tests: add skip complete attrset test 2023-04-18 13:36:08 +02:00
Markus Napierkowski
4e58ac6bbc dead_code_tests: add skip lambda arg test 2023-04-18 13:31:55 +02:00
Astro
731db07217 dead_code_tests: add more skip tests 2023-04-18 00:54:43 +02:00
Astro
e41be99575 README: document "deadnix: skip" 2023-04-18 00:14:30 +02:00
Astro
2f836b1674 binding: rework Binding.has_pragma_skip() 2023-04-17 02:39:47 +02:00
Astro
03b7f9a840 implement a "deadnix: skip" pragma
Github issue #56
2023-04-17 02:29:15 +02:00
Astro
e6fd9da904 ariadne: 0.1 -> 0.2 2023-04-17 01:46:51 +02:00
Astro
1f768bd4cf delint 2023-04-17 01:45:53 +02:00
Astro
be51621be5 dead_code: improve no_underscore, no_lambda_arg checks 2023-04-17 01:45:53 +02:00
Astro
53b1b0c303 binding: remove unused impl PartialEq, Eq 2023-04-17 01:30:11 +02:00
Astro
8e2e6af26e rowan: 0.12 -> 0.15 2023-04-17 01:30:11 +02:00
Astro
ea55361244 Cargo.lock: update 2023-04-14 23:42:33 +02:00
Astro
2cf06878e4 flake.lock: Update
Flake lock file updates:

• Updated input 'naersk':
    'github:nix-community/naersk/d998160d6a076cfe8f9741e56aeec7e267e3e114' (2022-12-15)
  → 'github:nix-community/naersk/88cd22380154a2c36799fe8098888f0f59861a15' (2023-03-23)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/126f49a01de5b7e35a43fd43f891ecf6d3a51459' (2023-03-15)
  → 'github:NixOS/nixpkgs/65702964b39bcf6d5c6b5b898b7d73e08b94b13f' (2023-04-14)
• Updated input 'utils':
    'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15)
  → 'github:numtide/flake-utils/cfacdce06f30d2b68473a46042957675eebb3401' (2023-04-11)
• Added input 'utils/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
2023-04-14 23:41:30 +02:00
dependabot[bot]
a6d768c5d5 build(deps): bump DeterminateSystems/update-flake-lock from 17 to 18
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 17 to 18.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v17...v18)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-28 12:39:49 +02:00
Astro
66833f4c66 main: allow running on .. 2023-03-18 02:25:50 +01:00
Astro
083d5b75ce README: add short arguments 2023-03-18 02:16:28 +01:00
dependabot[bot]
d11b0b613d build(deps): bump DeterminateSystems/update-flake-lock from 16 to 17
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 16 to 17.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v16...v17)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-18 02:14:13 +01:00
dependabot[bot]
94e81d115e build(deps): bump cachix/install-nix-action from 19 to 20
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 19 to 20.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v19...v20)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-18 02:13:53 +01:00
Astro
21644cfa1b main: implement --exclude argument
Fixes Github issue #53
2023-03-18 02:10:11 +01:00
Astro
e438226f87 Cargo.lock: update 2023-03-17 23:11:53 +01:00
Astro
3c611a0e42 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/cfb43ad7b941d9c3606fb35d91228da7ebddbfc5' (2023-01-20)
  → 'github:NixOS/nixpkgs/126f49a01de5b7e35a43fd43f891ecf6d3a51459' (2023-03-15)
• Updated input 'utils':
    'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
  → 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15)
2023-03-17 23:03:16 +01:00
dependabot[bot]
1159d6f365 build(deps): bump cachix/install-nix-action from 18 to 19
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 18 to 19.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v18...v19)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-28 22:32:01 +01:00
Astro
3e4a3578c0
Merge pull request #49 from astro/dependabot/github_actions/DeterminateSystems/update-flake-lock-16
build(deps): bump DeterminateSystems/update-flake-lock from 15 to 16
2023-02-28 22:31:39 +01:00
Astro
e9cf364835
Merge pull request #39 from astro/dependabot/github_actions/cachix/install-nix-action-18
build(deps): bump cachix/install-nix-action from 17 to 18
2023-01-23 23:35:01 +01:00
dependabot[bot]
cc55ce5a47
build(deps): bump cachix/install-nix-action from 17 to 18
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-23 22:34:37 +00:00
Astro
2591fe3428
Merge pull request #41 from astro/dependabot/github_actions/cachix/cachix-action-12
build(deps): bump cachix/cachix-action from 10 to 12
2023-01-23 23:33:45 +01:00
dependabot[bot]
99c2f90002
build(deps): bump DeterminateSystems/update-flake-lock from 15 to 16
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 15 to 16.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v15...v16)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-23 18:04:22 +00:00
Astro
64a2ce5e34
Merge pull request #48 from Artturin/fixbuild1
dont fail the build when pedantic clippy errors
2023-01-23 18:32:15 +01:00
Artturin
6b529fe23a dont fail the build when pedantic clippy errors 2023-01-23 17:24:21 +02:00
Artturin
36409064e1 update inputs 2023-01-23 17:21:58 +02:00
Astro
d8e8ab9c55
Merge pull request #47 from Artturin/fixclippybuild1
update nixpkgs input and fix clippy errors
2022-12-16 17:10:48 +01:00
Artturin
f6a9d64cec update nixpkgs input and fix clippy errors 2022-12-14 19:43:09 +02:00
Astro
eed5036d24
Merge pull request #46 from Artturin/fixbuilderr
fix clippy error on nixos-unstable
2022-12-14 15:40:21 +01:00
Artturin
42d5a6997b fix nonminimal_bool
warning: this boolean expression can be simplified
  --> src/dead_code.rs:56:24
   |
56 |                       if binding.is_mortal()
   |  ________________________^
57 | |                     && !(self.no_underscore && binding.name.as_str().starts_with('_'))
58 | |                     && !(self.no_lambda_pattern_names && scope.is_lambda_pattern_name(&binding.name))
59 | |                     && !scope.bodies().any(|body| {
...  |
65 | |                         usage::find(&binding.name, &body)
66 | |                     }) {
   | |______________________^
   |
   = note: `#[warn(clippy::nonminimal_bool)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
help: try
   |
56 ~                     if !(!binding.is_mortal() || scope.bodies().any(|body| {
57 +                         // exclude this binding's own node
58 +                         body != binding.body_node &&
59 +                         // excluding already unused results
60 +                         dead.get(&body).is_none() &&
61 +                         // find if used anywhere
62 +                         usage::find(&binding.name, &body)
63 ~                     }) || self.no_underscore && binding.name.as_str().starts_with('_') || self.no_lambda_pattern_names && scope.is_lambda_pattern_name(&binding.name)) {
   |
2022-12-13 21:53:18 +02:00
Artturin
457c698a65 run 'cargo fmt' 2022-12-13 21:50:35 +02:00
Artturin
d5199d0015 fix clippy error on nixos-unstable 2022-12-13 21:46:19 +02:00
Astro
901f6c741d
Merge pull request #45 from astro/dependabot/github_actions/DeterminateSystems/update-flake-lock-15
build(deps): bump DeterminateSystems/update-flake-lock from 14 to 15
2022-12-05 20:25:08 +01:00
dependabot[bot]
889947e908
build(deps): bump DeterminateSystems/update-flake-lock from 14 to 15
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 14 to 15.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v14...v15)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 18:07:47 +00:00
Astro
894506ca23
Merge pull request #44 from l0b0/feat/pre-commit-hook
feat: Provide pre-commit hook configuration and docs
2022-12-05 14:25:53 +01:00
Victor Engmark
60af7e9880 feat: Provide pre-commit hook configuration and docs 2022-12-05 22:09:19 +13:00
Astro
29303ce4c0
Merge pull request #43 from Artturin/flakeimp
flake.nix: improve
2022-11-27 19:38:04 +01:00
Artturin
7419804f9f flake.nix: improve
used https://github.com/nix-community/comma/blob/master/flake.nix as a
base
2022-11-27 20:22:18 +02:00
Astro
42f1a0b539
Merge pull request #42 from toastal/read
README fixups
2022-11-05 14:33:26 +01:00
toastal
d545db1dbc Update the example.nix example block in README 2022-11-05 16:42:31 +07:00
toastal
111c59f886 Update help text in README 2022-11-05 16:37:32 +07:00
toastal
b5fcdcebc7 Use console syntax for shell session blocks 2022-11-05 16:36:01 +07:00
dependabot[bot]
f2c3cf8520
build(deps): bump cachix/cachix-action from 10 to 12
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 10 to 12.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v10...v12)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 18:20:34 +00:00
Astro
e351b88257 main: delint 2022-10-13 03:28:57 +02:00
Astro
592cbab937 main: delint 2022-10-13 02:29:09 +02:00
Astro
b25358c68e Cargo.toml: bump version to 1.0.0 2022-10-12 23:39:43 +02:00