https://discourse.nixos.org/t/linting-repeated-or-grouped-keys-polls/78464 引发大讨论了说是。群友自己觉得应该用什么呢? 应该把所有的 attrset 都“group” 起来,例如 a = { b = 1; c = 2; } 还是写成 a.b = 1; a.c = 2;
吵架的内容主要在于要不要给后者加warning.
吵架的内容主要在于要不要给后者加warning.
NixOS Discourse
Linting: Repeated or Grouped Keys - Polls
About Linting, And more precisely, about repeated or grouped keys : Example Repeated Keys { a.b = true; a.c = true; a = { d = true; }; a = { e.f = true; e.g = true; }; } Grouped Keys { a = { b = true; c = true; d = true;…
❤1