2019-09-19 18:40:00 +00:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/solidity/solc.vim
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(Check solc output parsing):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 40,
|
|
|
|
\ 'col': 48,
|
|
|
|
\ 'text': 'This declaration shadows an existing declaration.',
|
|
|
|
\ 'type': 'W',
|
|
|
|
\ },
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 23,
|
|
|
|
\ 'col': 16,
|
|
|
|
\ 'text': 'Member "getSinleSignature" not found or not visible after argument-dependent lookup in type(contract OneToN).',
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
|
|
|
\ ],
|
|
|
|
\ ale_linters#solidity#solc#Handle(bufnr(''), [
|
2021-07-04 12:40:12 +00:00
|
|
|
\ 'Warning: This declaration shadows an existing declaration.',
|
|
|
|
\ ' --> /path/to/file.sol:40:48:',
|
|
|
|
\ ' |',
|
|
|
|
\ '40 | function decimals() external view returns (uint8 decimals);',
|
|
|
|
\ ' | ^------------^',
|
|
|
|
\ 'Error: Member "getSinleSignature" not found or not visible after argument-dependent lookup in type(contract OneToN).',
|
|
|
|
\ ' --> /path/to/file.sol:23:16: ',
|
|
|
|
\ ' | ',
|
|
|
|
\ '23 | return OneToN.getSinleSignature(signatures, i);',
|
|
|
|
\ ' | ^----------------------^',
|
2019-09-19 18:40:00 +00:00
|
|
|
\ ])
|