Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate error on reviewdog #224

Merged
merged 3 commits into from
Jan 27, 2022
Merged

Remove duplicate error on reviewdog #224

merged 3 commits into from
Jan 27, 2022

Conversation

sksat
Copy link
Collaborator

@sksat sksat commented Jan 27, 2022

概要

同一のファイルに対して同一のエラーが(異なるファイルから)出ている時にreviewdogの出力が重複するのを避ける

Issue

NA

詳細

@sksat sksat added the tools label Jan 27, 2022
@sksat sksat self-assigned this Jan 27, 2022
@sksat sksat force-pushed the feature/skip-same-error branch from 795d891 to 2a22f03 Compare January 27, 2022 13:27
@sksat sksat force-pushed the feature/skip-same-error branch 2 times, most recently from 1d12637 to 20ca2f5 Compare January 27, 2022 13:41
@sksat sksat force-pushed the feature/skip-same-error branch from 20ca2f5 to b2f2a2e Compare January 27, 2022 13:46
@sksat
Copy link
Collaborator Author

sksat commented Jan 27, 2022

なんで2個出るのかと思ったらディレクトリトラバーサル的なことがincludeで起こってるからか.それは一旦しゃあないということにしようかな

@sksat sksat requested a review from meltingrabbit January 27, 2022 13:52
@sksat
Copy link
Collaborator Author

sksat commented Jan 27, 2022

テストコミット消しときます

@sksat sksat force-pushed the feature/skip-same-error branch from b2f2a2e to 9af7341 Compare January 27, 2022 13:54
@meltingrabbit meltingrabbit added the priority::high priorityg high label Jan 27, 2022
log = s.split(compiler)
if "" in log:
log.remove("")
# print(log)
Copy link
Collaborator

Choose a reason for hiding this comment

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

これ何してるの?

(log って配列だよね.splitしてるし)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

これはログが初手からclang-tidyで開始してた時に最初に無が入るのでそれを消してます

Copy link
Collaborator

Choose a reason for hiding this comment

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

あ,なるほどね.確かにそれあると, (cmd, err) = l.split("\n", 1) で死ぬのか.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

です

Copy link
Collaborator

@meltingrabbit meltingrabbit left a comment

Choose a reason for hiding this comment

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

良さそう

@sksat
Copy link
Collaborator Author

sksat commented Jan 27, 2022

マージします

@sksat sksat merged commit 765172c into develop Jan 27, 2022
@sksat sksat deleted the feature/skip-same-error branch January 27, 2022 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants