Skip to content

Enforce all checkpatch warnings and move to 100 characters per line #30426

@nashif

Description

@nashif

Introduction

Enforce checkpatch warnings and change line length to 100 (from 80)

Problem description

Right now we do not enforce checkpatch warnings and do not fail CI on warnings. Some of the warnings expose various issues that are worth fixing, however, in most PRs, the majority of the warning are related to line length.

We used to just put the warnings in a comment but not enforce, this is not really helpful, because it does cause inconsistency in reviews and we end up delaying PR from going in when a reviewer asks to fix warning but CI actually passes without fixing them.
Not all reviewers for example would care if you have lines > 80, so this becomes inconsistent

Proposed change

  • Enforce checkpatch warnings in CI, so CI will fail on warnings + errors
  • Change default max line length and match what Linux has (100 instead of 80)

Proposed change (Detailed)

  • change compliance check to not ignore warnings
  • change checkpatch to allow 100 instead of 80 chars per line.

Dependencies

None

Concerns and Unresolved Questions

None

Alternatives

Keep it as is and miss on warnings.

Metadata

Metadata

Assignees

Labels

RFCRequest For Comments: want input from the community

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions