Synthetica9 / nix-linter

Linter for the Nix expression language
BSD 3-Clause "New" or "Revised" License
158 stars 16 forks source link

False postive UnusedArg when argument is used in a default value #38

Closed cdfa closed 3 years ago

cdfa commented 4 years ago

Hi, the following code snippet gets an unused argument warning for source, but it is used in the default value for pkgs.

{ sources ? import ../../../nix/sources.nix
, pkgs ? import sources.nixpkgs {}
}:

{}

I'm on commit 01ed700247e159db0ed8c5e2cff1fed9af582946