/php-css-lint

CSS Linter for PHP

Primary LanguagePHPMIT LicenseMIT

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

PHP_VERSION is the version of php to use during the development. Example: 8.2

make build-php PHP_VERSION
make install PHP_VERSION

Running tests

make test PHP_VERSION

Fix code linting

make lint-fix PHP_VERSION

Running CI scripts

make ci PHP_VERSION