yoheimuta / protolint

A pluggable linter and fixer to enforce Protocol Buffer style and conventions.
MIT License
555 stars 51 forks source link

Fixed configuring severity for max line length rule #420

Closed profhenry closed 2 months ago

profhenry commented 2 months ago

Fix for #419.

Pull request contains 3 commits

  1. The actual fix incl. a unit test
  2. Cleanup for configurable severities which removes the need for the public SeverityInternal field
  3. Removal of the FailureWithSeverityf so that you cannot forget to set the severity

The last two are optional. Please have a look. Feel free to leave or remove them from the merge request.