Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 905 Bytes

File metadata and controls

36 lines (27 loc) · 905 Bytes

Arcanist Composer Validate Linter

Composer validate linter for Arcanist.

This validates composer.json/composer.lock files using composer validate.

Installation

Add the load path to your .arcconfig:

{
  "load": [
    "vendor/diablomedia/arcanist-extensions/extensions/composer_validate_linter"
  ]
}

Configuration

Add the linter to your .arclint file. It is recommended to include both your composer.json and composer.lock files so that the linter will run if either of these files have changed:

{
  "linters": {
    "composer": {
      "bin": ["/usr/local/bin/composer"],
      "type": "composer-validate",
      "include": ["(^composer.json$)", "(^composer.lock$)"],
      "strict": "false"
    }
  }
}

Enabling the "strict" flag will cause warnings to show up as errors, and cause the --strict flag to be passed to the composer validate command.