Lints and suggestions for the Nix programming language
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

style: replace TODO comments with LATER

+3 -3
+1 -1
bin/tests/data/useless_parens.nix
··· 10 10 g = (1 + 2); 11 11 h = ({ inherit i; }); 12 12 13 - # TODO: binary exprs, function args etc. 13 + # LATER: binary exprs, function args etc. 14 14 in 15 15 # parens around let body 16 16 (null)
+1 -1
bin/tests/snapshots/main__useless_parens_fix.snap
··· 22 22 + g = 1 + 2; 23 23 + h = { inherit i; }; 24 24 25 - # TODO: binary exprs, function args etc. 25 + # LATER: binary exprs, function args etc. 26 26 in 27 27 # parens around let body 28 28 - (null)
+1 -1
lib/src/make.rs
··· 84 84 ast_from_text("") 85 85 } 86 86 87 - // TODO: make `op` strongly typed here 87 + // LATER: make `op` strongly typed here 88 88 pub fn binary(lhs: &SyntaxNode, op: &str, rhs: &SyntaxNode) -> types::BinOp { 89 89 ast_from_text(&format!("{lhs} {op} {rhs}")) 90 90 }