Skip to content
Snippets Groups Projects

Fix RuboCop offenses in several ErrorTracking specs

Merged Peter Leitzen requested to merge pl-error-tracking-rubocop-offenses into master
All threads resolved!

What does this MR do and why?

This MR resolves current and upcoming RuboCop :cop: rules in several Category:Error Tracking specs.

Extracted from !85907 (merged).

:warning: Please don't squash commits.

Screenshots or screen recordings

n/a

How to set up and validate locally

merge_base=$(git merge-base pl-error-tracking-rubocop-offenses origin/master)
changed=$(git diff --name-only $merge_base | grep -v yml)

$ REVEAL_RUBOCOP_TODO=1 exec rubocop $changed

Inspecting 14 files
.............C

Offenses:

spec/support/shared_contexts/sentry_error_tracking_shared_context.rb:3:22: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'.
RSpec.shared_context 'sentry error tracking context' do
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

14 files inspected, 1 offense detected

$ REVEAL_RUBOCOP_TODO=0 bundle exec rubocop $changed
Inspecting 14 files
..............

14 files inspected, no offenses detected

bin/rspec $(tff -f tests.yml $changed)
.........................................................................................

Finished in 18.18 seconds (files took 8.61 seconds to load)
89 examples, 0 failures

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Leitzen

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Sarah Yasonik approved this merge request

    approved this merge request

  • Sarah Yasonik requested review from @mkozono and removed review request for @syasonik

    requested review from @mkozono and removed review request for @syasonik

  • :wave: @syasonik, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline has been started.

    For more info, please refer to the following links:

  • Michael Kozono removed review request for @mkozono

    removed review request for @mkozono

  • Peter Leitzen added 1 commit

    added 1 commit

    • 15b2465d - squash! Fix RuboCop offenses for ErrorTracking controller specs

    Compare with previous version

  • Peter Leitzen marked this merge request as draft from 15b2465d

    marked this merge request as draft from 15b2465d

  • Peter Leitzen requested review from @mkozono

    requested review from @mkozono

  • Peter Leitzen added 135 commits

    added 135 commits

    • 15b2465d...d1d01919 - 127 commits from branch master
    • bb454b3f - Fix RuboCop offenses in ErrorTracking GraphQL specs
    • a5741eff - Fix RuboCop offenses for ErrorTracking controller specs
    • b38e14cb - Fix RuboCop offenses for DSN specs
    • e2799f87 - Fix RuboCop offenses in Sentry Auth Parser specs
    • 7efa8090 - Fix RuboCop offenses in Sentry Request Parser specs
    • d0cae6ce - Fix RuboCop offenses for ErrorTracking BaseService specs
    • 727d073c - Fix RuboCop offenses for ErrorTracking IssueUpdateService specs
    • 8cee2ae9 - Fix RuboCop offenses for ErrorTracking issue service specs

    Compare with previous version

  • Suggested Reviewers (beta)

    This is an experimental ML-based code reviewer recommendation system created by ~"group::applied ml".

    The individuals below may be good candidates to participate in the review based on various factors.

    After you review all recommendations, please assign reviewers manually, as this is not done automatically.

    You can use slash commands in comments to quickly assign /assign_reviewer @user1.

    Reviewers
    @mayra-cabrera, @engwan, @stanhu, @reprazent, @dzaporozhets

    If you do not believe these recommendations are useful or if you do not want to use any of the suggestions, please apply the label Bad Suggested Reviewer. You can also provide feedback for this feature on this issue: https://gitlab.com/gitlab-org/gitlab/-/issues/357923.

    Automatically generated by Suggested Reviewers Bot

  • Peter Leitzen marked this merge request as ready

    marked this merge request as ready

  • Michael Kozono approved this merge request

    approved this merge request

  • Michael Kozono resolved all threads

    resolved all threads

  • Michael Kozono enabled an automatic merge when the pipeline for 5267a595 succeeds

    enabled an automatic merge when the pipeline for 5267a595 succeeds

  • Michael Kozono mentioned in commit d47d237c

    mentioned in commit d47d237c

  • added workflowstaging label and removed workflowcanary label

  • Please register or sign in to reply
    Loading