Skip to content

Commit 855cd60

Browse files
committed
Documentation cleanup
1 parent 43d4669 commit 855cd60

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed

doc/arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Checks whitespace in single line array declarations (whitespace between brackets
3131
Sniff provides the following settings:
3232

3333
* `spacesAroundBrackets`: number of spaces you require to have around array brackets
34-
* `enableEmptyArrayCheck` (defaults to `false`): enables check for empty arrays
34+
* `enableEmptyArrayCheck` (default: `false`): enables check for empty arrays
3535

3636
#### SlevomatCodingStandard.Arrays.TrailingArrayComma 🔧
3737

doc/attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Sniff checks lines count between attribute and its target (or target's documenta
66

77
Sniff provides the following settings:
88

9-
* `allowOnSameLine`: allow attribute and its target to be placed on the same line (default value is false)
9+
* `allowOnSameLine` (default: `false`): allow attribute and its target to be placed on the same line
1010
* `linesCount`: lines count between attribute and its target
1111

1212
#### SlevomatCodingStandard.Attributes.AttributesOrder 🔧

doc/classes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public const BAR = 2; // correct
2626

2727
Disallows long classes. This sniff provides the following settings:
2828

29-
* `includeComments`: should comments be included in the count (default value is false).
30-
* `includeWhitespace`: should empty lines be included in the count (default value is false).
31-
* `maxLinesLength`: specifies max allowed function lines length (default value is 250).
29+
* `includeComments` (default: `false`): should comments be included in the count.
30+
* `includeWhitespace` (default: `false`): should empty lines be included in the count.
31+
* `maxLinesLength` (default: `250`): specifies max allowed function lines length.
3232

3333
#### SlevomatCodingStandard.Classes.ClassMemberSpacing 🔧
3434

@@ -142,8 +142,8 @@ Disallows using public properties.
142142

143143
This sniff provides the following setting:
144144

145-
* `checkPromoted`: will check promoted properties too.
146-
* `allowReadonly`: will allow readonly properties (default value is false).
145+
* `checkPromoted` (default: `false`): will check promoted properties too.
146+
* `allowReadonly` (default: `false`): will allow readonly properties.
147147

148148
#### SlevomatCodingStandard.Classes.MethodSpacing 🔧
149149

doc/complexity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Enforces maximum [cognitive complexity](https://www.sonarsource.com/docs/Cogniti
66

77
Sniff provides the following setting:
88

9-
* `warningThreshold`: defaults to 6
10-
* `errorThreshold` : defaults to 6
9+
* `warningThreshold` (default: `6`)
10+
* `errorThreshold` (default: `6`)

doc/control-structures.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ Ternary operator has to be reformatted to more lines when the line length exceed
184184

185185
Sniff provides the following settings:
186186

187-
* `lineLengthLimit` (defaults to `0`)
188-
* `minExpressionsLength` (defaults to `null`): when the expressions after `?` are shorter than this length, the ternary operator does not have to be reformatted.
187+
* `lineLengthLimit` (default: `0`)
188+
* `minExpressionsLength` (default: `null`): when the expressions after `?` are shorter than this length, the ternary operator does not have to be reformatted.
189189

190190
#### SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator 🔧
191191

@@ -226,7 +226,7 @@ Requires ternary operator when possible.
226226

227227
Sniff provides the following settings:
228228

229-
* `ignoreMultiLine` (defaults to `false`): ignores multi-line statements.
229+
* `ignoreMultiLine` (default: `false`): ignores multi-line statements.
230230

231231
#### SlevomatCodingStandard.ControlStructures.DisallowYodaComparison 🔧
232232
#### SlevomatCodingStandard.ControlStructures.RequireYodaComparison 🔧
@@ -235,7 +235,7 @@ Sniff provides the following settings:
235235

236236
Sniff provides the following settings:
237237

238-
* `alwaysVariableOnRight` (defaults to `false`): moves variables always to right.
238+
* `alwaysVariableOnRight` (default: `false`): moves variables always to right.
239239

240240
`DisallowYodaComparison` looks for and fixes such comparisons not only in `if` statements but in the whole code.
241241

@@ -247,12 +247,12 @@ Reports useless conditions where both branches return `true` or `false`.
247247

248248
Sniff provides the following settings:
249249

250-
* `assumeAllConditionExpressionsAreAlreadyBoolean` (defaults to `false`).
250+
* `assumeAllConditionExpressionsAreAlreadyBoolean` (default: `false`).
251251

252252
#### SlevomatCodingStandard.ControlStructures.UselessTernaryOperator 🔧
253253

254254
Reports useless ternary operator where both branches return `true` or `false`.
255255

256256
Sniff provides the following settings:
257257

258-
* `assumeAllConditionExpressionsAreAlreadyBoolean` (defaults to `false`).
258+
* `assumeAllConditionExpressionsAreAlreadyBoolean` (default: `false`).

doc/files.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Disallows long files. This sniff provides the following settings:
66

7-
* `includeComments`: should comments be included in the count (default value is false).
8-
* `includeWhitespace`: should empty lines be included in the count (default value is false).
9-
* `maxLinesLength`: specifies max allowed function lines length (default value is 250).
7+
* `includeComments` (default: `false`): should comments be included in the count.
8+
* `includeWhitespace` (default: `false`): should empty lines be included in the count.
9+
* `maxLinesLength` (default: `250`): specifies max allowed function lines length.
1010

1111
#### SlevomatCodingStandard.Files.LineLength
1212

doc/functions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ Reports empty functions body and requires at least a comment inside.
2323

2424
Disallows long functions. This sniff provides the following setting:
2525

26-
* `includeComments`: should comments be included in the count (default value is false).
27-
* `includeWhitespace`: should empty lines be included in the count (default value is false).
28-
* `maxLinesLength`: specifies max allowed function lines length (default value is 20).
26+
* `includeComments` (default: `false`): should comments be included in the count.
27+
* `includeWhitespace` (default: `false`): should empty lines be included in the count.
28+
* `maxLinesLength` (default: `20`): specifies max allowed function lines length.
2929

3030
#### SlevomatCodingStandard.Functions.RequireArrowFunction 🔧
3131

3232
Requires arrow functions.
3333

3434
Sniff provides the following settings:
3535

36-
* `allowNested` (defaults to `true`)
36+
* `allowNested` (default: `true`)
3737
* `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 7.4 or higher.
3838

3939
#### SlevomatCodingStandard.Functions.RequireMultiLineCall 🔧
@@ -51,7 +51,7 @@ Enforces function call to be on a single line.
5151
Sniff provides the following settings:
5252

5353
* `maxLineLength`: specifies max allowed line length. If call would fit on it, it's enforced. Use 0 value to enforce for all calls, regardless of length.
54-
* `ignoreWithComplexParameter` (defaults to `true`): ignores calls with arrays, closures, arrow functions and nested calls.
54+
* `ignoreWithComplexParameter` (default: `true`): ignores calls with arrays, closures, arrow functions and nested calls.
5555

5656
#### SlevomatCodingStandard.Functions.DisallowNamedArguments
5757

doc/namespaces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use LogStandard;
1616
Sniff provides the following settings:
1717

1818

19-
* `psr12Compatible` (defaults to `true`): sets the required order to `classes`, `functions` and `constants`. `false` sets the required order to `classes`, `constants` and `functions`.
19+
* `psr12Compatible` (default: `true`): sets the required order to `classes`, `functions` and `constants`. `false` sets the required order to `classes`, `constants` and `functions`.
2020
* `caseSensitive`: compare namespaces case sensitively, which makes this order correct:
2121

2222
```php
@@ -117,7 +117,7 @@ Requires only one namespace in a file.
117117

118118
Sniff provides the following settings:
119119

120-
* `searchAnnotations` (defaults to `false`): enables searching for mentions in annotations.
120+
* `searchAnnotations` (default: `false`): enables searching for mentions in annotations.
121121
* `namespacesRequiredToUse`: if not set, all namespaces are required to be used. When set, only mentioned namespaces are required to be used. Useful in tandem with UseOnlyWhitelistedNamespaces sniff.
122122
* `allowFullyQualifiedExceptions`, `specialExceptionNames` & `ignoredNames`: allows fully qualified exceptions. Useful in tandem with FullyQualifiedExceptions sniff.
123123
* `allowFullyQualifiedNameForCollidingClasses`: allow fully qualified name for a class with a colliding use statement.
@@ -181,6 +181,6 @@ Looks for unused imports from other namespaces.
181181

182182
Sniff provides the following settings:
183183

184-
* `searchAnnotations` (defaults to `false`): enables searching for class names in annotations.
184+
* `searchAnnotations` (default: `false`): enables searching for class names in annotations.
185185
* `ignoredAnnotationNames`: case-sensitive list of annotation names that the sniff should ignore (only the name is ignored, annotation content is still searched). Useful for name collisions like `@testCase` annotation and `TestCase` class.
186186
* `ignoredAnnotations`: case-sensitive list of annotation names that the sniff ignore completely (both name and content are ignored). Useful for name collisions like `@group Cache` annotation and `Cache` class.

doc/php.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Requires assertion via `assert` instead of inline documentation comments.
4646

4747
Sniff provides the following settings:
4848

49-
* `enableIntegerRanges` (defaults to `false`): enables support for `positive-int`, `negative-int` and `int<0, 100>`.
50-
* `enableAdvancedStringTypes` (defaults to `false`): enables support for `callable-string`, `numeric-string` and `non-empty-string`.
49+
* `enableIntegerRanges` (default: `false`): enables support for `positive-int`, `negative-int` and `int<0, 100>`.
50+
* `enableAdvancedStringTypes` (default: `false`): enables support for `callable-string`, `numeric-string` and `non-empty-string`.
5151

5252
#### SlevomatCodingStandard.PHP.RequireNowdoc 🔧
5353

@@ -73,7 +73,7 @@ Looks for useless parentheses.
7373

7474
Sniff provides the following settings:
7575

76-
* `ignoreComplexTernaryConditions` (defaults to `false`): ignores complex ternary conditions - condition must contain `&&`, `||` etc. or end of line.
76+
* `ignoreComplexTernaryConditions` (default: `false`): ignores complex ternary conditions - condition must contain `&&`, `||` etc. or end of line.
7777

7878
#### SlevomatCodingStandard.PHP.UselessSemicolon 🔧
7979

doc/variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Looks for unused variables.
1818

1919
Sniff provides the following settings:
2020

21-
* `ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach` (defaults to `false`): ignore unused `$value` in foreach when only `$key` is used
21+
* `ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach` (default: `false`): ignore unused `$value` in foreach when only `$key` is used
2222

2323
```php
2424
foreach ($values as $key => $value) {

0 commit comments

Comments
 (0)