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

Bump rubocop version and fix new offenses #1487

Merged
merged 2 commits into from Apr 18, 2024

Conversation

ydah
Copy link
Contributor

@ydah ydah commented Apr 15, 2024

This PR bump rubocop version and fix new offenses.

```
❯ bundle exec rubocop -a

Inspecting 220 files
..........................................................................C...........................C.C......C............................................................................................................

Offenses:

lib/danger/danger_core/environment_manager.rb:111:15: C: [Corrected] Style/RedundantParentheses: Don't use parentheses around a logical expression.
      [title, (subtitle || "")]
              ^^^^^^^^^^^^^^^^
lib/danger/request_sources/bitbucket_cloud.rb:85:24: C: [Corrected] Style/RedundantParentheses: Don't use parentheses around a logical expression.
        has_comments = (warnings.count.positive? || errors.count.positive? || messages.count.positive? || markdowns.count.positive?)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/danger/request_sources/bitbucket_server.rb:118:24: C: [Corrected] Style/RedundantParentheses: Don't use parentheses around a logical expression.
        has_comments = (warnings.count > 0 || errors.count > 0 || messages.count > 0 || markdowns.count > 0)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/danger/request_sources/gitlab.rb:307:17: C: [Corrected] Style/RedundantParentheses: Don't use parentheses around a logical expression.
        ref ||= (branch || "master")
                ^^^^^^^^^^^^^^^^^^^^

220 files inspected, 4 offenses detected, 4 offenses corrected
```
@manicmaniac manicmaniac merged commit f7786f4 into danger:master Apr 18, 2024
12 checks passed
@ydah ydah deleted the update-rubocop branch April 18, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants