Debian Codegraph @

tests/rake_multiple_json_options/Rakefile

raw
1 $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2 require 'metadata_json_lint'
3 MetadataJsonLint.options.fail_on_warnings = false
4
5 desc "Test metadata_lint on multiple files. Don't fail"
6 task :metadata_lint_multi do
7 MetadataJsonLint.parse('metadata_license.json') do |options|
8 options.strict_license = false
9 end
10 MetadataJsonLint.parse('metadata_ok.json') do |options|
11 options.strict_license = true
12 options.fail_on_warnings = true
13 end
14 end