Conversation
02e7839 to
f8c065c
Compare
f8c065c to
729ac64
Compare
993cc29 to
6ed8582
Compare
|
Ok so the process is pretty straightforward now, i dont expect architectural changes. i'll finish nixos directory and call it quits for now, pkgs directory may be enabled in future prs |
6ed8582 to
ef9c746
Compare
|
|
||
| ```nix | ||
| stringAsChars (x: if x == "a" then "i" else x) "nax" | ||
| stringAsChars (x: if x == "h" then "n" else x) "hix" |
There was a problem hiding this comment.
Renamed because of typos error
ef9c746 to
7aad1e9
Compare
| @@ -0,0 +1,72 @@ | |||
| [default] | |||
| locale = "en" | |||
There was a problem hiding this comment.
We should aggree on this
Type: String (en, en-us, en-gb, en-ca, en-au)
Default: en
English dialect to correct to.
If set to en, words will be corrected to the closest spelling, regardless of which dialect that correction is part of.bab1de7 to
1f999cf
Compare
|
Very strange, |
1f999cf to
fd14d09
Compare
|
Blocking merges on minor misspellings doesn't make sense to me. |
|
This seems trivial to have and is effectively another linter. Now, spelling isn't the most important thing in the world but it does scratch that itch that some people may have when they notice typos. |
SigmaSquadron
left a comment
There was a problem hiding this comment.
I feel like the downsides outweigh the benefits here. A large section of files are blocklisted by default, and another large section of files will need constant # typos: ignore-next-line comments that do nothing but clutter code. Having a separate config file hidden away in ci/ is also horrible UX for new contributors who happen to add a new file that has an unrecognised but correctly spelled noun in it.
Finally, I don't know if there's a tangible benefit for any of this. Most people using NixOS won't be reading the corrected code comments anyways. The only benefit I see from a typos linter is if it's restricted to option descriptions in nixos/modules, meta.{longD,d}escription attributes for packages and .md files in {,nixos/}doc, as that's where most people would see typos anyway.
|
I'm leaning towards the direction of @SigmaSquadron. We can extend that later to options and doc-comments, which also lands in documentation. On the devX part there should be a good way to execute our linters locally. |
|
Aggree, will think about ways how no implement that |
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.