Sha256: 51405c7b9752a2f3654ecc361fe7dfa41bee20f904f6c234793e9ba306d8d599

Contents?: true

Size: 855 Bytes

Versions: 1

Compression:

Stored size: 855 Bytes

Contents

# This rule is taken from https://github.com/stubbornella/csslint/tree/master/src/rules
#
#
# Copyright (c) 2011 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
# TODO: Paste the CSSLint LICENSE here.
#
#
# /*
#  * Rule: Total number of rules should not exceed x.
#  */
# /*global CSSLint*/
# CSSLint.addRule({
# 
#     //rule information
#     id: "rules-count",
#     name: "Rules Count",
#     desc: "Track how many rules there are.",
#     browsers: "All",
# 
#     //initialization
#     init: function(parser, reporter){
#         var rule = this,
#             count = 0;
# 
#         //count each rule
#         parser.addListener("startrule", function(){
#             count++;
#         });
# 
#         parser.addListener("endstylesheet", function(){
#             reporter.stat("rule-count", count);
#         });
#     }
# 
# });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sasslint-0.0.1 lib/sasslint/rules/css/rules-count.rb