spectral icon indicating copy to clipboard operation
spectral copied to clipboard

feat(cli): added parser arg

Open rudfoss-rr opened this issue 1 year ago • 3 comments

Checklist

  • [ ] Tests added / updated
  • [x] Docs added / updated

Does this PR introduce a breaking change?

  • [ ] Yes
  • [x] No

If indicated yes above, please describe the breaking change(s).

Remove this quote before creating the PR.

Additional context

Suggestion for adding support for a parser argument to the CLI so that the appropriate parser can be selected for Json files.

rudfoss-rr avatar Nov 15 '24 10:11 rudfoss-rr

@mnaumanali94 I was having trouble fixing the commit message issues so I reopened a new PR instead. Sorry for the confusion. I've addressed the lint issues, but I'm having trouble getting all tests to work as well as adding appropriate tests of my own. Would love some help if you have time as I haven't worked with test-harness before and can't seem to get them to run locally in dev-container.

rudfoss-rr avatar Nov 15 '24 10:11 rudfoss-rr

@rudfoss-rr So to run harness tests you first need to build the binaries. For that cd into the package/cli folder and run yarn build.binary and then at the root level run yarn test.harness. Let us know if you run into issues!

mnaumanali94 avatar Nov 15 '24 14:11 mnaumanali94

@rudfoss-rr So to run harness tests you first need to build the binaries. For that cd into the package/cli folder and run yarn build.binary and then at the root level run yarn test.harness. Let us know if you run into issues!

Thanks! I've updated tests and attempted to add a few scenarios of my own, but was unable to completely rebuild the scenario tests using either test.harness, build or build.binary so I wasn't able to properly verify all scenarios locally. I'm guessing there is just some script I'm missing.

I now see that I've broken a few other tests, but I'm not sure exactly why. If you could have a look and point me in the right direction that would be great!

rudfoss-rr avatar Nov 18 '24 09:11 rudfoss-rr

@rudfoss-rr this hasn't been addressed, correct? I still see the warnings for \t in json files

sbstnkr avatar Aug 11 '25 11:08 sbstnkr

@sbstnkr Yes, that is right. But I was unable to get the tests working and had to move on to other work so I closed it to avoid polluting the project with a broken PR.

rudfoss-rr avatar Aug 14 '25 05:08 rudfoss-rr

@rudfoss-rr could you please create another PR? 🙏🏼

sbstnkr avatar Aug 18 '25 13:08 sbstnkr