Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: big refactoring of internals #81

Merged
merged 15 commits into from
Mar 12, 2022
Merged

feat!: big refactoring of internals #81

merged 15 commits into from
Mar 12, 2022

Commits on Mar 11, 2022

  1. feat!: big refactoring of internals

    * Refactored the way the library does validation: now we use
      github.com/go-playground/validator/v10 instead of custom ones.
    * Now Parse() always return ValidationErrors containing one or more
      ValidationError if any validation error is present.
    * The parser tries not to stop the validation early and give as many
      errors as possible immediately.
    * The strict mode was removed
    * The default output is now errorformat friendly
      (https://vim-jp.org/vimdoc-en/quickfix.html#error-file-format)
    * pcvalidate learned the -json switch to ouput the report as JSON
    * Specify the errored keys as a subset of JSONPath
      (fe. documentation.eng.features[3])
    
    Fix italia#76, Fix italia#19, Fix italia#74, Fix italia#60.
    bfabio committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    1bfb94c View commit details
    Browse the repository at this point in the history
  2. test: use publiccode-editor repository for remote validation

    Use the italia/publiccode-editor repository as we can change the
    publiccode.yml more quickly, if we need to.
    bfabio committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    5ddb42b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    81e6e09 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9ce0fe6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2529643 View commit details
    Browse the repository at this point in the history
  6. chore: update amministrazioni.txt

    Related to italia#82.
    bfabio committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    41fe408 View commit details
    Browse the repository at this point in the history
  7. feat!: remove RemoteBaseURL and LocalBasePath

    * Remove -remote-base-url from the CLI.
      By default, files existence it's performed checking remotely
      using remote raw root URL, which is now autodetected from the publiccode.
      To check from the local directory use -path
    * Similarly, the Go API now provides NewParser() and NewParserWithPath(),
      to use respectively the remote raw URL or a local path.
    bfabio committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    c9f289a View commit details
    Browse the repository at this point in the history
  8. feat: remove the checks on urls

    This allows for publiccode.yml to be in a different repository than the
    one pointed by url and for absolute URLs in publiccode.yml to be
    outside of the repository.
    
    Related to italia/publiccode-crawler#85
    bfabio committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    210392b View commit details
    Browse the repository at this point in the history
  9. refactor!: remove expansion of relative paths

    Don't expand the relative path of files, the parser should
    just deal with parsing and validation.
    bfabio committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    718a41b View commit details
    Browse the repository at this point in the history
  10. feat: disable isReachable() checks when run under WASM

    Disable checks that would most likely run into CORS errors when
    running under WASM.
    bfabio committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    cdd22da View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2022

  1. Configuration menu
    Copy the full SHA
    6bbac6e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    38e212d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8ae5bf3 View commit details
    Browse the repository at this point in the history
  4. chore: add v2 to module path

    bfabio committed Mar 12, 2022
    Configuration menu
    Copy the full SHA
    93a6435 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    68aa429 View commit details
    Browse the repository at this point in the history