enkessler / cuke_linter

A linting tool for Cucumber
MIT License
33 stars 8 forks source link

More linters needed #8

Open enkessler opened 4 years ago

enkessler commented 4 years ago

While the fundamental linting, reporting, and API portion of the gem is complete, there are still a lot of linters left to add. The sky is the limit, really. Initially, however, I would like to port over the existing linters from several other popular (but defunct) Gherkin/Cucumber linting gems.

https://github.com/funkwerk/gherkin_lint https://github.com/r-cochran/cuke_sniffer

From GherkinLint

From CukeSniffer (many of these may need to be broken into multiple linters for simplicity or made non-default due to their highly opinionated nature)

Feature And Scenario

Feature Only

Background And Scenario

Background Only

Scenario Only

Hook and step definition rules The scope of CukeLinter is Gherkin. Implementation language specific files are not linted.

Feel free to comment on this issue if you would like to claim some of the needed linters so that duplicate effort is avoided. Even making just one linter is fine.

anuj-ssharma commented 4 years ago

This looks quite interesting and a good learning exercise to implement. I can make a start on this unless there's already something you have done ?

enkessler commented 4 years ago

Go for it! Anything unchecked should be fair game, although some of the CukeSniffer stuff may have overlap with the GherkinLint stuff.

PKuravskyi commented 2 years ago

Hi, one suggestion to the list. There is a 'StepWithTooManyCharactersLinter' rule, would be grate to have same thing for Scenario names if possible.

enkessler commented 2 years ago

That should be doable. Would you like to take a crack at it @PKuravskyi ?

PavloKura commented 2 years ago

@enkessler PR is ready for review