mirror of
https://github.com/mgechev/revive.git
synced 2025-02-15 13:53:15 +02:00
Adds missing rule
in rules examples
This commit is contained in:
parent
c878d3090d
commit
d775d613d0
@ -81,7 +81,7 @@ _Configuration_: (int) the maximum number of parameters allowed per function.
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[argument-limit]
|
[rule.argument-limit]
|
||||||
arguments =[4]
|
arguments =[4]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ _Configuration_: (int) the maximum function complexity
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[cyclomatic]
|
[rule.cyclomatic]
|
||||||
arguments =[3]
|
arguments =[3]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -223,7 +223,7 @@ _Configuration_: (string) the header to look for in source files.
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[file-header]
|
[rule.file-header]
|
||||||
arguments =["This is the text that must appear at the top of source files."]
|
arguments =["This is the text that must appear at the top of source files."]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ _Configuration_: (int) the maximum allowed return values
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[function-result-limit]
|
[rule.function-result-limit]
|
||||||
arguments =[3]
|
arguments =[3]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -298,7 +298,7 @@ _Configuration_: (int) maximum line length in characters.
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[line-length-limit]
|
[rule.line-length-limit]
|
||||||
arguments =[80]
|
arguments =[80]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ _Configuration_: (int) the maximum allowed public structs
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[max-public-structs]
|
[rule.max-public-structs]
|
||||||
arguments =[3]
|
arguments =[3]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user