Oauth2 #16
Annotations
10 errors and 1 warning
Run rubocop:
lib/jira/oauth2_client.rb#L1
Style/FrozenStringLiteralComment: Missing frozen string literal comment.
|
Run rubocop:
lib/jira/oauth2_client.rb#L2
Layout/LeadingEmptyLines: Unnecessary blank line at the beginning of the source.
|
Run rubocop:
lib/jira/oauth2_client.rb#L145
Style/GuardClause: Use a guard clause (`return if options.slice(:access_token, :refresh_token).empty?`) instead of wrapping the code inside a conditional expression.
|
Run rubocop:
lib/jira/oauth2_client.rb#L145
Style/IfUnlessModifier: Favor modifier `unless` usage when having a single-line body. Another good alternative is the usage of control flow `&&`/`||`.
|
Run rubocop:
lib/jira/oauth2_client.rb#L197
Style/AccessModifierDeclarations: `private` should not be inlined in method definitions.
|
Run rubocop:
lib/jira/oauth2_client.rb#L212
Layout/LeadingCommentSpace: Missing space after `#`.
|
Run rubocop:
lib/jira/oauth2_client.rb#L217
Style/YodaCondition: Reverse the order of the operands `false == params[:state]`.
|
Run rubocop:
lib/jira/oauth2_client.rb#L230
Style/HashSyntax: Use the new Ruby 1.9 hash syntax.
|
Run rubocop:
lib/jira/oauth2_client.rb#L251
Style/RedundantParentheses: Don't use parentheses around a variable.
|
Run rubocop:
lib/jira/oauth2_client.rb#L258
Style/IfUnlessModifier: Favor modifier `if` usage when having a single-line body. Another good alternative is the usage of control flow `&&`/`||`.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading