# grunt-css-analysis

> Run analyzecss against css files

Latest version **0.0.3** (published 2016-06-08) · 0 weekly downloads

## Install

```sh
npm install grunt-css-analysis
pnpm add grunt-css-analysis
yarn add grunt-css-analysis
bun add grunt-css-analysis
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-06-08 |
| First published | 2016-05-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stuart Campbell |
| Maintainers | campbes |
| Keywords | gruntplugin, complexity, halstead, cyclomatic |

## Links

- npm: https://www.npmjs.com/package/grunt-css-analysis
- Repository: https://github.com/campbes/grunt-css-analysis
- Homepage: https://github.com/campbes/grunt-css-analysis#readme
- Issues: https://github.com/campbes/grunt-css-analysis/issues
- npm.io page: https://npm.io/package/grunt-css-analysis

## Dependencies (2)

- [analyze-css](https://npm.io/package/analyze-css.md) ^0.12.0
- [violation-reporter](https://npm.io/package/violation-reporter.md) 0.0.3

## Recent versions

- 0.0.3 (latest) — 2016-06-08
- 0.0.2 — 2016-05-11
- 0.0.1 — 2016-05-06
- 0.0.0-beta.1 — 2016-05-06
- 0.0.0-alpha.3 — 2016-05-06
- 0.0.0-alpha.2 — 2016-05-06
- 0.0.0-alpha.1 — 2016-05-06

## README

## Synopsis

Run analyze-css against CSS files, generating standard-format reports.

## Code Example

    grunt.loadNpmTasks('grunt-css-analysis');
     
    grunt.initConfig({
    
      cssanalysis : {
        css: {
          files : [{ cwd: '.', src: ['/**/*.css'], expand : true}],
          exclude: [],
          options: {
            fail: true, //default
            failOn: 'error', //default
            thresholds: {
                error: 0.5, // error threshold, default 0.5
                warning: 0.75 //warning thredshold, default 0.75
            },    
            pmdXML: '/pmd.xml'
            cssanalyze: {
                // cssanalyse options here
            }
          }
        }
      };
      
    });

## Motivation

This project is based on the excellent [analyze-css](https://github.com/macbre/analyze-css) and its associated grunt task [grunt-analyze-css](https://github.com/DeuxHuitHuit/grunt-analyze-css).

This task does nothing more than run analyze-css, but creates reports in a number of standard XML formats using [violation-reporter](https://github.com/campbes/violation-reporter) for consumption by jenkins various plugins.

## Installation

npm install grunt-css-analysis

## Contributors

Stuart Campbell ([campbes](https://github.com/campbes))

## License

Released under the [MIT License](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/grunt-css-analysis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
