robotframework-robocop icon indicating copy to clipboard operation
robotframework-robocop copied to clipboard

Check settings name

Open mnojek opened this issue 3 years ago • 3 comments

From RF User Guide: " Settings used to be also space-insensitive, but that was deprecated in Robot Framework 3.1 and trying to use something like [T a g s] causes an error in Robot Framework 3.2. Possible spaces between brackets and the name (e.g. [ Tags ]) are still allowed. "

mnojek avatar Sep 20 '21 18:09 mnojek

There is setting-name-not-in-title-case rule. It will detect [arguments] but not [ Arguments ]. Should we create another rule for extra checks or rather rework setting-name-not-in-title-case (together with rule name change, ie invalid-setting-name)? @mnojek

bhirsz avatar Nov 04 '21 14:11 bhirsz

For reference there is section-name-invalid which checks case, spacing and formatting (*** Name ***)

bhirsz avatar Nov 04 '21 14:11 bhirsz

I think I will keep setting-name-not-in-title-case as it is and add another rule like invalid-setting-name so that we have more precise messages instead of just 'something is wrong with this setting' if the rule is going to match all possible violations.

mnojek avatar Nov 04 '21 14:11 mnojek