Skip to content

Oauth2

Oauth2 #12

Triggered via pull request January 12, 2025 18:56
Status Failure
Total duration 21s
Artifacts

rubocop.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
rubocop: Gemfile#L19
Bundler/OrderedGems: Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem `byebug` should appear before `rubocop-rspec`.
rubocop: lib/jira/oauth2_client.rb#L1
Style/FrozenStringLiteralComment: Missing frozen string literal comment.
rubocop: lib/jira/oauth2_client.rb#L109
Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.
rubocop: lib/jira/oauth2_client.rb#L112
Style/MutableConstant: Freeze mutable objects assigned to constants.
rubocop: lib/jira/oauth2_client.rb#L120
Style/TrailingCommaInHashLiteral: Avoid comma after the last item of a hash.
rubocop: lib/jira/oauth2_client.rb#L123
Style/AccessorGrouping: Group together all `attr_reader` attributes.
rubocop: lib/jira/oauth2_client.rb#L124
Layout/EmptyLinesAroundAttributeAccessor: Add an empty line after attribute accessor.
rubocop: lib/jira/oauth2_client.rb#L124
Style/AccessorGrouping: Group together all `attr_reader` attributes.
rubocop: lib/jira/oauth2_client.rb#L149
Style/IfUnlessModifier: Favor modifier `if` usage when having a single-line body. Another good alternative is the usage of control flow `&&`/`||`.
rubocop: lib/jira/oauth2_client.rb#L149
Style/NumericPredicate: Use `options.slice(:access_token, :refresh_token).size.positive?` instead of `0 < options.slice(:access_token, :refresh_token).size`.
rubocop
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636