mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Code cleanup: RuboCop: Style/DefWithParentheses
git-svn-id: http://svn.redmine.org/redmine/trunk@18290 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bed26b30df
commit
c2b30f5d3d
@ -1444,14 +1444,6 @@ Style/CommentedKeyword:
|
|||||||
Style/ConditionalAssignment:
|
Style/ConditionalAssignment:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 3
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Style/DefWithParentheses:
|
|
||||||
Exclude:
|
|
||||||
- 'app/helpers/sort_helper.rb'
|
|
||||||
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
||||||
- 'lib/redmine/unified_diff.rb'
|
|
||||||
|
|
||||||
# Offense count: 626
|
# Offense count: 626
|
||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|||||||
@ -551,7 +551,7 @@ module IssuesHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Issue history tabs
|
# Issue history tabs
|
||||||
def issue_history_tabs()
|
def issue_history_tabs
|
||||||
tabs = []
|
tabs = []
|
||||||
if @journals.present?
|
if @journals.present?
|
||||||
journals_without_notes = @journals.select{|value| value.notes.blank?}
|
journals_without_notes = @journals.select{|value| value.notes.blank?}
|
||||||
|
|||||||
@ -96,7 +96,7 @@ module SortHelper
|
|||||||
# Returns an SQL sort clause corresponding to the current sort state.
|
# Returns an SQL sort clause corresponding to the current sort state.
|
||||||
# Use this to sort the controller's table items collection.
|
# Use this to sort the controller's table items collection.
|
||||||
#
|
#
|
||||||
def sort_clause()
|
def sort_clause
|
||||||
@sort_criteria.sort_clause(@sortable_columns)
|
@sort_criteria.sort_clause(@sortable_columns)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -445,7 +445,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Interpretiert die cvs revisionsnummern wie z.b. 1.14 oder 1.3.0.15
|
# Interpretiert die cvs revisionsnummern wie z.b. 1.14 oder 1.3.0.15
|
||||||
def parseRevision()
|
def parseRevision
|
||||||
pieces = @complete_rev.split(".")
|
pieces = @complete_rev.split(".")
|
||||||
@revision = pieces.last.to_i
|
@revision = pieces.last.to_i
|
||||||
baseSize = 1
|
baseSize = 1
|
||||||
|
|||||||
@ -227,7 +227,7 @@ module Redmine
|
|||||||
attr_accessor :type_diff_left
|
attr_accessor :type_diff_left
|
||||||
attr_accessor :offsets
|
attr_accessor :offsets
|
||||||
|
|
||||||
def initialize()
|
def initialize
|
||||||
self.nb_line_left = ''
|
self.nb_line_left = ''
|
||||||
self.nb_line_right = ''
|
self.nb_line_right = ''
|
||||||
self.line_left = ''
|
self.line_left = ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user