-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update generated docs - run the doc generation on CI so we don't break it again - ensure the changes to the docs were commited to source control
- Loading branch information
1 parent
8b12759
commit 93996d2
Showing
8 changed files
with
352 additions
and
64 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
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,59 @@ | ||
--- | ||
warning: "This is a dynamically generated file. Do not edit manually." | ||
layout: "default" | ||
title: "no-console | Solhint" | ||
--- | ||
|
||
# no-console | ||
 | ||
 | ||
 | ||
> The {"extends": "solhint:default"} property in a configuration file enables this rule. | ||
> The {"extends": "solhint:recommended"} property in a configuration file enables this rule. | ||
|
||
## Description | ||
No console.log/logInt/logBytesX/logString/etc & No hardhat and forge-std console.sol import statements | ||
|
||
## Options | ||
This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Default to error. | ||
|
||
### Example Config | ||
```json | ||
{ | ||
"rules": { | ||
"no-console": "error" | ||
} | ||
} | ||
``` | ||
|
||
|
||
## Examples | ||
### 👎 Examples of **incorrect** code for this rule | ||
|
||
#### No console.logX statements | ||
|
||
```solidity | ||
console.log('test') | ||
``` | ||
|
||
#### No hardhat/console.sol import statements | ||
|
||
```solidity | ||
import "hardhat/console.sol" | ||
``` | ||
|
||
#### No forge-std console.sol & console2.sol import statements | ||
|
||
```solidity | ||
import "forge-std/consoleN.sol" | ||
``` | ||
|
||
## Version | ||
This rule is introduced in the latest version. | ||
|
||
## Resources | ||
- [Rule source](https://github.com/protofire/solhint/tree/master/lib/rules/best-practises/no-console.js) | ||
- [Document source](https://github.com/protofire/solhint/tree/master/docs/rules/best-practises/no-console.md) | ||
- [Test cases](https://github.com/protofire/solhint/tree/master/test/rules/best-practises/no-console.js) |
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.