treewide: remove unused with statements from maintainer lists#330664
treewide: remove unused with statements from maintainer lists#330664Aleksanaa merged 1 commit intoNixOS:masterfrom
with statements from maintainer lists#330664Conversation
|
Thanks! Btw there's a |
with statements from maintainer lists
6b35a80 to
397bdf7
Compare
Done |
|
I'll revisit after 1 hour |
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
|
What's the value of removing these besides "shush the linter"? Given that we want packages ideally to have maintainers anyways, I'd argue that keeping these around might be worthwhile? They probably also don't hurt performance, or at the very least could easily be optimized away to have no performance impact. I'd argue that the linter is wrong to complain about cases like these, and should distinguish from other cases I'd consider as valid, like unused with lib; for example. (Specifically, I'd draw the line at "an unused with is fine if it's scoped only to an empty list") |
|
Just found another PR where the linter was a bit on the annoying side https://github.com/NixOS/nixpkgs/pull/331017/files#diff-d6928320a2c1b49a1351902a0e9683ed7f05d63fe6cdef002e4c8d365d322c13R7-R11 |
nixf-tidycomplaints now about empty maintainers set.Description of changes
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.