X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=Rakefile;h=df1e6ec275d8611fe945b053b3959b39aec4db26;hb=06207c35da2c9ad20bc733abe43a8566b3506c28;hp=0a5093b33aaeac93cab8160f2f63988505061689;hpb=c5259f83ad20d120d502d8541c75f4ee6021fec8;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/Rakefile b/Rakefile index 0a5093b..df1e6ec 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,6 @@ # frozen_string_literal: true +require 'bundler' require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any? require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-syntax/tasks/puppet-syntax' @@ -41,12 +42,22 @@ def changelog_future_release end PuppetLint.configuration.send('disable_relative') +PuppetLint.configuration.send('disable_top_scope_facts') +PuppetLint.configuration.send('disable_topscope_variable') +PuppetLint.configuration.send('disable_relative_classname_inclusion') +PuppetLint.configuration.send('disable_parameter_documentation') +PuppetLint.configuration.send('disable_anchor_resource') +PuppetLint.configuration.send('disable_strict_indent') +PuppetLint.configuration.send('disable_unquoted_string_in_case') +PuppetLint.configuration.send('disable_optional_default') + if Bundler.rubygems.find_name('github_changelog_generator').any? GitHubChangelogGenerator::RakeTask.new :changelog do |config| raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil? config.user = "#{changelog_user}" config.project = "#{changelog_project}" + config.since_tag = "5.0.1" config.future_release = "#{changelog_future_release}" config.exclude_labels = ['maintenance'] config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."