Page MenuHomePhabricator

Tidying up of linter code.
ClosedPublic

Authored by joshuaspence on Jun 18 2014, 10:17 PM.
Tags
None
Referenced Files
F13194392: D9625.diff
Sun, May 12, 9:32 PM
F13181521: D9625.diff
Thu, May 9, 12:55 PM
F13179234: D9625.diff
Wed, May 8, 9:02 PM
Unknown Object (File)
Sat, May 4, 6:35 PM
Unknown Object (File)
Wed, Apr 24, 10:24 PM
Unknown Object (File)
Wed, Apr 24, 12:29 AM
Unknown Object (File)
Apr 2 2024, 8:16 AM
Unknown Object (File)
Mar 29 2024, 1:35 PM
Subscribers

Details

Summary

Various tidying up of linting code.

Test Plan

arc lint and arc unit still pass.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

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–154

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.