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
- Create a file
.jsonlintrc.yamlto customize the configuration.
# Configuration for jsonlint
strict: true
Inputs
| Name | Description | Default | Type |
| --- | --- | --- | --- |
| allow-failure | Should the pipeline fail if the test fails? | false | boolean |
| config-file | The 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-path | The path of the configuration file. | .jsonlintrc.yaml | string |