-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* enable solhint for /shared/ folder add others to ignore file add solhint to CICD * add chainlink-solidity ruleset * reduce ignore scope & fix interface folder issues * rm unused imports * clean /libraries * set no-unused-import to error * allow 968 warnings, the number we currently have * fix second layer imports * contracts/v0.8: fix solhint warnings for vrf contracts (#10875) * rm no-inline-assembly rule --------- Co-authored-by: Makram <makramkd@users.noreply.github.com>
- Loading branch information
Showing
108 changed files
with
531 additions
and
285 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
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,7 +1,42 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"plugins": ["prettier"], | ||
"plugins": ["prettier", "chainlink-solidity"], | ||
"rules": { | ||
"prettier/prettier": "error" | ||
"compiler-version": ["off", "^0.8.0"], | ||
"const-name-snakecase": "off", | ||
"constructor-syntax": "error", | ||
"var-name-mixedcase": "off", | ||
"func-named-parameters": "off", | ||
"immutable-vars-naming": "off", | ||
"no-inline-assembly": "off", | ||
"no-unused-import": "error", | ||
"func-visibility": [ | ||
"error", | ||
{ | ||
"ignoreConstructors": true | ||
} | ||
], | ||
"not-rely-on-time": "off", | ||
"prettier/prettier": [ | ||
"off", | ||
{ | ||
"endOfLine": "auto" | ||
} | ||
], | ||
"no-empty-blocks": "off", | ||
"quotes": ["error", "double"], | ||
"reason-string": [ | ||
"warn", | ||
{ | ||
"maxLength": 64 | ||
} | ||
], | ||
"chainlink-solidity/prefix-internal-functions-with-underscore": "warn", | ||
"chainlink-solidity/prefix-private-functions-with-underscore": "warn", | ||
"chainlink-solidity/prefix-storage-variables-with-s-underscore": "warn", | ||
"chainlink-solidity/prefix-immutable-variables-with-i": "warn", | ||
"chainlink-solidity/all-caps-constant-storage-variables": "warn", | ||
"chainlink-solidity/no-hardhat-imports": "warn", | ||
"chainlink-solidity/inherited-constructor-args-not-in-contract-definition": "warn" | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1,32 @@ | ||
node_modules/ | ||
# 368 warnings | ||
#./src/v0.8/automation | ||
# 302 warnings | ||
#./src/v0.8/dev | ||
# 91 warnings | ||
#./src/v0.8/functions | ||
# 91 warnings | ||
#./src/v0.8/l2ep/dev | ||
# 116 warnings | ||
#./src/v0.8/vrf | ||
|
||
# Temp ignore the following files as they contain issues. | ||
./src/v0.8/ChainlinkClient.sol | ||
./src/v0.8/Flags.sol | ||
./src/v0.8/KeepersVRFConsumer.sol | ||
./src/v0.8/PermissionedForwardProxy.sol | ||
./src/v0.8/ValidatorProxy.sol | ||
./src/v0.8/Chainlink.sol | ||
./src/v0.8/ChainSpecificUtil.sol | ||
|
||
|
||
# Ignore tests, this should not be the long term plan but is OK in the short term | ||
./src/v0.8/**/*.t.sol | ||
./src/v0.8/mocks | ||
./src/v0.8/tests | ||
./src/v0.8/llo-feeds/test | ||
./src/v0.8/vrf/testhelpers | ||
./src/v0.8/functions/tests | ||
|
||
# Always ignore vendor | ||
./src/v0.8/vendor | ||
./node_modules/ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
Oops, something went wrong.