Convert workflows to use reviewdog, run rubocop on tree (#8939)

This commit is contained in:
Maximilian Downey Twiss
2023-11-13 18:46:43 +11:00
committed by GitHub
parent 3e2fa11072
commit 86a7814bda
12 changed files with 29 additions and 35 deletions

View File

@@ -6,12 +6,12 @@ $LOAD_PATH.unshift '../lib'
require_relative '../lib/const'
require_relative '../lib/package'
output = Array.new
output = []
Dir.glob('../packages/*.rb').each do |filename|
pkg = Package.load_package(filename)
next if pkg.is_fake?
output << {name: File.basename(filename, '.rb').gsub("_","-"), description: pkg.description, homepage: pkg.homepage, version: pkg.version, license: pkg.license, compatibility: pkg.compatibility}
output << { name: File.basename(filename, '.rb').gsub('_', '-'), description: pkg.description, homepage: pkg.homepage, version: pkg.version, license: pkg.license, compatibility: pkg.compatibility }
end
File.write('repology.json', JSON.generate(output))