Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,22 @@ if defined?(RSpec::Core::RakeTask)
end

desc "Run all linting tasks"
task :lint => [ 'lint:schema', 'lint:yaml' ]
task :lint => [ 'lint:schema', 'lint:yaml', :yamllint ]

desc "Run yamllint command on all 'gems/*/*.yml' and 'rubies/*/*.yml' files"
task :yamllint do
abort "yamllint is not installed. Install it with: pip install yamllint" \
unless system("which yamllint > /dev/null 2>&1")

sh "yamllint gems rubies"
end

task :default => [ :lint ]
end

desc "Sync GitHub RubyGem Advisories into this project"
task :sync_github_advisories, [:gem_name] do |_, args|
require_relative "lib/github_advisory_sync"
GitHub::GitHubAdvisorySync.sync(gem_name: args[:gem_name])
sh "bash lib/rad-ignores.sh"
end