Skip to content

Use task names directly in all report comments#334

Merged
La0 merged 2 commits intomozilla:masterfrom
La0:fix-233
Dec 9, 2019
Merged

Use task names directly in all report comments#334
La0 merged 2 commits intomozilla:masterfrom
La0:fix-233

Conversation

@La0
Copy link
Copy Markdown
Collaborator

@La0 La0 commented Dec 6, 2019

Fixes #233

@La0 La0 added enhancement New feature or request bot Code review bot labels Dec 6, 2019
@La0 La0 requested a review from marco-c December 6, 2019 10:21
@La0 La0 self-assigned this Dec 6, 2019
Comment thread bot/code_review_bot/report/base.py
Comment thread bot/code_review_bot/report/base.py Outdated
Comment thread bot/code_review_bot/report/base.py Outdated
Comment thread bot/tests/test_reporter_phabricator.py
Comment thread bot/code_review_bot/report/base.py
from collections import OrderedDict

return OrderedDict([(cls, stats(items)) for cls, items in groups])
return [stats(analyzer, items) for analyzer, items in groups]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super-nit: return an iterator

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or even transform the function into a generator, yielding the stats

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not worth it 😈

@La0 La0 merged commit ef0958d into mozilla:master Dec 9, 2019
@La0 La0 deleted the fix-233 branch December 9, 2019 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Code review bot enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use analyzer names instead of classes names in Phabricator top comment

2 participants