|
2 | 2 | source: crates/lintspec/tests/tests-unicode-sample.rs |
3 | 3 | expression: "snapshot_content(\"./test-data/UnicodeSample.sol\",\n&ValidationOptions::default(), true, false)" |
4 | 4 | --- |
5 | | - × error UnicodeSample.BasicSample_SomeError |
6 | | - ╭─[./test-data/UnicodeSample.sol:22:41] |
7 | | - 21 │ */ |
8 | | - 22 │ error BasicSample_SomeError(uint256 _param1); |
9 | | - · ───┬─── |
10 | | - · ╰── @param _param1 is missing |
11 | | - 23 │ |
12 | | - ╰──── |
13 | | - × event UnicodeSample.BasicSample_BasicEvent |
14 | | - ╭─[./test-data/UnicodeSample.sol:27:42] |
15 | | - 26 │ */ |
16 | | - 27 │ event BasicSample_BasicEvent(uint256 _param1); |
17 | | - · ───┬─── |
18 | | - · ╰── @param _param1 is missing |
19 | | - 28 │ |
20 | | - ╰──── |
21 | | - × variable UnicodeSample.somePublicNumber |
22 | | - ╭─[./test-data/UnicodeSample.sol:35:5] |
23 | | - 34 │ |
24 | | - 35 │ ╭─▶ /** |
25 | | - 36 │ │ * @notice A public state variable |
26 | | - 37 │ │ */ |
27 | | - 38 │ ├─▶ uint256 public somePublicNumber; |
28 | | - · ╰──── @inheritdoc is missing |
29 | | - 39 │ |
30 | | - ╰──── |
31 | | - × constructor UnicodeSample.constructor |
32 | | - ╭─[./test-data/UnicodeSample.sol:40:22] |
33 | | - 39 │ |
34 | | - 40 │ constructor(bool _randomFlag) {} |
35 | | - · ─────┬───── |
36 | | - · ╰── @param _randomFlag is missing |
37 | | - 41 │ |
38 | | - ╰──── |
39 | | - × function UnicodeSample.externalSimple |
40 | | - ╭─[./test-data/UnicodeSample.sol:42:5] |
41 | | - 41 │ |
42 | | - 42 │ ╭─▶ /** |
43 | | - 43 │ │ * @notice External function that returns a bool |
44 | | - 44 │ │ * @dev A dev comment |
45 | | - 45 │ │ * @param _magicNumber A parameter description |
46 | | - 46 │ │ * @param _name Another parameter description |
47 | | - 47 │ │ * @param _name Another parameter description |
48 | | - 48 │ │ * @return _isMagic Some return data |
49 | | - 49 │ │ */ |
50 | | - 50 │ │ function externalSimple(uint256 _magicNumber, /* 🦀 */ string memory _name) |
51 | | - 51 │ │ external |
52 | | - 52 │ │ pure |
53 | | - 53 │ ├─▶ returns (bool _isMagic) |
54 | | - · ╰──── @inheritdoc is missing |
55 | | - 54 │ { |
56 | | - ╰──── |
57 | | - × function UnicodeSample.externalSimpleMultipleReturn |
58 | | - ╭─[./test-data/UnicodeSample.sol:64:5] |
59 | | - 63 │ |
60 | | - 64 │ ╭─▶ /** |
61 | | - 65 │ │ * @notice External function that returns a bool |
62 | | - 66 │ │ * @dev A dev comment |
63 | | - 67 │ │ * @param _magicNumber A parameter description |
64 | | - 68 │ │ * @param _name Another parameter description |
65 | | - 69 │ │ * @return _isMagic 🔥 Some return data |
66 | | - 70 │ │ * @return Test test |
67 | | - 71 │ │ */ |
68 | | - 72 │ │ function externalSimpleMultipleReturn(uint256 _magicNumber, string memory _name) |
69 | | - 73 │ │ external |
70 | | - 74 │ │ pure |
71 | | - 75 │ ├─▶ returns (bool _isMagic, uint256) |
72 | | - · ╰──── @inheritdoc is missing |
73 | | - 76 │ { |
74 | | - ╰──── |
75 | | - × function UnicodeSample.externalSimpleMultipleUnnamedReturn |
76 | | - ╭─[./test-data/UnicodeSample.sol:80:5] |
77 | | - 79 │ |
78 | | - 80 │ ╭─▶ /** |
79 | | - 81 │ │ * @notice External function that returns a bool |
80 | | - 82 │ │ * @dev A dev comment |
81 | | - 83 │ │ * @return Some return data |
82 | | - 84 │ │ */ |
83 | | - 85 │ ├─▶ function externalSimpleMultipleUnnamedReturn() external pure returns (bool, uint256) { |
84 | | - · ╰──── @inheritdoc is missing |
85 | | - 86 │ return (true, 111); |
86 | | - ╰──── |
87 | | - × modifier UnicodeSample.transferFee |
88 | | - ╭─[./test-data/UnicodeSample.sol:92:34] |
89 | | - 91 │ */ |
90 | | - 92 │ modifier transferFee(uint256 _receiver) virtual { |
91 | | - · ────┬──── |
92 | | - · ╰── @param _receiver is missing |
93 | | - 93 │ _; |
94 | | - ╰──── |
| 5 | + x error UnicodeSample.BasicSample_SomeError |
| 6 | + ,-[./test-data/UnicodeSample.sol:22:41] |
| 7 | + 21 | */ |
| 8 | + 22 | error BasicSample_SomeError(uint256 _param1); |
| 9 | + : ^^^|^^^ |
| 10 | + : `-- @param _param1 is missing |
| 11 | + 23 | |
| 12 | + `---- |
| 13 | + x event UnicodeSample.BasicSample_BasicEvent |
| 14 | + ,-[./test-data/UnicodeSample.sol:27:42] |
| 15 | + 26 | */ |
| 16 | + 27 | event BasicSample_BasicEvent(uint256 _param1); |
| 17 | + : ^^^|^^^ |
| 18 | + : `-- @param _param1 is missing |
| 19 | + 28 | |
| 20 | + `---- |
| 21 | + x variable UnicodeSample.somePublicNumber |
| 22 | + ,-[./test-data/UnicodeSample.sol:35:5] |
| 23 | + 34 | |
| 24 | + 35 | ,-> /** |
| 25 | + 36 | | * @notice A public state variable |
| 26 | + 37 | | */ |
| 27 | + 38 | |-> uint256 public somePublicNumber; |
| 28 | + : `---- @inheritdoc is missing |
| 29 | + 39 | |
| 30 | + `---- |
| 31 | + x constructor UnicodeSample.constructor |
| 32 | + ,-[./test-data/UnicodeSample.sol:40:22] |
| 33 | + 39 | |
| 34 | + 40 | constructor(bool _randomFlag) {} |
| 35 | + : ^^^^^|^^^^^ |
| 36 | + : `-- @param _randomFlag is missing |
| 37 | + 41 | |
| 38 | + `---- |
| 39 | + x function UnicodeSample.externalSimple |
| 40 | + ,-[./test-data/UnicodeSample.sol:42:5] |
| 41 | + 41 | |
| 42 | + 42 | ,-> /** |
| 43 | + 43 | | * @notice External function that returns a bool |
| 44 | + 44 | | * @dev A dev comment |
| 45 | + 45 | | * @param _magicNumber A parameter description |
| 46 | + 46 | | * @param _name Another parameter description |
| 47 | + 47 | | * @param _name Another parameter description |
| 48 | + 48 | | * @return _isMagic Some return data |
| 49 | + 49 | | */ |
| 50 | + 50 | | function externalSimple(uint256 _magicNumber, /* 🦀 */ string memory _name) |
| 51 | + 51 | | external |
| 52 | + 52 | | pure |
| 53 | + 53 | |-> returns (bool _isMagic) |
| 54 | + : `---- @inheritdoc is missing |
| 55 | + 54 | { |
| 56 | + `---- |
| 57 | + x function UnicodeSample.externalSimpleMultipleReturn |
| 58 | + ,-[./test-data/UnicodeSample.sol:64:5] |
| 59 | + 63 | |
| 60 | + 64 | ,-> /** |
| 61 | + 65 | | * @notice External function that returns a bool |
| 62 | + 66 | | * @dev A dev comment |
| 63 | + 67 | | * @param _magicNumber A parameter description |
| 64 | + 68 | | * @param _name Another parameter description |
| 65 | + 69 | | * @return _isMagic 🔥 Some return data |
| 66 | + 70 | | * @return Test test |
| 67 | + 71 | | */ |
| 68 | + 72 | | function externalSimpleMultipleReturn(uint256 _magicNumber, string memory _name) |
| 69 | + 73 | | external |
| 70 | + 74 | | pure |
| 71 | + 75 | |-> returns (bool _isMagic, uint256) |
| 72 | + : `---- @inheritdoc is missing |
| 73 | + 76 | { |
| 74 | + `---- |
| 75 | + x function UnicodeSample.externalSimpleMultipleUnnamedReturn |
| 76 | + ,-[./test-data/UnicodeSample.sol:80:5] |
| 77 | + 79 | |
| 78 | + 80 | ,-> /** |
| 79 | + 81 | | * @notice External function that returns a bool |
| 80 | + 82 | | * @dev A dev comment |
| 81 | + 83 | | * @return Some return data |
| 82 | + 84 | | */ |
| 83 | + 85 | |-> function externalSimpleMultipleUnnamedReturn() external pure returns (bool, uint256) { |
| 84 | + : `---- @inheritdoc is missing |
| 85 | + 86 | return (true, 111); |
| 86 | + `---- |
| 87 | + x modifier UnicodeSample.transferFee |
| 88 | + ,-[./test-data/UnicodeSample.sol:92:34] |
| 89 | + 91 | */ |
| 90 | + 92 | modifier transferFee(uint256 _receiver) virtual { |
| 91 | + : ^^^^|^^^^ |
| 92 | + : `-- @param _receiver is missing |
| 93 | + 93 | _; |
| 94 | + `---- |
0 commit comments