Skip to content

Conversation

@obnoxxx
Copy link
Collaborator

@obnoxxx obnoxxx commented May 8, 2025

Description of changes:

The description of the maxbodylength rule shown with `checkmake --list-rules` 
was not very specific:
      maxbodylength       Target bodies should be kept
                          simple and short.
This change adds the detail that length refers to a certain maximum
number of lines:
 
      maxbodylength       Target bodies should be kept
                          simple and short (no more than
                          5 lines).

This is a follow-up to PR #109 depending on it) and a partial solution to issue #108

Checklist

Not all of these might apply to your change but the more you are able to check
the easier it will be to get your contribution merged.

  • CI passes
  • Description of proposed change
  • Documentation (README, docs/, man pages) is updated
  • Existing issue is referenced if there is one
  • Unit tests for the proposed change

This mentions that maxbodylength is in number of lines.

Fixes: checkmake#90

Signed-off-by: Michael Adam <obnox@samba.org>
@obnoxxx obnoxxx force-pushed the improve-maxbodylength-description branch from ada1ac1 to 278efef Compare May 8, 2025 17:36
The description of the maxbodylength rule shown with --list-rules
weas not very specific:

  maxbodylength       Target bodies should be kept
                      simple and short.

This change adds the detail that length refers to a certain maximum
number of lines:

  maxbodylength       Target bodies should be kept
                      simple and short(no more than
                      5 lines).

Signed-off-by: Michael Adam <obnox@samba.org>
@obnoxxx obnoxxx force-pushed the improve-maxbodylength-description branch from 278efef to 5baeea9 Compare May 8, 2025 17:38
@obnoxxx
Copy link
Collaborator Author

obnoxxx commented May 8, 2025

@mrtazz seems like the CI needs approval to run.

If you like this, I suggest you merge #109 first (which is contained in this one) so that I can rebase this.

@mrtazz mrtazz merged commit e11578c into checkmake:main May 9, 2025
1 check passed
@obnoxxx obnoxxx deleted the improve-maxbodylength-description branch May 9, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants