Giter Site home page Giter Site logo

spdx-validator's Introduction

spdx-validator's People

Contributors

hesa avatar vargenau avatar

Stargazers

 avatar

Watchers

 avatar

spdx-validator's Issues

Using -sd . without -r crashes the tool

$ spdx-validator -sd . freetype-2.9.spdx.json 
Traceback (most recent call last):
  File "/home/hesa/.local/lib/python3.9/site-packages/spdx_validator/__main__.py", line 131, in main
    data = validator.validate_file(file_name, args.recursive, discard_checksum = args.discard_checksum)
  File "/home/hesa/.local/lib/python3.9/site-packages/spdx_validator/validator.py", line 118, in validate_file
    raise SPDXValidationException("Could not open file: " + str(spdx_file))
spdx_validator.exception.SPDXValidationException: Could not open file: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hesa/.local/bin/spdx-validator", line 33, in <module>
    sys.exit(load_entry_point('spdx-validator==0.1', 'console_scripts', 'spdx-validator')())
  File "/home/hesa/.local/lib/python3.9/site-packages/spdx_validator/__main__.py", line 137, in main
    print("Failed validating: " + file_name, file=sys.stderr)
TypeError: can only concatenate str (not "NoneType") to str

Add dir of the SPDX file to check to list of dir

Currently spdx-validator looks for SPDX files in directories as supplied using --spdx-dir.
By default it would make sense to look for files in the same directory as where the SPDX file to validate is located.

So for

spdx-validator release/freettype-2.09.spdx.json

then release/ will be added to directories where to look for related SPDX files.

Add flict format to output when converting

$ spdx-validator --convert --format flict example-data/freetype-2.9.spdx.json  -pp -r -sd example-data/ 
...
no implementation for flict

Would be nice to have spdx-validator spit out flict format. Then we can also validate licenses.

Add convert

convert from one format (e.g. JSON) to another (e.g. YAML)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.