All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 runtime ale_linters/nix/nix.vim
5 call ale#linter#Reset()
7 Execute(The nix handler should parse nix-instantiate error messages correctly):
14 \ 'text': "syntax error, unexpected ']', expecting ';'",
20 \ 'text': "undefined variable 'foo'",
24 \ ale_linters#nix#nix#Handle(bufnr(''), [
25 \ "@nix {\"line\":6,\"column\":3,\"raw_msg\":\"syntax error, unexpected ']', expecting ';'\"}",
26 \ "@nix {\"line\":3,\"column\":5,\"raw_msg\":\"undefined variable 'foo'\"}",
27 \ "@nix {\"unrelated\":\"message\"}"
30 Execute(The nix handler should parse nix-instantiate error messages with ANSI color codes correctly):
37 \ 'text': "undefined variable 'foo'",
41 \ ale_linters#nix#nix#Handle(bufnr(''), [
42 \ "@nix {\"line\":3,\"column\":5,\"raw_msg\":\"undefined variable '\\u001b[35;1mfoo\\u001b[0m'\"}",
43 \ "@nix {\"unrelated\":\"message\"}"
46 Execute(The nix handler should parse message from old nix-instantiate correctly):
52 \ 'text': 'error: syntax error, unexpected IN',
58 \ 'text': 'error: syntax error, unexpected ''='', expecting '';''',
63 \ ale_linters#nix#nix#Handle(47, [
64 \ 'This line should be ignored',
65 \ 'error: syntax error, unexpected IN, at /path/to/filename.nix:23:14',
66 \ 'error: syntax error, unexpected ''='', expecting '';'', at /path/to/filename.nix:3:12',
69 Execute(The nix command should not add 'log-format' option for nix version 2.3):
71 \ 'nix-instantiate --parse -',
72 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.3.0'], '')
74 Execute(The nix command should add 'log-format' option for nix version 2.4):
76 \ 'nix-instantiate --log-format internal-json --parse -',
77 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.4.1'], '')
79 Execute(The nix command should add 'log-format' option for nix version 2.5):
81 \ 'nix-instantiate --log-format internal-json --parse -',
82 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.5.0pre20211206_d1aaa7e'], '')
84 Execute(The nix command should add 'log-format' option for nix version 2.6):
86 \ 'nix-instantiate --log-format internal-json --parse -',
87 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.6.0pre20211206_ignored'], '')
89 Execute(The nix command should add 'log-format' option for nix version 2.7):
91 \ 'nix-instantiate --log-format internal-json --parse -',
92 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.7.0pre20211206_ignored'], '')
94 Execute(The nix command should add 'log-format' option for nix version 2.8):
96 \ 'nix-instantiate --log-format internal-json --parse -',
97 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.8.0pre20211206_ignored'], '')
99 Execute(The nix command should add 'log-format' option for nix version 2.9):
101 \ 'nix-instantiate --log-format internal-json --parse -',
102 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.9.0pre20211206_ignored'], '')
104 Execute(The nix command should add 'log-format' option for nix version 2.10):
106 \ 'nix-instantiate --log-format internal-json --parse -',
107 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.10.0pre20221221_ignored'], '')
109 Execute(The nix command should add 'log-format' option for nix version 2.20):
111 \ 'nix-instantiate --log-format internal-json --parse -',
112 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.20.0pre20221221_ignored'], '')
114 Execute(The nix command should add 'log-format' option for nix version 3.0):
116 \ 'nix-instantiate --log-format internal-json --parse -',
117 \ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 3.0.0pre20211206_ignored'], '')