gjd6640 / sonar-text-plugin

A free and open-source plugin for SonarSource's Sonarqube product that lets you create rules to flag issues in text files.
Apache License 2.0
23 stars 4 forks source link

Issue with Simple Regex Checker #22

Open gargeesuresh opened 2 years ago

gargeesuresh commented 2 years ago

Issue : The scan doesn't seem to match according to the regex expression and bring up corresponding issues. I've verified my regex expression on https://regexr.com/. I've added an image of the configuration for the same, could you please help me out?

regex : (black[\s-_]*hat)|(black[\s-_]*list)|(black[\s-_]*out)|(brown[\s-_]*out)|(cake[\s-_]*walk)|(\sdisabled*\s)|(\bfemale\b)|(\bgrandfathered\b)|(\bhandicap\b)|(\bkill[a-zA-Z]*\b)|(\bmale\b)|(\bmaster(?!')\b)|(rule[\s-]+of[\s-]+thumb)|(sanity[\s-_]*check)|(sanity[\s-_]*test)|(\bsegregate)|(\bsegregation\b)|(\bslave\b)|(\bsuffer\b)|(war[\s-_]*room)|(white[\s-_]*hat)|(white[\s-_]*list)

I'm using sonarqube v-8.9 community edition

image
gjd6640 commented 2 years ago

Try changing the "filePattern" field to "*/". I suspect that the field's instructions are wrong.