Page MenuHomePhabricator

Tidying up of linter code.
ClosedPublic

Authored by joshuaspence on Jun 18 2014, 10:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 3:46 AM
Unknown Object (File)
Mon, Dec 2, 4:02 PM
Unknown Object (File)
Nov 18 2024, 4:54 PM
Unknown Object (File)
Oct 23 2024, 8:16 PM
Unknown Object (File)
Oct 19 2024, 8:16 AM
Unknown Object (File)
Sep 22 2024, 4:08 PM
Unknown Object (File)
Sep 18 2024, 10:14 PM
Unknown Object (File)
Sep 14 2024, 12:41 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.