Skip to content

A simple bash-script that runs the css linter under the Rhino JS-engine from csslint.net on a folder with css-files.

Notifications You must be signed in to change notification settings

StefanWallin/css-lint-rhino-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Description

This project is bashscript intended to be run by a project Makefile to add CSS-linting of css-files during a build process. It's exit status is the number of errors found.

The script utilizes the Apache Rhino javascript engine to run the Rhino-version of the csslint.net-linter.

Goals

  • Errors(or warnings if in strict mode) should brake an ongoing build.
  • Make routine usage of the linter super easy.

Usage

Current usage is not ideal.

  1. Install a JDK, download and install Rhino, download the csslint-rhino.js-file.
  2. Then you edit the script and change the folder to work on.
  3. Make modifications to paths for the rhino.jar in the script if necessary.
  4. Run the linter!
    ./lint.sh

Bugs & Features

Please submit them under issues in the corresponding label.

About

A simple bash-script that runs the css linter under the Rhino JS-engine from csslint.net on a folder with css-files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages