Page MenuHomePhabricator

Remove severity options from some linters.
ClosedPublic

Authored by joshuaspence on May 10 2014, 6:10 AM.
Tags
None
Referenced Files
F13099129: D9038.id.diff
Fri, Apr 26, 1:21 PM
Unknown Object (File)
Wed, Apr 24, 10:04 PM
Unknown Object (File)
Fri, Apr 19, 3:29 PM
Unknown Object (File)
Mon, Apr 1, 2:43 AM
Unknown Object (File)
Sun, Mar 31, 5:01 AM
Unknown Object (File)
Feb 16 2024, 6:54 AM
Unknown Object (File)
Feb 16 2024, 6:53 AM
Unknown Object (File)
Feb 16 2024, 6:35 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).