Page MenuHomePhabricator

Enable ArcanistClosureLinter to use severity
Needs ReviewPublic

Authored by philolo1 on Oct 12 2014, 8:32 PM.
Tags
None
Referenced Files
F13198029: D10690.diff
Mon, May 13, 2:56 AM
F13191274: D10690.id.diff
Sat, May 11, 6:45 PM
F13180592: D10690.diff
Thu, May 9, 1:16 AM
Unknown Object (File)
Fri, May 3, 12:18 AM
Unknown Object (File)
Sun, Apr 28, 10:48 AM
Unknown Object (File)
Apr 5 2024, 4:36 PM
Unknown Object (File)
Mar 29 2024, 9:41 PM
Unknown Object (File)
Mar 28 2024, 1:16 PM

Details

Summary

I found this bug when using gslint. I wanted to disable the to long line rule and realised it was not working to disable a rulle using severity configuration. This diff should fix it.

Test Plan

Create a repository with a js file and create an .arclint

{
"linters": {
"sample": {
"type": "gjslint",
"include": "(\\.js$)",
"severity": {
"E:0110": "disabled"
}
}
}
}

Now add a long javascript file with a long line. Without the arc lint it should give an error, with it no error message should be shown.

Diff Detail

Repository
rARC Arcanist
Branch
closure_linter
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 2813
Build 2817: [Placeholder Plan] Wait for 30 Seconds

Unit TestsFailed

TimeTest
0 mstestPHPCSLint
0 mstestPHPLint
0 mstestClosureLinter
0 mstestFixLetterCase
0 mstestJSHintLinter
View Full Test Results (2 Failed · 13 Passed · 12 Skipped)