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/prolog/swipl.vim
5 call ale#linter#Reset()
7 Execute (The swipl handler should handle oneline warning / error):
8 call ale#test#SetFilename('test.pl')
14 \ 'text': 'Syntax error: Operator expected',
18 \ ale_linters#prolog#swipl#Handle(bufnr(''), [
19 \ 'ERROR: /path/to/test.pl:5:1: Syntax error: Operator expected',
22 Execute (The swipl handler should handle a warning / error of two lines):
23 call ale#test#SetFilename('test.pl')
29 \ 'text': 'Singleton variables: [M]',
33 \ ale_linters#prolog#swipl#Handle(bufnr(''), [
34 \ 'Warning: /path/to/test.pl:9:',
35 \ ' Singleton variables: [M]',
38 Execute (The swipl handler should handle a warning / error of two lines in the new format):
39 call ale#test#SetFilename('test.pl')
45 \ 'text': 'Singleton variables: [M]',
49 \ ale_linters#prolog#swipl#Handle(bufnr(''), [
50 \ 'Warning: /path/to/test.pl:9:',
51 \ 'Warning: Singleton variables: [M]',
54 Execute (The swipl handler should join three or more lines with '. '):
55 call ale#test#SetFilename('test.pl')
61 \ 'text': 'Clauses of fib/2 are not together in the source-file. Earlier definition at /path/to/test.pl:7. Current predicate: f/0. Use :- discontiguous fib/2. to suppress this message',
65 \ ale_linters#prolog#swipl#Handle(bufnr(''), [
66 \ 'Warning: /path/to/test.pl:10:',
67 \ ' Clauses of fib/2 are not together in the source-file',
68 \ ' Earlier definition at /path/to/test.pl:7',
69 \ ' Current predicate: f/0',
70 \ ' Use :- discontiguous fib/2. to suppress this message',
73 Execute (The swipl handler should ignore warnings / errors 'No permission to call sandboxed ...'):
74 call ale#test#SetFilename('test.pl')
77 \ ale_linters#prolog#swipl#Handle(bufnr(''), [
78 \ 'ERROR: /path/to/test.pl:11:',
79 \ ' No permission to call sandboxed `''$set_predicate_attribute''(_G3416:_G3417,_G3413,_G3414)''',
81 \ ' system:''$set_pattr''(A,B,C,D)',
82 \ ' system:''$set_pattr''(vimscript:A,B,C)',
83 \ ' vimscript: (multifile A)',
84 \ 'ERROR: /path/to/test.pl:12:',
85 \ ' No permission to call sandboxed `''$set_predicate_attribute''(_G205:_G206,_G202,_G203)''',
87 \ ' system:''$set_pattr''(A,B,C,D)',
88 \ ' system:''$set_pattr''(vimscript:A,B,C)',
89 \ ' vimscript: (multifile A)',
90 \ 'ERROR: /path/to/test.pl:13:',
91 \ ' No permission to call sandboxed `''$set_predicate_attribute''(_G1808:_G1809,_G1805,_G1806)''',
93 \ ' system:''$set_pattr''(A,B,C,D)',
94 \ ' system:''$set_pattr''(vimscript:A,B,C)',
95 \ ' vimscript: (multifile A)',
98 Execute (The swipl handler should join three or more lines with '. ' on latest swipl):
99 call ale#test#SetFilename('test.pl')
105 \ 'text': 'Clauses of fib/2 are not together in the source-file. Earlier definition at /path/to/test.pl:7. Current predicate: f/0. Use :- discontiguous fib/2. to suppress this message',
109 \ ale_linters#prolog#swipl#Handle(bufnr(''), [
110 \ 'Warning: /path/to/test.pl:10:',
111 \ 'Warning: Clauses of fib/2 are not together in the source-file',
112 \ 'Warning: Earlier definition at /path/to/test.pl:7',
113 \ 'Warning: Current predicate: f/0',
114 \ 'Warning: Use :- discontiguous fib/2. to suppress this message',
117 Execute (The swipl handler should ignore warnings / errors 'No permission to call sandboxed with latest swpl...'):
118 call ale#test#SetFilename('test.pl')
121 \ ale_linters#prolog#swipl#Handle(bufnr(''), [
122 \ 'ERROR: /path/to/test.pl:11:',
123 \ 'ERROR: No permission to call sandboxed `''$set_predicate_attribute''(_G3416:_G3417,_G3413,_G3414)''',
124 \ 'ERROR: Reachable from:',
125 \ 'ERROR: system:''$set_pattr''(A,B,C,D)',
126 \ 'ERROR: system:''$set_pattr''(vimscript:A,B,C)',
127 \ 'ERROR: vimscript: (multifile A)',
128 \ 'ERROR: /path/to/test.pl:12:',
129 \ 'ERROR: No permission to call sandboxed `''$set_predicate_attribute''(_G205:_G206,_G202,_G203)''',
130 \ 'ERROR: Reachable from:',
131 \ 'ERROR: system:''$set_pattr''(A,B,C,D)',
132 \ 'ERROR: system:''$set_pattr''(vimscript:A,B,C)',
133 \ 'ERROR: vimscript: (multifile A)',
134 \ 'ERROR: /path/to/test.pl:13:',
135 \ 'ERROR: No permission to call sandboxed `''$set_predicate_attribute''(_G1808:_G1809,_G1805,_G1806)''',
136 \ 'ERROR: Reachable from:',
137 \ 'ERROR: system:''$set_pattr''(A,B,C,D)',
138 \ 'ERROR: system:''$set_pattr''(vimscript:A,B,C)',
139 \ 'ERROR: vimscript: (multifile A)',
142 Execute (The swipl handler should handle a warning / error with no line number):
143 call ale#test#SetFilename('test.pl')
149 \ 'text': 'Exported procedure module_name:pred/0 is not defined',
153 \ ale_linters#prolog#swipl#Handle(bufnr(''), [
154 \ 'ERROR: Exported procedure module_name:pred/0 is not defined',