miss_hit
miss_hit copied to clipboard
duplicate rules in the miss_hit config seem to be allowed
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]+)*"
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.
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: