Page MenuHomePhabricator

Allow lint messages to be rendered as Remarkup
ClosedPublic

Authored by joshuaspence on Nov 15 2015, 12:02 AM.
Tags
None
Referenced Files
F14045778: D14485.id35049.diff
Wed, Nov 13, 10:50 AM
F14041219: D14485.id.diff
Mon, Nov 11, 4:42 PM
F14031470: D14485.diff
Sat, Nov 9, 10:41 AM
F14004782: D14485.diff
Sun, Oct 27, 2:38 AM
F13988368: D14485.id.diff
Mon, Oct 21, 2:54 PM
F13980132: D14485.diff
Oct 19 2024, 8:37 AM
F13980094: D14485.id.diff
Oct 19 2024, 8:27 AM
F13980088: D14485.id35033.diff
Oct 19 2024, 8:26 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Commits
Restricted Diffusion Commit
rP1f1c3f40755e: Allow lint messages to be rendered as Remarkup
Summary

Some linter messages, such as those produced by ArcanistPHPCompatibilityXHPASTLinterRule, contain backticks but are currently rendered as Remarkup literals. I think that it is generally desirable to allow lint messages to be rendered as Remarkup, although we should ideally have a way to render Remarkup for use on the command line (I actually think that this already exists, but I don't think that arc lint does this when rendering linter messages).

Test Plan

Resubmitted D14481 to my dev install and saw Remarkuped lint messages.

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 8843
Build 10326: Run Core Tests
Build 10325: arc lint + arc unit

Event Timeline

joshuaspence retitled this revision from to Allow lint messages to be rendered as Remarkup.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.
joshuaspence updated this object.
epriestley edited edge metadata.

Yeah, this was some Facebook jank.

src/applications/differential/controller/DifferentialChangesetViewController.php
390

I will boldly claim that this line can be completely removed without disastrous effect.

src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
267–271

In modern code, I am generally not aligning stuff anymore. It looks a little nicer to align, but causes a lot of churn that I'm leaning toward not being worthwhile. Consider 'string'<single space>=><single space>value in lieu of alignment.

This revision is now accepted and ready to land.Nov 15 2015, 4:31 PM
joshuaspence edited edge metadata.
  • Remove useless assignment
  • Unalign
This revision was automatically updated to reflect the committed changes.