neilime/php-css-lint

Powerful & memory efficient CSS linter for PHP

Fund package maintenance!
neilime

Installs: 1 109 159

Dependents: 3

Suggesters: 0

Security: 0

Stars: 11

Watchers: 4

Forks: 4

Open Issues: 0

v3.2.0 2023-06-19 16:35 UTC

This package is auto-updated.

Last update: 2024-10-26 10:12:24 UTC


README

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