Skip to content

Commit

Permalink
Release v4.0 (#276)
Browse files Browse the repository at this point in the history
* chore: Bump @types/lodash from 4.14.133 to 4.14.134

Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.133 to 4.14.134.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* chore: Bump ts-node from 8.1.0 to 8.3.0

Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.1.0 to 8.3.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](TypeStrong/ts-node@v8.1.0...v8.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* chore: Bump tslint from 5.16.0 to 5.17.0

Bumps [tslint](https://github.com/palantir/tslint) from 5.16.0 to 5.17.0.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.16.0...5.17.0)

* chore: Bump @oclif/plugin-help from 2.1.6 to 2.2.0

Bumps [@oclif/plugin-help](https://github.com/oclif/plugin-help) from 2.1.6 to 2.2.0.
- [Release notes](https://github.com/oclif/plugin-help/releases)
- [Changelog](https://github.com/oclif/plugin-help/blob/master/CHANGELOG.md)
- [Commits](oclif/plugin-help@v2.1.6...v2.2.0)

* fix: Bump @stoplight/types from 5.1.2 to 7.0.1 (#224)

Bumps [@stoplight/types](https://github.com/stoplightio/types) from 5.1.2 to 7.0.1.
- [Release notes](https://github.com/stoplightio/types/releases)
- [Commits](stoplightio/types@v5.1.2...v7.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* fix: upgrade ref resolver (#225)

* chore: Bump yaml from 1.5.1 to 1.6.0

Bumps [yaml](https://github.com/eemeli/yaml) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](eemeli/yaml@v1.5.1...v1.6.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* fix: invalid-ref error (#228)

* fix: handle ajv resolving issues

* feat: include resolver errors

* chore: [Security] Bump tar from 2.2.1 to 2.2.2

Bumps [tar](https://github.com/npm/node-tar) from 2.2.1 to 2.2.2. **This update includes security fixes.**
- [Release notes](https://github.com/npm/node-tar/releases)
- [Commits](isaacs/node-tar@v2.2.1...v2.2.2)

* chore: Bump @types/node from 12.0.2 to 12.0.3

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.2 to 12.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

* chore: Bump typescript from 3.4.5 to 3.5.1

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.4.5 to 3.5.1.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

* chore: Bump @stoplight/types from 7.0.1 to 7.1.0

Bumps [@stoplight/types](https://github.com/stoplightio/types) from 7.0.1 to 7.1.0.
- [Release notes](https://github.com/stoplightio/types/releases)
- [Commits](stoplightio/types@v7.0.1...v7.1.0)

* fix: escape dot in example.com match pattern (#246)

* docs: update readme file SO-250

- fix the example of importing rules
- add repl.it examples
- move programmatic api docs to separate file
- clean up the readme a bit and update outputs

* chore: bump fs-extra (#252)

* chore: Bump @types/node from 12.0.3 to 12.0.7

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.3 to 12.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix(pattern.ts): enable use of regex flags for pattern in ruleset files (#251)

* fix(pattern.ts): enable use of regex flags for pattern in ruleset files

#242

* Update src/functions/pattern.ts

Co-Authored-By: Jakub Rożek <P0lip@users.noreply.github.com>

* Update src/functions/pattern.ts

Co-Authored-By: Jakub Rożek <P0lip@users.noreply.github.com>

* test(pattern.test.ts): testing exception on invalid flag in string regex

#242

* test(pattern.ts): use a different assertion

* feat: switch to more lightweight jsonpath pkg

BREAKING CHANGE: jsonpath-plus is now used for object querying. Syntax is slightly different in comparison to jsonpath.

* chore: defensive try/catch just in case

* chore: update how deps are pegged

* feat: implement quiet switch (#260)

* feat: remove maxResults flag

BREAKING CHANGE: maxResults is no longer available. Use max-results instead.

* chore: avoid accidental majors

* chore: Bump @stoplight/types from 5.1.2 to 9.0.2

Bumps [@stoplight/types](https://github.com/stoplightio/types) from 5.1.2 to 9.0.2.
- [Release notes](https://github.com/stoplightio/types/releases)
- [Commits](stoplightio/types@v5.1.2...v9.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* feat: add default resolvers  (#245)

BREAKING CHANGE: json-ref-resolver upgraded to 2.x

* fix: Bump @stoplight/types from 5.1.2 to 7.0.1 (#224)

Bumps [@stoplight/types](https://github.com/stoplightio/types) from 5.1.2 to 7.0.1.
- [Release notes](https://github.com/stoplightio/types/releases)
- [Commits](stoplightio/types@v5.1.2...v7.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* fix: upgrade ref resolver (#225)

* chore: Bump yaml from 1.5.1 to 1.6.0

Bumps [yaml](https://github.com/eemeli/yaml) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](eemeli/yaml@v1.5.1...v1.6.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* fix: invalid-ref error (#228)

* fix: handle ajv resolving issues

* feat: include resolver errors

* chore: [Security] Bump tar from 2.2.1 to 2.2.2

Bumps [tar](https://github.com/npm/node-tar) from 2.2.1 to 2.2.2. **This update includes security fixes.**
- [Release notes](https://github.com/npm/node-tar/releases)
- [Commits](isaacs/node-tar@v2.2.1...v2.2.2)

* chore: Bump @types/node from 12.0.2 to 12.0.3

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.2 to 12.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

* chore: Bump typescript from 3.4.5 to 3.5.1

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.4.5 to 3.5.1.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

* chore: Bump @stoplight/types from 7.0.1 to 7.1.0

Bumps [@stoplight/types](https://github.com/stoplightio/types) from 7.0.1 to 7.1.0.
- [Release notes](https://github.com/stoplightio/types/releases)
- [Commits](stoplightio/types@v7.0.1...v7.1.0)

* chore: Bump @oclif/command from 1.5.13 to 1.5.14

Bumps [@oclif/command](https://github.com/oclif/command) from 1.5.13 to 1.5.14.
- [Release notes](https://github.com/oclif/command/releases)
- [Changelog](https://github.com/oclif/command/blob/master/CHANGELOG.md)
- [Commits](oclif/command@v1.5.13...v1.5.14)

* chore: Bump @types/lodash from 4.14.130 to 4.14.133

Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.130 to 4.14.133.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

* feat: add default resolvers

* feat: support passing resolve option into run cmd

* test: fix them

* feat: resolve http and json refs in cli

* fix: use the resolved value in schema function

* fix: missing function call

* fix: use actual schema object

* test: update spectral.test.ts

* fix: do not try to resolve valid uris

* chore: rename authority to documentUri

* chore: use node-fetch

* fix: parse remote yaml in resolver

* chore: oops remove dummy fixture

* chore: use extname

* fix: resolve targetUri before run if its a file

* chore: Bump jest-when from 2.4.0 to 2.6.0

Bumps [jest-when](https://github.com/timkindberg/jest-when) from 2.4.0 to 2.6.0.
- [Release notes](https://github.com/timkindberg/jest-when/releases)
- [Commits](https://github.com/timkindberg/jest-when/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* chore: Bump @types/node from 12.0.8 to 12.0.10

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.8 to 12.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* docs: config file (#270)

* docs: config file

* docs: added link to config on README

* chore: Bump @oclif/command from 1.5.14 to 1.5.15

Bumps [@oclif/command](https://github.com/oclif/command) from 1.5.14 to 1.5.15.
- [Release notes](https://github.com/oclif/command/releases)
- [Changelog](https://github.com/oclif/command/blob/master/CHANGELOG.md)
- [Commits](oclif/command@v1.5.14...v1.5.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* chore: Bump tslint from 5.17.0 to 5.18.0

Bumps [tslint](https://github.com/palantir/tslint) from 5.17.0 to 5.18.0.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.17.0...5.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* add quiet flag to readme (#273)

* chore: Upload artifacts on release (#274)

* chore: add install sh script

* chore: upload artifacts

* feat: use latest openapi v3.0 metaschema (#275)

* Release only when a tag is published (#277)

* Update config.yml

* chore: remove spaces

* feat: incorporate better-ajv-errors (#265)

* feat: incorporate better-ajv-errors

* feat: strip property name from error message

* chore: add a comment

* test: extra ajv integration test

* test: remove redundant test case

* chore: Bump @semantic-release/exec from 3.3.3 to 3.3.5

Bumps [@semantic-release/exec](https://github.com/semantic-release/exec) from 3.3.3 to 3.3.5.
- [Release notes](https://github.com/semantic-release/exec/releases)
- [Commits](semantic-release/exec@v3.3.3...v3.3.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* chore: Bump @types/lodash from 4.14.134 to 4.14.135

Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.134 to 4.14.135.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* chore: Bump @stoplight/json-ref-resolver from 2.0.0 to 2.0.1

Bumps [@stoplight/json-ref-resolver](https://github.com/stoplightio/json-ref-resolver) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/stoplightio/json-ref-resolver/releases)
- [Commits](stoplightio/json-ref-resolver@v2.0.0...v2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* feat: process referenced files (#271)

* refactor: drop resolved

* feat: implement Resolved

* feat: wip

* feat: wip #2

* fix: include src in json validation message

* fix: feedback from Phil on http

* test: ref resolving

* refactor: naming + improved SpectralResolver

* fix: typing

* chore: remove yalced json-ref-resolver

* refactor: drop SpectralResolver

* fix: restore property path

* test: ajv error path

* test: extra ajv error path asserition

* refactor: sort out imports

* chore: Bump fs-extra from 8.0.1 to 8.1.0

Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 8.0.1 to 8.1.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases)
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/commits/8.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* feat(rulesets): renamed enabled to recommended (#285)

This is a breaking change which right now doesnt really do anything, but will let us add more useful
functionality in following versions. We want to support extending rulesets and taking either the
recom

BREAKING CHANGE: if you were using enabled: true/false change it to recommended: true/false

* release: fixes (#289)

* docs: run release only on tags

* feat: add dockerfile

* chore: release fixes

* fix: path to binaries

* chore: do not run on branches

* feat: get package version from git tag

* fix: other things

* chore: put npm token

* docs: offer the install script

* Update .gitignore

Co-Authored-By: Jakub Rożek <P0lip@users.noreply.github.com>

* chore: deduplicate tsconfig so I can remove a gazilion of dependencies

* chore: restore ts-jest

* fix: detect version number before creating the binary (#290)

* fix: gh_token

* fix: last minute stuff

* feat: docker image publishing (#291)

* feat: different ruleset extending (#232)

* feat: different ruleset extending

* feat: another take

* feat: refine ruleset validator

* refactor: fs reader is fully async now

* refactor: change extending

* refactor: resolvePath supports built-in Spectral files

* revert: runner.ts change

* revert: lint.ts

* refactor: drop util.promisify

* feat: use @stoplight/path

* refactor: rename rulests + support shorthands

* feat: use stoplight/path#isURL

* feat: human-readable severity levels

* refactor: introduce resolver

* feat: config merger

* feat: merge array-ish syntax

* feat: improve resolver & blend everything together

* revert: restore ruleset validation messages

* test: cover new resolving capabilities

* feat: nuke config files

* feat: tweak merger

* feat: improve ruleset validator

* fix: throw if rule cannot be processed

* feat: supports array-ish extends

* fix: slight adjustments to merger/reader & tests

* chore: naming tweak in linter.test and rule schema

* test: cover all rulesets shorthands

* chore: improve config.ts

* refactor(merger): shallow merging

* chore: rename ruleset resolver to ruleset finder

* refactor: include disabled rules

* feat: set default severity to warn

* chore(merger): use ruleset keyword

* test: rename fixtures

* fix: tests

* refactor: rename rule file

* refactor: correctly use tslint to fix

* fix: add bin directory (#292)

* chore: quote so that works on zsh

* fix: include bin directory

* fix: all the conditions

* fix: rename rules.json to index.json (#294)

* feat: rename rules.json to index.json

* build(jest-config): exclude json from moduleFileExtensions

* test: nuke snapshots (#296)

* test: nuke all the snapshots 🔥

* test: drop toMatchInlineSnapshot

* Adding in templates for story and task (#293)

* Adding in templates for story and task

* Moving templates into ISSUE_TEMPLATE folder

* updating templates for consistency

* ci: update issue templates and pr template

* issue templates

* feat: remove deprecated IRule & IRuleResult summary property (#297)

BREAKING CHANGE: summary property was removed - use message property instead.

* feat: remove deprecated IRule & IRuleResult summary property

* docs: remove summary property

* chore: typo

* fix: rule with human-readable severity should be considered as valid (#298)

* fix: rule with human-readable severity should be considered as valid

* fix: support rule: [DiagnosticSeverity, <object>] case

* refactor: unify config and ruleset naming (#300)

* refactor: unify config and ruleset naming

* docs: remove config

* docs: say a word about browsers

* Create azure-pipelines.yml (#334)

* Create azure-pipelines.yml

* refactor: use one command

* fix: use our fork of better-ajv-errors (#336)

* fix: use our fork of better-ajv-errors

* chore: avoid github.com

* test: run tests on develop branch (#337)

test: run tests on develop branch

* test: run Spectral tests in browser on CI (#284)

* build: basic Jest setup for electron testing

* build: configure Karma test runner

* build: improve Karma setup & update linter.test.ts

* chore: stub snapshot assertions

* build: tweak karma-jest.ts

* fix: use undefined rather than void to satisify karma-typescript

* build: ignore cli tests for Electron runner

* chore: some tweaks

* chore: drop electron runner

* chore: disable snapshot assertions

* test: karma.test.ts & jest.test.ts

* revert: test -> it in function.test.ts

* revert: remove unused deps

* fix: better handling of recommended rules

* build(jest): do not collect coverage from dist/

* test(finder): unpkg

* chore: add test variant docker images

* chore: reuse our tsconfig build

* chore: regular JSON

* chore: be more clear about what's going on

* chore: add status for develop branch

* chore: add circleci status badge

* test(karma): proper snapshot message

* chore: rename loader.test.ts

* test: remove empty file

* test: skip (#338)

* chore: Bump ajv from 6.10.0 to 6.10.1 (#339)

Bumps [ajv](https://github.com/epoberezkin/ajv) from 6.10.0 to 6.10.1.
- [Release notes](https://github.com/epoberezkin/ajv/releases)
- [Commits](ajv-validator/ajv@v6.10.0...v6.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* feat: offload docker image creation to dockerhub (#343)

* chore: offload docker image creation to dockerhub

* docs: remove tick

* feat(cli): remove --max-results flag (#345)

BREAKING CHANGE: --max-results flag is gone.

* test(lint): revert previous assertion (#346)

* chore: Bump @types/node from 12.0.10 to 12.6.0

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.10 to 12.6.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* chore: Bump lint-staged from 9.0.2 to 9.1.0

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.0.2 to 9.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v9.0.2...v9.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* feat: include recomended rules by default (#301)

* chore: bump @stoplight/types

* feat: normalize severity in merger

* feat(severity): better handling of rare edge case

* fix(merger): severity should be respected

* test(validation): two extra scenarios

* feat: inherit ruleset severity

* fix: inherit severity properly

* chore(reader): better explanation

* chore: rename test case

* test: cover all - off case

* revert: hasOwnProperty change

* test(merger): cover non-ideal data case

* chore: remove dead code

* fix(ruleset): accept string as extends value

* chore: rename merger.unit.ts

* Merge latest master in develop (#348)

* fix: Bump @stoplight/types from 5.1.2 to 7.0.1 (#224)

Bumps [@stoplight/types](https://github.com/stoplightio/types) from 5.1.2 to 7.0.1.
- [Release notes](https://github.com/stoplightio/types/releases)
- [Commits](stoplightio/types@v5.1.2...v7.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* fix: upgrade ref resolver (#225)

* chore: Bump yaml from 1.5.1 to 1.6.0

Bumps [yaml](https://github.com/eemeli/yaml) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](eemeli/yaml@v1.5.1...v1.6.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* fix: invalid-ref error (#228)

* fix: handle ajv resolving issues

* feat: include resolver errors

* chore: [Security] Bump tar from 2.2.1 to 2.2.2

Bumps [tar](https://github.com/npm/node-tar) from 2.2.1 to 2.2.2. **This update includes security fixes.**
- [Release notes](https://github.com/npm/node-tar/releases)
- [Commits](isaacs/node-tar@v2.2.1...v2.2.2)

* chore: Bump @types/node from 12.0.2 to 12.0.3

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.2 to 12.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

* chore: Bump typescript from 3.4.5 to 3.5.1

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.4.5 to 3.5.1.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

* chore: Bump @stoplight/types from 7.0.1 to 7.1.0

Bumps [@stoplight/types](https://github.com/stoplightio/types) from 7.0.1 to 7.1.0.
- [Release notes](https://github.com/stoplightio/types/releases)
- [Commits](stoplightio/types@v7.0.1...v7.1.0)

* chore: Bump @oclif/command from 1.5.13 to 1.5.14

Bumps [@oclif/command](https://github.com/oclif/command) from 1.5.13 to 1.5.14.
- [Release notes](https://github.com/oclif/command/releases)
- [Changelog](https://github.com/oclif/command/blob/master/CHANGELOG.md)
- [Commits](oclif/command@v1.5.13...v1.5.14)

* chore: Bump @types/lodash from 4.14.130 to 4.14.133

Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.130 to 4.14.133.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

* fix: escape dot in example.com match pattern (#246)

* docs: update readme file SO-250

- fix the example of importing rules
- add repl.it examples
- move programmatic api docs to separate file
- clean up the readme a bit and update outputs

* chore: bump fs-extra (#252)

* chore: Bump @types/node from 12.0.3 to 12.0.7

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.0.3 to 12.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix(pattern.ts): enable use of regex flags for pattern in ruleset files (#251)

* fix(pattern.ts): enable use of regex flags for pattern in ruleset files

#242

* Update src/functions/pattern.ts

Co-Authored-By: Jakub Rożek <P0lip@users.noreply.github.com>

* Update src/functions/pattern.ts

Co-Authored-By: Jakub Rożek <P0lip@users.noreply.github.com>

* test(pattern.test.ts): testing exception on invalid flag in string regex

#242

* test(pattern.ts): use a different assertion

* feat: implement quiet switch (#260)

* docs: SVG for the readme and a quick go at cli (#299)

* docs: very wip readme update

* docs: cli docs

* docs: add some ruleset examples

* docs: minor changes

* docs: comment out what we need to do next

* docs: more small changes

* docs: list hint

* docs: fix docker command

* docs: fixes

* docs: pronoun

* fix: copy rulesets to main directory (#352)

* refactor: build in same dir

* refactor: do not require dist

* chore: duplicate rulestes

* fix: remove file

* build: inline pkg version (#353)

* build: inline pkg version

* feat(inliner): cast to string

* refactor(severity): reduce complexity

* refactor(finder): reduce complexity

* refactor(severity): reduce complexity

* refactor(finder): reduce complexity
  • Loading branch information
Phil Sturgeon authored and XVincentX committed Jul 10, 2019
1 parent 81f5b61 commit 42689a2
Show file tree
Hide file tree
Showing 198 changed files with 7,015 additions and 7,456 deletions.
65 changes: 56 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@ commands:
name: cc-before
command: |
./cc-test-reporter before-build
- run: yarn test.prod
- run:
name: Run browser tests
command: yarn test.karma
- run:
name: Build the code
command: yarn build
- run:
name: Run node tests
command: yarn test --coverage --maxWorkers=2
- run:
name: Lint the code
command: yarn lint
- run:
name: cc-after
command: |
Expand All @@ -41,39 +52,65 @@ commands:
jobs:
test-node-latest:
docker:
- image: circleci/node:latest
- image: circleci/node:latest-browsers
steps:
- install-and-test

test-node-12:
docker:
- image: circleci/node:12
- image: circleci/node:12-browsers
steps:
- install-and-test

test-node-10:
docker:
- image: circleci/node:10
- image: circleci/node:10-browsers
steps:
- install-and-test

test-node-8:
docker:
- image: circleci/node:8
- image: circleci/node:8-browsers
steps:
- install-and-test

release:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- cached-dependencies
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm version from-git
- run: yarn inline-version
- run: yarn build
- run: yarn release
- run: |
if [[ "$CIRCLE_TAG" == *beta* ]] ; then
npm publish --tag beta
elif [[ "$CIRCLE_TAG" == *alpha* ]] ; then
npm publish --tag alpha
else
npm publish
fi
- run: yarn build.binary
- persist_to_workspace:
root: ./
paths:
- binaries
upload_artifacts:
docker:
- image: circleci/golang:1-stretch
steps:
- attach_workspace:
at: /tmp/
- run:
name: "Download GitHub Release Utility"
command: go get github.com/tcnksm/ghr
- run:
name: "Publish Release artifacts on GitHub"
command: ghr -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} /tmp/binaries

workflows:
version: 2
commit:
jobs:
- test-node-latest
Expand All @@ -85,4 +122,14 @@ workflows:
- release:
filters:
branches:
only: master
ignore: /.*/
tags:
only: /^v.*/
- upload_artifacts:
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
requires:
- release
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
docs
img
.github
.circleci
__mocks__
__tests__
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug
---

> For support questions, please use the [Stoplight Community Forum](https://community.stoplight.io). This repository's issues are reserved for feature requests and bug reports. If you are unsure if you are experiencing a bug, the [Community Forum](https://community.stoplight.io) is a great place to start.
>
> **Please delete this section, any any sections below that you don't use, before creating the issue.**
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**

1. Given this OpenAPI document '...'
2. Run this CLI command '....'
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (remove any that are not applicable):**
- Library version: [e.g. 3.0.0]
- OS: [e.g. Windows 7]
- Browser: [e.g. Chrome 61]

**Additional context**
Add any other context about the problem here.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/chore_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Chore
about: Work that's not a new feature, and not a bug.
labels: chore
---

**Chore summary**
What is the goal of this chore.

**Tasks**
- [ ] Need to do this
- [ ] And do that

**Additional context**
Add any other context about the chore here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea
labels: feature request
---

**User story.**
As a {user_type}, I can do {some_user_action}, so that I can {some_user_value}.

**Is your feature request related to a problem?**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context or screenshots about the feature request here.
28 changes: 0 additions & 28 deletions .github/issue_template.md

This file was deleted.

27 changes: 15 additions & 12 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
### Please check if the PR fulfills these requirements
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
Fixes #[ISSUE_NUMBER].

### What kind of change does this PR introduce?
**Checklist**

Bug fix, feature, or docs update
- [ ] Tests added / updated
- [ ] Docs added / updated
- [ ] Check this off Breaking change?

### What is the current behavior?
**Does this PR introduce a breaking change?**

You can also link to an open issue here.
- [ ] Yes
- [ ] No

### If this is a feature change, what is the new behavior?
> If indicated yes above, please describe the breaking change(s).
>
> **Remove this quote before creating the PR.**
### Does this PR introduce a breaking change?
**Screenshots**

What changes might users need to make in their application due to this PR?
If applicable, add screenshots or gifs to help demonstrate the changes. If not applicable, remove this screenshots section before creating the PR.

### Other information
**Additional context**

(e.g. detailed explanation, related issues, links for us to have context, eg. stackoverflow, issues outside of the repo, forum, etc.)
Add any other context about the pull request here. Remove this section if there is no additional context.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@
*.log*
*-debug.log*
*-error.log*
oclif.manifest.json
/binaries
/rulesets
40 changes: 40 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FROM node:12 as compiler

WORKDIR /usr/src/spectral

COPY package.json yarn.lock tsconfig.build.json tsconfig.json /usr/src/spectral/
COPY src/ /usr/src/spectral/src/

RUN yarn && yarn build

###############################################################
FROM node:12 as dependencies

WORKDIR /usr/src/spectral/

COPY package.json /usr/src/spectral/

ENV NODE_ENV production
RUN yarn --production

RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash
RUN ./bin/node-prune

###############################################################
FROM node:12-alpine

WORKDIR /usr/src/spectral
ENV NODE_ENV production

COPY package.json /usr/src/spectral/

COPY --from=compiler /usr/src/spectral/dist /usr/src/spectral/dist

COPY --from=compiler /usr/src/spectral/oclif.manifest.json /usr/src/spectral/oclif.manifest.json
COPY ./bin /usr/src/spectral/bin

COPY --from=dependencies /usr/src/spectral/node_modules/ /usr/src/spectral/node_modules/

WORKDIR /usr/src/spectral/

ENTRYPOINT [ "node", "bin/run" ]
Loading

0 comments on commit 42689a2

Please sign in to comment.