2039c8280d
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
17 lines
577 B
Ruby
17 lines
577 B
Ruby
cal = Icalendar::Calendar.new
|
|
cal.prodid = '-//GitLab//NONSGML GitLab//EN'
|
|
cal.x_wr_calname = 'GitLab Issues'
|
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
|
@issues.includes(project: :namespace).each do |issue|
|
|
cal.event do |event|
|
|
event.dtstart = Icalendar::Values::Date.new(issue.due_date)
|
|
event.summary = "#{issue.title} (in #{issue.project.full_path})"
|
|
event.description = "Find out more at #{issue_url(issue)}"
|
|
event.url = issue_url(issue)
|
|
event.transp = 'TRANSPARENT'
|
|
end
|
|
end
|
|
# rubocop: enable CodeReuse/ActiveRecord
|
|
|
|
cal.to_ical
|