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
Unknown Object (File)
Tue, Apr 9, 1:42 PM
Unknown Object (File)
Fri, Mar 29, 7:15 AM
Unknown Object (File)
Mar 6 2024, 5:15 AM
Unknown Object (File)
Feb 14 2024, 4:37 PM
Unknown Object (File)
Feb 14 2024, 4:37 PM
Unknown Object (File)
Feb 14 2024, 4:36 PM
Unknown Object (File)
Feb 14 2024, 4:36 PM
Unknown Object (File)
Feb 7 2024, 8:46 PM
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.