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 call ale#test#SetDirectory('/testplugin/test/handler')
5 call ale#test#RestoreDirectory()
7 Execute(Basic errors should be handled by cppcheck):
8 call ale#test#SetFilename('test.cpp')
17 \ 'text': 'Array ''n[3]'' accessed at index 3, which is out of bounds.',
18 \ 'code': 'arrayIndexOutOfBounds'
24 \ 'sub_type': 'style',
25 \ 'text': 'The scope of the variable ''indxStr'' can be reduced.',
26 \ 'code': 'variableScope'
29 \ ale#handlers#cppcheck#HandleCppCheckFormat(bufnr(''), [
30 \ 'test.cpp:974:6: error: Array ''n[3]'' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds]\',
33 \ 'test.cpp:1185:10: style: The scope of the variable ''indxStr'' can be reduced. [variableScope]\',
34 \ ' char indxStr[16];',
45 \ 'text': 'inconclusive Array ''n[3]'' accessed at index 3, which is out of bounds.',
46 \ 'code': 'arrayIndexOutOfBounds'
52 \ 'sub_type': 'style',
53 \ 'text': 'The scope of the variable ''indxStr'' can be reduced.',
54 \ 'code': 'variableScope'
57 \ ale#handlers#cppcheck#HandleCppCheckFormat(bufnr(''), [
58 \ 'test.cpp:974:{column}: error:inconclusive Array ''n[3]'' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds]\',
61 \ 'test.cpp:1185:{column}: style:{inconclusive:inconclusive} The scope of the variable ''indxStr'' can be reduced. [variableScope]\',
62 \ ' char indxStr[16];',
72 \ 'sub_type': 'style',
73 \ 'text': 'misra violation (use --rule-texts=<file> to get proper output)',
74 \ 'code': 'misra-c2012-2.7'
77 \ ale#handlers#cppcheck#HandleCppCheckFormat(bufnr(''), [
78 \ 'test.cpp:1:16: style: misra violation (use --rule-texts=<file> to get proper output) [misra-c2012-2.7]\',
79 \ 'void test( int parm ) {}',
83 Execute(Problems from other files should be ignored by cppcheck):
84 call ale#test#SetFilename('test.cpp')
89 \ ale#handlers#cppcheck#HandleCppCheckFormat(bufnr(''), [
90 \ 'bar.cpp:974:6: error: Array ''n[3]'' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds]\',