Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15406574
D8428.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8428.diff
View Options
diff --git a/src/applications/differential/parser/DifferentialChangesetParser.php b/src/applications/differential/parser/DifferentialChangesetParser.php
--- a/src/applications/differential/parser/DifferentialChangesetParser.php
+++ b/src/applications/differential/parser/DifferentialChangesetParser.php
@@ -669,6 +669,20 @@
return true;
}
+ private function hasCommentsFromReviewers() {
+ if (!$this->comments) {
+ return false;
+ }
+
+ foreach ($this->comments as $comment) {
+ if (substr($comment->getSyntheticAuthor(), 0, 6) !== 'Lint: ') {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
public function render(
$range_start = null,
$range_len = null,
@@ -710,7 +724,7 @@
}
$shield = null;
- if ($this->isTopLevel && !$this->comments) {
+ if ($this->isTopLevel && !$this->hasCommentsFromReviewers()) {
if ($this->isGenerated()) {
$shield = $renderer->renderShield(
pht(
@@ -738,7 +752,8 @@
} else if ($this->isDeleted()) {
$shield = $renderer->renderShield(
pht('This file was completely deleted.'));
- } else if ($this->changeset->getAffectedLineCount() > 2500) {
+ } else if (!$this->comments &&
+ $this->changeset->getAffectedLineCount() > 2500) {
$lines = number_format($this->changeset->getAffectedLineCount());
$shield = $renderer->renderShield(
pht(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 19 2025, 12:45 PM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7709336
Default Alt Text
D8428.diff (1 KB)
Attached To
Mode
D8428: Keep the generated code collapsed if there are only lint warnings inline
Attached
Detach File
Event Timeline
Log In to Comment