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(cli): integrate ruleset-bundler #1824

Merged
merged 8 commits into from
Oct 6, 2021

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Sep 8, 2021

Related to https://github.com/stoplightio/platform-internal/issues/7847
Fixes #1821

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

@P0lip P0lip added the enhancement New feature or request label Sep 8, 2021
@P0lip P0lip self-assigned this Sep 8, 2021
Base automatically changed from feat/bundling to develop September 15, 2021 18:33
@P0lip P0lip force-pushed the feat/cli/integrate-ruleset-bundler branch 2 times, most recently from 808b061 to 060247a Compare September 19, 2021 21:07
@P0lip P0lip force-pushed the feat/cli/integrate-ruleset-bundler branch from 7ae93fc to 5937582 Compare October 4, 2021 17:18
@P0lip P0lip marked this pull request as ready for review October 4, 2021 17:20
@P0lip P0lip requested a review from a team October 4, 2021 17:31
@P0lip P0lip force-pushed the feat/cli/integrate-ruleset-bundler branch from 5937582 to 2c91908 Compare October 5, 2021 19:04
@P0lip P0lip enabled auto-merge (squash) October 5, 2021 19:08
@@ -212,7 +212,9 @@ describe('Linter service', () => {

describe('when single ruleset option provided', () => {
it('outputs "does not exist" error', () => {
return expect(run(`lint ${validOas3SpecPath} -r non-existent-path`)).rejects.toThrow('Cannot find module');
return expect(run(`lint ${validOas3SpecPath} -r non-existent-path`)).rejects.toThrow(
/^Could not resolve entry module \(packages[/\\]cli[/\\]src[/\\]services[/\\]__tests__[/\\]__fixtures__[/\\]non-existent-path\)\.$/,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this regexp is because of Windows and their slashes

import * as commonjs from '@rollup/plugin-commonjs';
import { ErrorWithCause } from 'pony-cause';
Copy link
Contributor Author

@P0lip P0lip Oct 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@P0lip P0lip requested a review from marbemac October 6, 2021 16:15
@P0lip P0lip merged commit 26284c7 into develop Oct 6, 2021
@P0lip P0lip deleted the feat/cli/integrate-ruleset-bundler branch October 6, 2021 16:28
stoplight-bot pushed a commit that referenced this pull request Oct 7, 2021
# [@stoplight/spectral-cli-v6.1.0](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-cli-v6.0.1...@stoplight/spectral-cli-v6.1.0) (2021-10-07)

### Features

* **cli:** integrate ruleset-bundler ([#1824](#1824)) ([26284c7](26284c7))
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version @stoplight/spectral-cli-v6.1.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spectral-cli fails to load functions of a ruleset that is loaded over HTTP
3 participants