Code Inspections in Cucumber
This topic lists all PhpStorm code inspections available in Cucumber.
You can toggle specific inspections or change their severity level on the Editor | Inspections page of the IDE settings Ctrl+Alt+S.
| Inspection | Description | Default Severity |
|---|---|---|
| Gherkin table is broken | Highlights tables if it contains at least one row with amount of cell different from amount of cell of table's header. | |
| Misplaced background section | Background section must be before any Scenario | |
| Missing ':' after examples keyword | Highlights examples sections in Cucumber .feature files which do not have ':' after the | |
| Missing examples section | Highlights scenario outlines in Cucumber .feature files which do not have 'Examples' section. | |
| Scenario with Examples section | Highlights Gherkin Scenarios having Examples section | |
| Undefined step | Highlights steps in Cucumber (or some other Gherkin) .feature files which do not have a matching step definitions. | |
| Unused or missing columns in Cucumber tables | Highlights tables in Examples sections of Cucumber .feature files with unused or missing columns. | |