Skip to content

Commit

Permalink
[ci][frontend] Enable three more rubocops
Browse files Browse the repository at this point in the history
* Layout/SpaceAroundBlockParameters
* Layout/SpaceAroundKeyword
* Layout/SpaceBeforeComma

Updated via rubocop's --auto-correct
  • Loading branch information
bgeuken committed Oct 12, 2017
1 parent 28826fa commit d3c072e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
21 changes: 0 additions & 21 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,34 +248,13 @@ Layout/MultilineMethodCallIndentation:
Layout/MultilineOperationIndentation:
Enabled: false

# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleInsidePipes, SupportedStylesInsidePipes.
# SupportedStylesInsidePipes: space, no_space
Layout/SpaceAroundBlockParameters:
Exclude:
- 'src/api/app/views/result/packageresult.xml.builder'
- 'src/api/app/views/result/projectresult.xml.builder'

# Offense count: 1
# Cop supports --auto-correct.
Layout/SpaceAroundKeyword:
Exclude:
- 'src/api/app/views/person/userinfo.xml.builder'

# Offense count: 68
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Layout/SpaceBeforeBlockBraces:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Layout/SpaceBeforeComma:
Exclude:
- 'src/api/app/views/tag/_tagged_objects_with_tags.xml.builder'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Expand Down
2 changes: 1 addition & 1 deletion src/api/app/views/person/userinfo.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xml.person do
xml.email @render_user.email
xml.realname @render_user.realname

if( @render_user.watched_projects.count > 0 )
if @render_user.watched_projects.count > 0
xml.watchlist do
@render_user.watched_projects.each do |wp|
xml.project :name => wp.name
Expand Down
2 changes: 1 addition & 1 deletion src/api/app/views/result/packageresult.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ xml.packageresult( "project" => @project, "repository" => @repository,
xml.packagecount( @succeeded, "state" => "succeeded" )
xml.packagecount( @failed, "state" => "failed" )
end
@arch_status.each do | a, s |
@arch_status.each do |a, s|
xml.archresult( "arch" => a ) do
xml.status( "code" => s["code"] ) do
if ( s["summary"] )
Expand Down
4 changes: 2 additions & 2 deletions src/api/app/views/result/projectresult.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ xml.projectresult( "project" => @project ) do
xml.packagecount( @building, "state" => "building" )
xml.packagecount( @delayed, "state" => "delayed" )
end
@repository_status.each do | r, arch_status |
@repository_status.each do |r, arch_status|
xml.repositoryresult( "name" => r ) do
arch_status.each do | a, s |
arch_status.each do |a, s|
xml.archresult( "arch" => a ) do
xml.status( "code" => s )
end
Expand Down

0 comments on commit d3c072e

Please sign in to comment.