Lints and suggestions for the Nix programming language
at main 55 lines 1.2 kB view raw
1VFS 2--- 3- do all the IO in one place 4- pass file handles around 5 6Interface 7--------- 8- load files to be read as VFS 9- path interner 10- traits to go from Report to text/errfmt 11- offline documentation/explaination for lints 12 13Fix 14--- 15- multipass runner with hare & tortoise for cycle detection 16- fix all possible suggestions 17- work with a config generated by CLI 18- read data from VFS 19- produce a Report 20 21Analysis 22-------- 23- work with a config generated by CLI 24- read data from VFS 25- produce a Report 26 27Tests 28----- 29- figure out a way to generate stable singleline output for 30 analysis tests 31- use stderr tests for fixes 32 33Lint ideas 34---------- 35- unused let bindings 36- unused rec 37- invalid or potentially risky string interpolations 38- useless parens in infix exprs 39- unused function params 40- manual map over list 41- merge inherit 42- merge inherit-from 43- empty inherit 44- useless antiquote/splice (where is antiquote truly 45 required?) 46- useless variadic (things like `{...} : expr`, replace with 47 `_: expr`) 48- redundant pattern `{...} @ inputs : expr`, replace with 49 `inputs: expr` 50- useless hasAttr: `if x ? a then x.a else default` can be 51 replaced with `x.a or default` 52 53Extensions 54---------- 55- vim plugin to populate location list with errors