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 deprecated_to_path

+77 -44
-6
bin/tests/data/deprecated_to_path.nix
··· 1 - [ 2 - (builtins.toPath x) 3 - (toPath x) 4 - (toPath "/abc/def") 5 - (builtins.toPath "/some/path") 6 - ]
+13
bin/tests/deprecated_to_path.rs
··· 1 + mod _utils; 2 + 3 + use macros::generate_tests; 4 + 5 + generate_tests! { 6 + rule: manual_inherit, 7 + expressions: [ 8 + "builtins.toPath x", 9 + "toPath x", 10 + r#"toPath "/abc/def""#, 11 + r#"builtins.toPath "/some/path""#, 12 + ], 13 + }
-1
bin/tests/main.rs
··· 44 44 } 45 45 46 46 test_lint! { 47 - deprecated_to_path, 48 47 useless_has_attr, 49 48 repeated_keys, 50 49 empty_list_concat
+5
bin/tests/snapshots/deprecated_to_path__fix_174dc0d1d9e78fd30b854475b82a991795814e0bfc6a3fc90f46e7370f2f63dc.snap
··· 1 + --- 2 + source: bin/tests/deprecated_to_path.rs 3 + expression: "\"builtins.toPath \\\"/some/path\\\"\"" 4 + --- 5 +
+5
bin/tests/snapshots/deprecated_to_path__fix_4f2c5321b7dbd2171c77729c879745a1f6209972b4a9d367bd5fb41a83c42e99.snap
··· 1 + --- 2 + source: bin/tests/deprecated_to_path.rs 3 + expression: "\"toPath x\"" 4 + --- 5 +
+5
bin/tests/snapshots/deprecated_to_path__fix_b7ca5bc4bbe1fe57468d47f2df8fac29361ae090a84ea6afdea842170517ae14.snap
··· 1 + --- 2 + source: bin/tests/deprecated_to_path.rs 3 + expression: "\"builtins.toPath x\"" 4 + --- 5 +
+5
bin/tests/snapshots/deprecated_to_path__fix_babcf3ca5fe7ee69b692a0e6ccfbfdf4f08823229d054ee85af87dc3d52d41ea.snap
··· 1 + --- 2 + source: bin/tests/deprecated_to_path.rs 3 + expression: "\"toPath \\\"/abc/def\\\"\"" 4 + --- 5 +
+11
bin/tests/snapshots/deprecated_to_path__lint_174dc0d1d9e78fd30b854475b82a991795814e0bfc6a3fc90f46e7370f2f63dc.snap
··· 1 + --- 2 + source: bin/tests/deprecated_to_path.rs 3 + expression: "\"builtins.toPath \\\"/some/path\\\"\"" 4 + --- 5 + [W17] Warning: Found usage of deprecated builtin toPath 6 + ╭─[<temp_file_path>:1:1] 7 + 8 + 1 │ builtins.toPath "/some/path" 9 + · ──────────────┬───────────── 10 + · ╰─────────────── builtins.toPath is deprecated, see :doc builtins.toPath within the REPL for more 11 + ───╯
+11
bin/tests/snapshots/deprecated_to_path__lint_4f2c5321b7dbd2171c77729c879745a1f6209972b4a9d367bd5fb41a83c42e99.snap
··· 1 + --- 2 + source: bin/tests/deprecated_to_path.rs 3 + expression: "\"toPath x\"" 4 + --- 5 + [W17] Warning: Found usage of deprecated builtin toPath 6 + ╭─[<temp_file_path>:1:1] 7 + 8 + 1 │ toPath x 9 + · ────┬─── 10 + · ╰───── toPath is deprecated, see :doc builtins.toPath within the REPL for more 11 + ───╯
+11
bin/tests/snapshots/deprecated_to_path__lint_b7ca5bc4bbe1fe57468d47f2df8fac29361ae090a84ea6afdea842170517ae14.snap
··· 1 + --- 2 + source: bin/tests/deprecated_to_path.rs 3 + expression: "\"builtins.toPath x\"" 4 + --- 5 + [W17] Warning: Found usage of deprecated builtin toPath 6 + ╭─[<temp_file_path>:1:1] 7 + 8 + 1 │ builtins.toPath x 9 + · ────────┬──────── 10 + · ╰────────── builtins.toPath is deprecated, see :doc builtins.toPath within the REPL for more 11 + ───╯
+11
bin/tests/snapshots/deprecated_to_path__lint_babcf3ca5fe7ee69b692a0e6ccfbfdf4f08823229d054ee85af87dc3d52d41ea.snap
··· 1 + --- 2 + source: bin/tests/deprecated_to_path.rs 3 + expression: "\"toPath \\\"/abc/def\\\"\"" 4 + --- 5 + [W17] Warning: Found usage of deprecated builtin toPath 6 + ╭─[<temp_file_path>:1:1] 7 + 8 + 1 │ toPath "/abc/def" 9 + · ────────┬──────── 10 + · ╰────────── toPath is deprecated, see :doc builtins.toPath within the REPL for more 11 + ───╯
-5
bin/tests/snapshots/main__deprecated_to_path_fix.snap
··· 1 - --- 2 - source: bin/tests/main.rs 3 - expression: "&stdout" 4 - --- 5 -
-32
bin/tests/snapshots/main__deprecated_to_path_lint.snap
··· 1 - --- 2 - source: bin/tests/main.rs 3 - expression: "&stdout" 4 - --- 5 - [W17] Warning: Found usage of deprecated builtin toPath 6 - ╭─[tests/data/deprecated_to_path.nix:2:4] 7 - 8 - 2 │ (builtins.toPath x) 9 - · ────────┬──────── 10 - · ╰────────── builtins.toPath is deprecated, see :doc builtins.toPath within the REPL for more 11 - ───╯ 12 - [W17] Warning: Found usage of deprecated builtin toPath 13 - ╭─[tests/data/deprecated_to_path.nix:3:4] 14 - 15 - 3 │ (toPath x) 16 - · ────┬─── 17 - · ╰───── toPath is deprecated, see :doc builtins.toPath within the REPL for more 18 - ───╯ 19 - [W17] Warning: Found usage of deprecated builtin toPath 20 - ╭─[tests/data/deprecated_to_path.nix:4:4] 21 - 22 - 4 │ (toPath "/abc/def") 23 - · ────────┬──────── 24 - · ╰────────── toPath is deprecated, see :doc builtins.toPath within the REPL for more 25 - ───╯ 26 - [W17] Warning: Found usage of deprecated builtin toPath 27 - ╭─[tests/data/deprecated_to_path.nix:5:4] 28 - 29 - 5 │ (builtins.toPath "/some/path") 30 - · ──────────────┬───────────── 31 - · ╰─────────────── builtins.toPath is deprecated, see :doc builtins.toPath within the REPL for more 32 - ───╯