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

Plugin validation fails without a configuration section #560

Open
lox opened this issue Nov 24, 2024 · 0 comments
Open

Plugin validation fails without a configuration section #560

lox opened this issue Nov 24, 2024 · 0 comments

Comments

@lox
Copy link

lox commented Nov 24, 2024

I have a plugin without any configuration. It fails the linter:

+++ :bats: Linting
TAP version 14
not ok 1 - plugin.yml fails schema validation
  ---
  errors:
    - instancePath: ""
      schemaPath: "#/required"
      keyword: required
      params:
        missingProperty: configuration
      message: must have required property 'configuration'
  at:
    fileName: lib/linters/plugin-yaml-linter.js
    lineNumber: 20
    columnNumber: 11
    functionName: default
    isToplevel: true
  stack: |
    default (lib/linters/plugin-yaml-linter.js:20:11)
    bin/lint:46:3
  source: |2
      if (!valid) {
        if (!silent) {
          tap.fail('plugin.yml fails schema validation', {
    ----------^
            errors: validator.errors,
            at: false,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant