Lints and suggestions for the Nix programming language
1
fork

Configure Feed

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

chore: 1-expr tests unquoted_uri

+22 -14
-1
bin/tests/data/unquoted_uri.nix
··· 1 - github:nerdypepper/statix
-1
bin/tests/main.rs
··· 44 44 } 45 45 46 46 test_lint! { 47 - unquoted_uri, 48 47 empty_inherit, 49 48 deprecated_to_path, 50 49 useless_has_attr,
-9
bin/tests/snapshots/main__unquoted_uri_fix.snap
··· 1 - --- 2 - source: bin/tests/main.rs 3 - expression: "&stdout" 4 - --- 5 - --- tests/data/unquoted_uri.nix 6 - +++ tests/data/unquoted_uri.nix [fixed] 7 - @@ -1 +1 @@ 8 - -github:nerdypepper/statix 9 - +"github:nerdypepper/statix"
+3 -3
bin/tests/snapshots/main__unquoted_uri_lint.snap bin/tests/snapshots/unquoted_uri__lint_33baa84c37bca40983a14f7acf371ef056c6037384f9ceb0389472c2c4ce4327.snap
··· 1 1 --- 2 - source: bin/tests/main.rs 3 - expression: "&stdout" 2 + source: bin/tests/unquoted_uri.rs 3 + expression: "\"github:nerdypepper/statix\"" 4 4 --- 5 5 [W12] Warning: Found unquoted URI expression 6 - ╭─[tests/data/unquoted_uri.nix:1:1] 6 + ╭─[<temp_file_path>:1:1] 7 7 8 8 1 │ github:nerdypepper/statix 9 9 · ────────────┬────────────
+9
bin/tests/snapshots/unquoted_uri__fix_33baa84c37bca40983a14f7acf371ef056c6037384f9ceb0389472c2c4ce4327.snap
··· 1 + --- 2 + source: bin/tests/unquoted_uri.rs 3 + expression: "\"github:nerdypepper/statix\"" 4 + --- 5 + --- <temp_file_path> 6 + +++ <temp_file_path> [fixed] 7 + @@ -1 +1 @@ 8 + -github:nerdypepper/statix 9 + +"github:nerdypepper/statix"
+10
bin/tests/unquoted_uri.rs
··· 1 + mod _utils; 2 + 3 + use macros::generate_tests; 4 + 5 + generate_tests! { 6 + rule: manual_inherit, 7 + expressions: [ 8 + "github:nerdypepper/statix" 9 + ], 10 + }