Skip to main content

This component manages linting of JSON files. By default this component applies a configuration with reasonable settings for software projects.

Usage

Example with one custom setting

  • Create a new pipeline file
include:
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/common@stable
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/lint-json@stable
# Configuration for jsonlint
strict: true

Inputs

NameDescriptionDefaultType
------------
allow-failureShould the pipeline fail if the test fails?falseboolean
config-fileThe contents of the configuration file, if none exists.comments: true color: true succeedWithNoFiles: true continue: true log-files: true patterns: ["**/*.json", "!**/node_modules", "!**/vendor", "!**/.vscode-server", "!**/.cache", "!**/cache"] string
config-file-pathThe path of the configuration file..jsonlintrc.yamlstring