robotframework-lint icon indicating copy to clipboard operation
robotframework-lint copied to clipboard

Ignore rules using regex/glob

Open guykisel opened this issue 10 years ago • 4 comments

It would be nice to be able to say -i *Documentation* as opposed to -i RequireKeywordDocumentation -i RequireSuiteDocumentation -i RequireTestDocumentation

guykisel avatar Dec 11 '14 19:12 guykisel

Hmmmmm. That might be nice now, but without some sort of rule naming standards, that could be hit or miss. What if someone writes a rule like named "SpellchecDoc"? I assume your goal is to skip all documentation rules, but without a naming standard some might still get run.

What if rules had tags, similar to tests? Then you could exclude all rules tagged as "documentation" or all rules tagged as "keyword"?

I'm just brainstorming here -- I haven't thought this through.

On Thu, Dec 11, 2014 at 1:34 PM, Guy Kisel [email protected] wrote:

It would be nice to be able to say -i Documentation as opposed to -i RequireKeywordDocumentation -i RequireSuiteDocumentation -i RequireTestDocumentation

— Reply to this email directly or view it on GitHub https://github.com/boakley/robotframework-lint/issues/14.

boakley avatar Dec 11 '14 20:12 boakley

I think that rule tags sound like a great solution. That would probably also help if you wanted to do some sort of end-of-scan summary, something like

53 documentation warnings
21 keyword warnings
...

guykisel avatar Dec 11 '14 20:12 guykisel

This certainly isn't a high priority feature request, I just thought I'd put it in before I forgot about it.

guykisel avatar Dec 11 '14 20:12 guykisel

I like the idea of the summary. The tag idea might be good, but I'm wanting to keep rules as simple as possible. It will be pretty easy to forget to tag a rule, or misspell a tag.

On Thu, Dec 11, 2014 at 2:57 PM, Guy Kisel [email protected] wrote:

This certainly isn't a high priority feature request, I just thought I'd put it in before I forgot about it.

— Reply to this email directly or view it on GitHub https://github.com/boakley/robotframework-lint/issues/14#issuecomment-66687390 .

boakley avatar Dec 11 '14 21:12 boakley