Skip to content

Commit

Permalink
Maintenance: Update dependency rubocop to v1.45.1
Browse files Browse the repository at this point in the history
  • Loading branch information
renovatebot authored and mgruner committed Feb 9, 2023
1 parent 963df10 commit f7743cf
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ GEM
ffi (~> 1.0)
rchardet (1.8.0)
redis (4.8.0)
regexp_parser (2.6.2)
regexp_parser (2.7.0)
rexml (3.2.5)
rspec-core (3.12.0)
rspec-support (~> 3.12.0)
Expand All @@ -467,7 +467,7 @@ GEM
rspec-core (> 3.3)
rspec-support (3.12.0)
rszr (1.3.0)
rubocop (1.44.1)
rubocop (1.45.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.2.0.0)
Expand Down
4 changes: 2 additions & 2 deletions app/models/channel/email_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def process(channel, msg, exception = true)

message = "Can't process email, you will find it for bug reporting under #{filename}, please create an issue at https://github.com/zammad/zammad/issues"

p "ERROR: #{message}" # rubocop:disable Rails/Output
p "ERROR: #{e.inspect}" # rubocop:disable Rails/Output
p "ERROR: #{message}" # rubocop:disable Rails/Output, Lint/Debugger
p "ERROR: #{e.inspect}" # rubocop:disable Rails/Output, Lint/Debugger
Rails.logger.error message
Rails.logger.error e

Expand Down
2 changes: 1 addition & 1 deletion lib/github/credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class GitHub
class Credentials

QUERY = <<-'GRAPHQL'.freeze
QUERY = <<-GRAPHQL.freeze
query {
viewer {
login
Expand Down
2 changes: 1 addition & 1 deletion lib/github/linked_issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class LinkedIssue
'CLOSED' => 'closed'
}.freeze

QUERY = <<-'GRAPHQL'.freeze
QUERY = <<-GRAPHQL.freeze
query($repositor_owner: String!, $repository_name: String!, $issue_id: Int!) {
repository(owner: $repositor_owner, name: $repository_name) {
issue(number: $issue_id) {
Expand Down
2 changes: 1 addition & 1 deletion lib/gitlab/credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class GitLab
class Credentials

QUERY = <<-'GRAPHQL'.freeze
QUERY = <<-GRAPHQL.freeze
query {
currentUser {
username
Expand Down
2 changes: 1 addition & 1 deletion lib/gitlab/linked_issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class LinkedIssue
'opened' => 'open'
}.freeze

QUERY = <<-'GRAPHQL'.freeze
QUERY = <<-GRAPHQL.freeze
query($fullpath: ID!, $issue_id: String) {
project(fullPath: $fullpath) {
issue(iid: $issue_id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

context 'with strings to be found' do
let(:string) do
<<~'CODE'
<<~CODE
var value = {
title: 'My title',
scrollHint: "My scroll hint",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

context 'with strings to be found' do
let(:string) do
<<~'CODE'
<<~CODE
var value = {
display: 'My display',
placeholder: "My placeholder",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

context 'with strings to be found' do
let(:string) do
<<~'CODE'
<<~CODE
__('__ String')
App.i18n.translateContent('String')
App.i18n.translateInline('Inline string')
Expand Down
8 changes: 4 additions & 4 deletions spec/rubocop/cop/zammad/migration_scheduler_last_run_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
RSpec.describe RuboCop::Cop::Zammad::MigrationSchedulerLastRun, type: :rubocop do

it 'shows no error for create_if_not_exists when last_run is set' do
expect_no_offenses(<<-'RUBY')
expect_no_offenses(<<-RUBY)
Scheduler.create_if_not_exists(
name: "Clean up 'DataPrivacyTask'.",
method: 'DataPrivacyTask.cleanup',
Expand All @@ -21,7 +21,7 @@
end

it 'shows error for create_if_not_exists when last_run is not set' do
result = inspect_source(<<~'RUBY')
result = inspect_source(<<~RUBY)
Scheduler.create_if_not_exists(
name: "Clean up 'DataPrivacyTask'.",
method: 'DataPrivacyTask.cleanup',
Expand All @@ -37,7 +37,7 @@
end

it 'shows no error for create_or_update when last_run is set' do
expect_no_offenses(<<-'RUBY')
expect_no_offenses(<<-RUBY)
Scheduler.create_or_update(
name: "Clean up 'DataPrivacyTask'.",
method: 'DataPrivacyTask.cleanup',
Expand All @@ -52,7 +52,7 @@
end

it 'shows error for create_or_update when last_run is not set' do
result = inspect_source(<<~'RUBY')
result = inspect_source(<<~RUBY)
Scheduler.create_or_update(
name: "Clean up 'DataPrivacyTask'.",
method: 'DataPrivacyTask.cleanup',
Expand Down
2 changes: 1 addition & 1 deletion spec/support/graphql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def error_message
private

def assert(message)
raise "Assertion '#{message}' failed, graphql result:\n#{PP.pp(payload, '')}" if !yield
raise "Assertion '#{message}' failed, graphql result:\n#{PP.pp(payload, '')}" if !yield # rubocop:disable Lint/Debugger
end
end

Expand Down

0 comments on commit f7743cf

Please sign in to comment.