Skip to content

Commit

Permalink
Rubocop: Address Style/EmptyLines and friends
Browse files Browse the repository at this point in the history
  • Loading branch information
nertzy committed Jul 21, 2015
1 parent 86f5c43 commit 9e30be9
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 32 deletions.
23 changes: 0 additions & 23 deletions .rubocop_todo.yml
Expand Up @@ -9,29 +9,6 @@
Style/Documentation:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Style/EmptyLines:
Enabled: false

# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/EmptyLinesAroundBlockBody:
Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/EmptyLinesAroundClassBody:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/EmptyLinesAroundModuleBody:
Enabled: false

# Offense count: 2
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Expand Down
1 change: 0 additions & 1 deletion lib/pg_search.rb
Expand Up @@ -87,7 +87,6 @@ def respond_to_missing?(symbol, *args)
end
end


class NotSupportedForPostgresqlVersion < StandardError; end

class PgSearchRankNotSelected < StandardError
Expand Down
1 change: 0 additions & 1 deletion lib/pg_search/configuration.rb
Expand Up @@ -4,7 +4,6 @@

module PgSearch
class Configuration

attr_reader :model

def initialize(options, model)
Expand Down
1 change: 0 additions & 1 deletion lib/pg_search/multisearch.rb
Expand Up @@ -2,7 +2,6 @@

module PgSearch
module Multisearch

class << self
def rebuild(model, clean_up=true)
model.transaction do
Expand Down
2 changes: 0 additions & 2 deletions spec/integration/associations_spec.rb
Expand Up @@ -137,7 +137,6 @@
expect(results.map(&:title)).to match_array(included.map(&:title))
expect(results).not_to include(excluded)
end

end

context "across multiple associations" do
Expand Down Expand Up @@ -321,7 +320,6 @@
included.each { |object| expect(results).to include(object) }
excluded.each { |object| expect(results).not_to include(object) }
end

end

context "against non-text columns" do
Expand Down
1 change: 0 additions & 1 deletion spec/integration/pg_search_spec.rb
Expand Up @@ -1167,7 +1167,6 @@
:against => :content,
:ranked_by => ":tsearch"


once = ModelWithPgSearch.create!(:content => 'foo bar')
twice = ModelWithPgSearch.create!(:content => 'foo foo')

Expand Down
2 changes: 0 additions & 2 deletions spec/lib/pg_search/features/trigram_spec.rb
Expand Up @@ -61,7 +61,6 @@
coalesced_column = "coalesce(#{Model.quoted_table_name}.\"name\"::text, '')"
expect(feature.conditions.to_sql).to eq("((#{coalesced_column}) % '#{query}')")
end

end
context 'multiple columns' do
let(:options) { { only: [:name, :content] } }
Expand All @@ -72,7 +71,6 @@
end
end
end

end

describe '#rank' do
Expand Down
1 change: 0 additions & 1 deletion spec/lib/pg_search/multisearchable_spec.rb
Expand Up @@ -309,7 +309,6 @@
expect { PgSearch::Document.find(document.id) }.to raise_error(ActiveRecord::RecordNotFound)
end
end

end
end

Expand Down

0 comments on commit 9e30be9

Please sign in to comment.