Commit 5bd5350bd2a458a1134266bfe59ec358ad6a6809
1 parent
bf4b315e
Exists in
master
and in
1 other branch
Rubocop: newline between method defs
Showing
5 changed files
with
7 additions
and
12 deletions
Show diff stats
.rubocop.yml
.rubocop_todo.yml
| @@ -147,18 +147,6 @@ Style/EachWithObject: | @@ -147,18 +147,6 @@ Style/EachWithObject: | ||
| 147 | - 'app/models/notice_fingerprinter.rb' | 147 | - 'app/models/notice_fingerprinter.rb' |
| 148 | - 'lib/recurse.rb' | 148 | - 'lib/recurse.rb' |
| 149 | 149 | ||
| 150 | -# Offense count: 14 | ||
| 151 | -# Cop supports --auto-correct. | ||
| 152 | -# Configuration parameters: AllowAdjacentOneLineDefs. | ||
| 153 | -Style/EmptyLineBetweenDefs: | ||
| 154 | - Exclude: | ||
| 155 | - - 'app/controllers/apps_controller.rb' | ||
| 156 | - - 'app/controllers/users_controller.rb' | ||
| 157 | - - 'app/models/notification_service.rb' | ||
| 158 | - - 'spec/decorators/issue_tracker_decorator_spec.rb' | ||
| 159 | - - 'spec/decorators/issue_tracker_type_decorator_spec.rb' | ||
| 160 | - - 'spec/views/problems/show.html.haml_spec.rb' | ||
| 161 | - | ||
| 162 | # Offense count: 22 | 150 | # Offense count: 22 |
| 163 | # Cop supports --auto-correct. | 151 | # Cop supports --auto-correct. |
| 164 | # Configuration parameters: AllowForAlignment. | 152 | # Configuration parameters: AllowForAlignment. |
app/controllers/apps_controller.rb
spec/decorators/issue_tracker_decorator_spec.rb
| @@ -3,6 +3,7 @@ describe IssueTrackerDecorator do | @@ -3,6 +3,7 @@ describe IssueTrackerDecorator do | ||
| 3 | klass = Class.new(ErrbitPlugin::IssueTracker) { | 3 | klass = Class.new(ErrbitPlugin::IssueTracker) { |
| 4 | def self.label; 'fake'; end | 4 | def self.label; 'fake'; end |
| 5 | def self.note; 'a note'; end | 5 | def self.note; 'a note'; end |
| 6 | + | ||
| 6 | def self.fields | 7 | def self.fields |
| 7 | { | 8 | { |
| 8 | :foo => {:label => 'foo'}, | 9 | :foo => {:label => 'foo'}, |
spec/decorators/issue_tracker_type_decorator_spec.rb
| @@ -3,12 +3,14 @@ describe IssueTrackerDecorator do | @@ -3,12 +3,14 @@ describe IssueTrackerDecorator do | ||
| 3 | klass = Class.new(ErrbitPlugin::IssueTracker) do | 3 | klass = Class.new(ErrbitPlugin::IssueTracker) do |
| 4 | def self.label; 'fake'; end | 4 | def self.label; 'fake'; end |
| 5 | def self.note; 'a note'; end | 5 | def self.note; 'a note'; end |
| 6 | + | ||
| 6 | def self.fields | 7 | def self.fields |
| 7 | { | 8 | { |
| 8 | :foo => {:label => 'foo'}, | 9 | :foo => {:label => 'foo'}, |
| 9 | :bar => {:label => 'bar'} | 10 | :bar => {:label => 'bar'} |
| 10 | } | 11 | } |
| 11 | end | 12 | end |
| 13 | + | ||
| 12 | def self.icons | 14 | def self.icons |
| 13 | { | 15 | { |
| 14 | one: ['text/plain', 'all your base are belong to us'], | 16 | one: ['text/plain', 'all your base are belong to us'], |