RuboCop 0.50.0; lints
This commit is contained in:
@@ -78,7 +78,7 @@ module GitHubChangelogGenerator
|
||||
issue["actual_date"] = commit["commit"]["author"]["date"]
|
||||
|
||||
# issue['actual_date'] = commit['author']['date']
|
||||
rescue
|
||||
rescue StandardError
|
||||
puts "Warning: Can't fetch commit #{event['commit_id']}. It is probably referenced from another repo."
|
||||
issue["actual_date"] = issue["closed_at"]
|
||||
end
|
||||
|
||||
@@ -277,7 +277,7 @@ module GitHubChangelogGenerator
|
||||
|
||||
begin
|
||||
param = match[2].nil?
|
||||
rescue
|
||||
rescue StandardError
|
||||
puts "Can't detect user and name from first parameter: '#{arg0}' -> exit'"
|
||||
return
|
||||
end
|
||||
|
||||
@@ -48,7 +48,7 @@ module GitHubChangelogGenerator
|
||||
return if non_configuration_line?(line)
|
||||
option_name, value = extract_pair(line)
|
||||
@options[option_key_for(option_name)] = convert_value(value, option_name)
|
||||
rescue
|
||||
rescue StandardError
|
||||
raise ParserError, "Failed on line ##{line_number}: \"#{line.gsub(/[\n\r]+/, '')}\""
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user