-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #533 from protofire/autofix-event-name-camelcase
Autofix event name camelcase
- Loading branch information
Showing
7 changed files
with
187 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rules": { | ||
"event-name-camelcase": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.0; | ||
|
||
contract Generic { | ||
|
||
event not_UsedEvent1(uint256 indexed amount, address account); | ||
|
||
event __not_UsedEvent___2(uint256 indexed amount, address indexed account); | ||
|
||
event not___UsedEvent3(uint256 amount, address account); | ||
|
||
event notUsedEvent4(uint256 indexed amount, address indexed account); | ||
|
||
event notUsedEvent5____(uint256 indexed amount, address account); | ||
|
||
event __not_UsedEvent6__(uint256 indexed amount, address account); | ||
|
||
event OkEvent1(uint256 indexed amount, address account); | ||
|
||
event OkEventOk2(uint256 indexed amount, address indexed account); | ||
|
||
constructor() {} | ||
|
||
function function1() external pure { | ||
uint af1 = 0; | ||
af1; | ||
} | ||
|
||
function function2() external pure { | ||
uint b; | ||
b; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.0; | ||
|
||
contract Generic { | ||
|
||
event NotUsedEvent1(uint256 indexed amount, address account); | ||
|
||
event NotUsedEvent2(uint256 indexed amount, address indexed account); | ||
|
||
event NotUsedEvent3(uint256 amount, address account); | ||
|
||
event NotUsedEvent4(uint256 indexed amount, address indexed account); | ||
|
||
event NotUsedEvent5(uint256 indexed amount, address account); | ||
|
||
event NotUsedEvent6(uint256 indexed amount, address account); | ||
|
||
event OkEvent1(uint256 indexed amount, address account); | ||
|
||
event OkEventOk2(uint256 indexed amount, address indexed account); | ||
|
||
constructor() {} | ||
|
||
function function1() external pure { | ||
uint af1 = 0; | ||
af1; | ||
} | ||
|
||
function function2() external pure { | ||
uint b; | ||
b; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.0; | ||
|
||
contract Generic { | ||
|
||
event not_UsedEvent1(uint256 indexed amount, address account); | ||
|
||
event __not_UsedEvent___2(uint256 indexed amount, address indexed account); | ||
|
||
event not___UsedEvent3(uint256 amount, address account); | ||
|
||
event notUsedEvent4(uint256 indexed amount, address indexed account); | ||
|
||
event notUsedEvent5____(uint256 indexed amount, address account); | ||
|
||
event __not_UsedEvent6__(uint256 indexed amount, address account); | ||
|
||
event OkEvent1(uint256 indexed amount, address account); | ||
|
||
event OkEventOk2(uint256 indexed amount, address indexed account); | ||
|
||
constructor() {} | ||
|
||
function function1() external pure { | ||
uint af1 = 0; | ||
af1; | ||
} | ||
|
||
function function2() external pure { | ||
uint b; | ||
b; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters