mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 01:53:30 +08:00
Add support for solc Solidity compiler (#2648)
* Add support for `solc` Solidity compiler * Set default value for `solidity_solc_options` * Add test for solc handler
This commit is contained in:
30
test/handler/test_solc_handler.vader
Normal file
30
test/handler/test_solc_handler.vader
Normal file
@@ -0,0 +1,30 @@
|
||||
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(''), [
|
||||
\ 'raiden_contracts/data/source/raiden/Token.sol:40:48: Warning: This declaration shadows an existing declaration.',
|
||||
\ ' function decimals() external view returns (uint8 decimals);',
|
||||
\ ' ^------------^',
|
||||
\ '/home/karl/raiden-contracts/raiden_contracts/data/source/test/OneToNInternalsTest.sol:23:16: Error: Member "getSinleSignature" not found or not visible after argument-dependent lookup in type(contract OneToN).',
|
||||
\ ' return OneToN.getSinleSignature(signatures, i);',
|
||||
\ ' ^----------------------^',
|
||||
\ ])
|
||||
Reference in New Issue
Block a user