neilime/php-css-lint

Powerful & memory efficient CSS linter for PHP

Fund package maintenance!
neilime

v3.0.0 2021-03-04 16:36 UTC

This package is auto-updated.

Last update: 2021-06-11 06:39:00 UTC


README

759bde80-eaaa-11e9-8919-6a8ad3b4a34d

Continuous integration codecov Latest Stable Version Total Downloads License Sponsor

📢 Php CSS Lint is a php script that lint css files and strings:

===========================================================

  ____  _              ____ ____ ____    _     _       _
 |  _ \| |__  _ __    / ___/ ___/ ___|  | |   (_)_ __ | |_
 | |_) | '_ \| '_ \  | |   \___ \___ \  | |   | | '_ \| __|
 |  __/| | | | |_) | | |___ ___) |__) | | |___| | | | | |_
 |_|   |_| |_| .__/   \____|____/____/  |_____|_|_| |_|\__|
             |_|

===========================================================

# Lint file "/path/to/css/file.css"...
 => File "/path/to/css/file.css" is not valid :

    - Unknown CSS property "bordr-top-style" (line: 8, char: 20)
    - Unexpected char ":" (line: 15, char: 5)

Helping Project

❤️ If this project helps you reduce time to develop and/or you want to help the maintainer of this project. You can sponsor him. Thank you !

Contributing

👍 If you wish to contribute to this project, please read the CONTRIBUTING.md file. Note: If you want to contribute don't hesitate, I'll review any PR.

Documentation

  1. Installation
  2. Usage
  3. Code Coverage
  4. PHP Doc

Development

Setup

docker build -t php-css-lint .
docker run --rm -it -v $(pwd):/app php-css-lint composer install

Running tests

docker run --rm -it -v $(pwd):/app php-css-lint composer test

Fix code linting

docker run --rm -it -v $(pwd):/app php-css-lint composer cbf

Running CI scripts

docker run --rm -it -v $(pwd):/app php-css-lint composer ci