Skip to content

Commit ef76753

Browse files
committed
cs
1 parent 5e26179 commit ef76753

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ Do you want to skip some rule? You can:
2424

2525
```bash
2626
vendor/bin/behastan analyse tests --skip=<rule-identifier>
27+
28+
# e.g.
29+
vendor/bin/behastan analyse tests --skip=duplicated-contents
2730
```
2831

2932
<br>
3033

3134
Here are the available rules:
3235

33-
### 1. Find duplicated definitions contents
34-
35-
* identifier: `duplicated-contents`
36+
### 1. Find duplicated definitions contents (`duplicated-contents`)
3637

3738
Some definitions have similar masks, even identical contents:
3839

@@ -56,9 +57,7 @@ Better use a one definition with single mask, to make your tests more precise an
5657

5758
<br>
5859

59-
### 2. Find duplicate masks
60-
61-
* identifier: `duplicated-masks`
60+
### 2. Find duplicated masks (`duplicated-masks`)
6261

6362
Same as services, there should be unique definition masks:
6463

@@ -82,9 +81,7 @@ Make them unique with different behavior, or merge them and use one definition i
8281

8382
<br>
8483

85-
### 3. Find unused Behat definitions with static analysis
86-
87-
* identifier: `unused-definitions`
84+
### 3. Find unused definitions (`unused-definitions`)
8885

8986
Behat uses `@When()`, `@Then()` and `@Given()` annotations or attributes to define a class method that is called in `*.feature` files. Sometimes test change and lines from `*.feature` files are deleted. But what about definitions?
9087

0 commit comments

Comments
 (0)