install.fairie/dotfiles/.vim/plugged/ale/test/handler/test_solc_handler.vader
Git E2E Dev Test Username e149692cc9 git subrepo clone https://github.com/dense-analysis/ale.git ./dotfiles/.vim/plugged/ale
subrepo:
  subdir:   "dotfiles/.vim/plugged/ale"
  merged:   "e4b205440"
upstream:
  origin:   "https://github.com/dense-analysis/ale.git"
  branch:   "master"
  commit:   "e4b205440"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:09 -04:00

34 lines
1.1 KiB
Text

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(''), [
\ '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);',
\ ' | ^----------------------^',
\ ])