Files
nix/tests/functional/lang/eval-okay-short-path-variation.err.exp
John Ericson 5184f844bb New diagnostics infra
- Convert `no-url-literals` from experimental feature to `Diagnose`
  setting

  Replace `Xp::NoUrlLiterals` with a new `lint-url-literals` setting
  that accepts `ignore`, `warn`, or `fatal`. This provides more
  flexibility than the binary experimental feature.

- Convert `warn-short-path-literals` to use new lint infra

  We now have `lint-short-path-literals = ignore | warn | fatal`
  instead.

- Convert some of the tests to lang tests

Fix #10048
Progress on #10281
2026-02-25 17:29:56 -05:00

13 lines
554 B
Plaintext

warning: relative path literal 'foo/bar' should be prefixed with '.' for clarity: './foo/bar' (lint-short-path-literals)
at /pwd/lang/eval-okay-short-path-variation.nix:4:3:
3| [
4| foo/bar
| ^
5| a/b/c/d
warning: relative path literal 'a/b/c/d' should be prefixed with '.' for clarity: './a/b/c/d' (lint-short-path-literals)
at /pwd/lang/eval-okay-short-path-variation.nix:5:3:
4| foo/bar
5| a/b/c/d
| ^
6| ]