Fix all Layout/TrailingWhitespace rubocop issues and remove from rubocop_todo list
This commit is contained in:
@@ -674,12 +674,6 @@ Style/SymbolProc:
|
|||||||
- 'lib/manager_authenticator.rb'
|
- 'lib/manager_authenticator.rb'
|
||||||
- 'spec/factories.rb'
|
- 'spec/factories.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Layout/TrailingWhitespace:
|
|
||||||
Exclude:
|
|
||||||
- 'app/controllers/admin/api/stats_controller.rb'
|
|
||||||
|
|
||||||
# Offense count: 31
|
# Offense count: 31
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/UnneededInterpolation:
|
Style/UnneededInterpolation:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class Geozone < ActiveRecord::Base
|
class Geozone < ActiveRecord::Base
|
||||||
|
|
||||||
include Graphqlable
|
include Graphqlable
|
||||||
|
|
||||||
has_many :proposals
|
has_many :proposals
|
||||||
has_many :spending_proposals
|
has_many :spending_proposals
|
||||||
has_many :debates
|
has_many :debates
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class Organization < ActiveRecord::Base
|
class Organization < ActiveRecord::Base
|
||||||
|
|
||||||
include Graphqlable
|
include Graphqlable
|
||||||
|
|
||||||
belongs_to :user, touch: true
|
belongs_to :user, touch: true
|
||||||
|
|
||||||
validates :name, presence: true
|
validates :name, presence: true
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ describe "Abilities::Common" do
|
|||||||
it { should_not be_able_to(:vote, investment_in_accepting_budget) }
|
it { should_not be_able_to(:vote, investment_in_accepting_budget) }
|
||||||
it { should be_able_to(:vote, investment_in_selecting_budget) }
|
it { should be_able_to(:vote, investment_in_selecting_budget) }
|
||||||
it { should_not be_able_to(:vote, investment_in_balloting_budget) }
|
it { should_not be_able_to(:vote, investment_in_balloting_budget) }
|
||||||
|
|
||||||
it { should_not be_able_to(:destroy, investment_in_accepting_budget) }
|
it { should_not be_able_to(:destroy, investment_in_accepting_budget) }
|
||||||
it { should_not be_able_to(:destroy, investment_in_reviewing_budget) }
|
it { should_not be_able_to(:destroy, investment_in_reviewing_budget) }
|
||||||
it { should_not be_able_to(:destroy, investment_in_selecting_budget) }
|
it { should_not be_able_to(:destroy, investment_in_selecting_budget) }
|
||||||
|
|||||||
Reference in New Issue
Block a user