Sha256: da53d9579d0fea80c81c39cf152572bf967e4c09b33dbc7160fb716302da084e

Contents?: true

Size: 466 Bytes

Versions: 5

Compression:

Stored size: 466 Bytes

Contents

$LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
require 'metadata_json_lint'
MetadataJsonLint.options.fail_on_warnings = false

desc "Test metadata_lint on multiple files. Don't fail"
task :metadata_lint_multi do
  MetadataJsonLint.parse('metadata_license.json') do |options|
    options.strict_license = false
  end
  MetadataJsonLint.parse('metadata_ok.json') do |options|
    options.strict_license = true
    options.fail_on_warnings = true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metadata-json-lint-4.1.0 tests/rake_multiple_json_options/Rakefile
metadata-json-lint-4.0.0 tests/rake_multiple_json_options/Rakefile
metadata-json-lint-3.0.3 tests/rake_multiple_json_options/Rakefile
metadata-json-lint-3.0.2 tests/rake_multiple_json_options/Rakefile
metadata-json-lint-3.0.1 tests/rake_multiple_json_options/Rakefile