-
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.
Merge pull request #389 from juanpcapurro/fix-doc-generation
Fix doc generation
- Loading branch information
Showing
9 changed files
with
351 additions
and
67 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.