miss_hit icon indicating copy to clipboard operation
miss_hit copied to clipboard

duplicate rules in the miss_hit config seem to be allowed

Open Remi-Gau opened this issue 3 years ago • 2 comments

MISS_HIT Component affected

  • Style checker

Your MATLAB/Octave environment

  • Linux Ubuntu 18-04
  • python 3.8
  • matlab

Describe the bug

By chance I ended up having this in my config and it did not throw a warning or an error. I am not sure what should be the intended behavior, there.

regex_function_name: "[a-zA-Z0-9]+(_[a-zA-Z0-9]+)*"
regex_function_name: "[a-z]+(_[a-z]+)*"

Remi-Gau avatar Nov 15 '21 14:11 Remi-Gau

This is by design, since you can overwrite config items with config files further down the directory tree.

That said, I will implement a warning here since there is no real use case that I can think of to have something specified twice in the same file.

florianschanda avatar Nov 16 '21 07:11 florianschanda

This is by design, since you can overwrite config items with config files further down the directory tree.

Ah yes I see. Thanks for the clarification. :grin:

Remi-Gau avatar Nov 16 '21 07:11 Remi-Gau