Page MenuHomePhabricator

Tidying up of linter code.
ClosedPublic

Authored by joshuaspence on Jun 18 2014, 10:17 PM.
Tags
None
Referenced Files
F13362313: D9625.id23130.diff
Tue, Jun 25, 8:10 PM
F13361654: D9625.id23088.diff
Tue, Jun 25, 3:19 PM
F13361652: D9625.id.diff
Tue, Jun 25, 3:19 PM
F13361651: D9625.diff
Tue, Jun 25, 3:19 PM
F13360031: D9625.id23130.diff
Tue, Jun 25, 10:41 AM
F13349325: D9625.diff
Sun, Jun 23, 4:22 AM
F13348506: D9625.id23088.diff
Sat, Jun 22, 9:26 PM
F13340823: D9625.id.diff
Thu, Jun 20, 4:11 AM
Subscribers

Details

Summary

Various tidying up of linting code.

Test Plan

arc lint and arc unit still pass.

Diff Detail

Repository
rARC Arcanist
Branch
linter-tidy
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1235
Build 1235: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Tidying up of linter code..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

The double-newline-between-methods is quasi-intentional, but I'll write a lint rule for it if we want to formalize it. I could also just stop doing it, it's definitely a little weird. Not sure if you have feelings one way or the other.

src/lint/linter/ArcanistSpellingLinter.php
145–153

These should probably use the phutil_utf8_...() flavors, although I don't remember if we have phutil_utf8_ucwords().

src/lint/linter/__tests__/ArcanistLinterTestCase.php
41–45

This is probably wrong (or will soon be wrong) now, per discussion.

This revision is now accepted and ready to land.Jun 19 2014, 9:25 PM
In D9625#6, @epriestley wrote:

The double-newline-between-methods is quasi-intentional, but I'll write a lint rule for it if we want to formalize it. I could also just stop doing it, it's definitely a little weird. Not sure if you have feelings one way or the other.

Oh, based on what I had seen I figured the convention was for a single blank line between methods but a double blank line before some kind of header. I'm not fussed either way to be honest.