Page MenuHomePhabricator

Remove severity options from some linters.
ClosedPublic

Authored by joshuaspence on May 10 2014, 6:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 12:26 AM
Unknown Object (File)
Fri, Nov 22, 6:09 PM
Unknown Object (File)
Tue, Nov 19, 7:42 AM
Unknown Object (File)
Fri, Nov 15, 7:59 AM
Unknown Object (File)
Thu, Nov 14, 3:55 AM
Unknown Object (File)
Sun, Nov 10, 4:07 PM
Unknown Object (File)
Thu, Nov 7, 5:58 AM
Unknown Object (File)
Oct 22 2024, 8:17 AM
Subscribers

Details

Summary

The ArcanistGeneratedLinter and ArcanistNoLintLinter don't actually ever raise any linter messages, so it doesn't make sense to set custom severities for these linters. Instead, don't expose this configuration.

Test Plan

N/A

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Remove severity options from some linters..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

There may be a benefit in providing a more general solution, such as a canCustomizeLintSeverities method.

In some of the external linters that I have added recently, the expectation is that you use some sort of configuration file to customize rules and severities rather than customizing with .arclint. There are two reasons for this

  1. To retain compatibility when the linting tool is used without arc.
  2. So that we don't have to care about (and keep up to date with) all of the rules that the external linter understands.

Possibly it may even be true to say that for all external linters we shouldn't provide custom severities.

Possibly it may even be true to say that for all external linters we shouldn't provide custom severities.

I this this probably overreaches -- it's very common for users to want to customize flake8 messages, for example. T4287 has some discussion.

I'm onboard with canCustomizeLintSeverities(), though. Let's do that?

joshuaspence edited edge metadata.

Provide a canCustomizeLintSeverities method.

Again, this was tested in the arclint-examples repo by just changing some stuff and then running arc lint`.

epriestley edited edge metadata.
This revision is now accepted and ready to land.May 12 2014, 2:28 AM
epriestley updated this revision to Diff 21516.

Closed by commit rARC9bd740b1f85c (authored by @joshuaspence, committed by @epriestley).