florianschanda / miss_hit

MATLAB Independent, Small & Safe, High Integrity Tools - code formatter and more
GNU General Public License v3.0
158 stars 21 forks source link

[BUG] config with file length > 1000 is ignored #263

Closed Remi-Gau closed 1 year ago

Remi-Gau commented 1 year ago

MISS_HIT Component affected

Your MATLAB/Octave environment

Your operating system and Python version

Describe the bug

mh_style will throw the following:

Model.m:1012: style: file exceeds 1000 lines [file_length]

despite my config looking like this:

project_root

copyright_entity: "Remi Gau"

metric "file_length": limit 1500

Tried to replicate this in the most bare bone project that looks like this:

.
├── miss_hit.cfg
└── Model.m
florianschanda commented 1 year ago

This is an annoying old behaviour. There are two independent kinds of checks that check for file length:

Remi-Gau commented 1 year ago

was not aware of those 2 options.

thanks