-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue: Removal of uneeded argument #313981
Comments
@Sigmanificient is there anything I can do to help out here? |
Still have
Deadninx reports |
Alright, if you don't mind I can take a shot at removing some |
A little command I made along the way, this should get you a list of all the files that have any given type of the unused lamda pattern. |
I used the following:
|
This is a good initiative, but big-change PRs tend not to survive because responsibility for the change is diffuse. Since we have an automated tool for detecting this, what if we rig a GitHub action to run it as part of PR linting, just on the files updated by that PR? |
This could be a good idea, do you want me to pr a GitHub action checking this? I am not sure how to deal with some possible edge-cases that sometimes get reported by deadnix |
I'd be happy to review it if you did! |
Do you know a good way retrieve changed files on a pr? |
https://github.com/karpikpl/list-changed-files-action is the first thing I found; looks sane enough, but I haven't used it. |
I think that there are still quite a few around, only removed a couple hundreds 😅 (~1700) |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/we-added-a-linter-to-nixpkgs-checking-workflows/49722/24 |
Issue description
There are many unneeded argument that lies around due to the update/refactor made over the years.
Let's try to clean this up!
fetchpatch
:397
fetchurl
:81
fetchFromGitHub
:64
fetchgit
:16
fetchPypi
:13
fetchFromGitLab
:9
fetchNuGet
:5
fetchsvn
:2
I will break these down to chunk of 100 than a hundred file, to make the pr review process easier
Steps to reproduce
Technical details
The text was updated successfully, but these errors were encountered: