Page MenuHomePhabricator

Enable ArcanistClosureLinter to use severity
Needs ReviewPublic

Authored by philolo1 on Oct 12 2014, 8:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 10:09 PM
Unknown Object (File)
Mon, Nov 11, 5:08 PM
Unknown Object (File)
Sun, Nov 10, 11:04 PM
Unknown Object (File)
Wed, Oct 30, 11:52 PM
Unknown Object (File)
Tue, Oct 22, 7:43 PM
Unknown Object (File)
Oct 15 2024, 3:27 AM
Unknown Object (File)
Oct 15 2024, 1:04 AM
Unknown Object (File)
Oct 14 2024, 3:27 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)