2017 © Pedro Peláez
 

composer-plugin composer-lint

Extends the composer validate command with extra rules

image

sllh/composer-lint

Extends the composer validate command with extra rules

  • Friday, January 5, 2018
  • by Soullivaneuh
  • Repository
  • 2 Watchers
  • 10 Stars
  • 20,664 Installations
  • PHP
  • 16 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

composer-lint

composer-lint is a plugin for Composer., (*1)

It extends the composer validate command with extra rules., (*2)

Latest Stable Version Latest Unstable Version License Dependency Status Reference Status, (*3)

Total Downloads Monthly Downloads Daily Downloads, (*4)

Build Status Scrutinizer Code Quality Code Climate Coverage Status SensioLabsInsight, (*5)

Installation

You can install it either globally (recommended):, (*6)

composer global require sllh/composer-lint

or locally:, (*7)

composer require sllh/composer-lint

Usage

That's it! Composer will enable automatically the plugin as soon it's installed., (*8)

Just run composer validate command to see the plugin working., (*9)

Configuration

You can configure the plugin via the COMPOSER_HOME/config.json file. Here is the default one:, (*10)

{
    "config": {
        "sllh-composer-lint": {
            "php": true,
            "type": true,
            "minimum-stability": true,
            "version-constraints": true
        },
        "sort-packages": false
    }
}
  • php: Checks if the PHP requirement is set on the require section.
  • type: Check if package type is defined.
  • minimum-stability: Checks if minimum-stability is set. It raises an error if it is, except for project packages.
  • version-constraints: Checks if version constraint formats are valid (e.g. ~2.0 should be ^2.0).
  • sort-packages: Checks if packages are sorted on each section. This option is outside sllh-composer-lint because it's a composer native one.

The Versions

05/01 2018

dev-master

9999999-dev

Extends the composer validate command with extra rules

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

plugin lint composer validate

05/01 2018

v1.0.1

1.0.1.0

Extends the composer validate command with extra rules

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

plugin lint composer validate

05/01 2018

dev-test-lint-tweaks

dev-test-lint-tweaks

Extends the composer validate command with extra rules

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

plugin lint composer validate

05/01 2018

dev-composer-1.6

dev-composer-1.6

Extends the composer validate command with extra rules

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

plugin lint composer validate

05/01 2018

dev-travis-fixes

dev-travis-fixes

Extends the composer validate command with extra rules

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

plugin lint composer validate

30/05 2016

v1.0.0

1.0.0.0

Extends the composer validate command with extra rules

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0
  • composer-plugin-api ^1.0

 

The Development Requires

plugin lint composer validate