# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
Style/ParenthesesAroundCondition:
Exclude:
- - 'app/models/query.rb'
- 'app/models/repository/subversion.rb'
- 'app/models/time_entry.rb'
- 'app/models/wiki_page.rb'
end
when "!*"
sql = "#{db_table}.#{db_field} IS NULL"
- sql += " OR #{db_table}.#{db_field} = ''" if (is_custom_filter || [:text, :string].include?(type_for(field)))
+ sql += " OR #{db_table}.#{db_field} = ''" if is_custom_filter || [:text, :string].include?(type_for(field))
when "*"
sql = "#{db_table}.#{db_field} IS NOT NULL"
sql += " AND #{db_table}.#{db_field} <> ''" if is_custom_filter