Trivadis / plsql-cop-cli

db* CODECOP Command Line
Other
25 stars 1 forks source link

Default filter considers partial matching file extensions #29

Closed PhilippSalvisberg closed 7 months ago

PhilippSalvisberg commented 7 months ago

The default filter in the CLI is

(sql|prc|fnc|pks|pkb|trg|vw|tps|tpb|tbp|plb|pls|rcv|spc|typ|aqt|aqp|ctx|dbl|tab|dim|snp|con|collt|seq|syn|grt|sp|spb|sps|pck|md|mdown)$

This is a regular expression. As a result, files ending on dmd are also analyzed, because md is considered without a leading ..

The default regular expression should be changed to include the period (.). For example:

\.(sql|prc|fnc|pks|pkb|trg|vw|tps|tpb|tbp|plb|pls|rcv|spc|typ|aqt|aqp|ctx|dbl|tab|dim|snp|con|collt|seq|syn|grt|sp|spb|sps|pck|md|mdown)$
PhilippSalvisberg commented 7 months ago

fixed with Azure DevOps commit 34de7aee40571f09c2e61a26f07af05ead355542