Questions tagged [csslint]

csslint is a program used to parse CSS and flag syntax errors, anti-patterns, and redundant declarations.

csslint is open-source and has command-line, browser, and IDE interfaces.

79 questions
0
votes
2 answers

CSS Parsing errors

I am using CSS Lint to detect errors and warnings in a specific css. CSS Lint detects 3 errors: in below piece of css code: a.btn, :not(li.menu_icon a.btn), .k-button.btn, input[type=submit].btn, input[type=button].btn,…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

Allowed syntax of comments within CSS selectors

In CSS, often it improves code readability to not wrap long lines, but instead ensure all lines fit horizontally within the code editor's viewport. But whitespace is very significant in CSS, often making this goal challenging. Thus, sometimes…
0
votes
0 answers

Error: Unknown property 'grid template columns'

How to fix this error? Unknown property grid-template-columns. Expected RBRACE at line 900 (there are no missing RBRACE's)
0
votes
1 answer

How do I check in the editor if the class of class attribute is in the library?

What I want to achieve I want to detect when the class name of the general CSS library and the class name declaration of my CSS file are duplicated (On the editor of PHPStorm, Atom, VSCode, etc). Is there a way to detect in the HTML file if the…
user11821141
0
votes
0 answers

Lint for both TS and SCSS goes haywire

I've used both Atom and Visual Studio Code, but in both the same thing always happens eventually: Even though I'm not doing any updates in the app I'm using at the moment, just coding away (light frontend) as usual, suddenly without any warning the…
Mikael
  • 97
  • 1
  • 7
0
votes
1 answer

Using CSSLint in Node cli

I am writing Node cli application which will run locally installed CSSLint module by passing parameters. The CSSLint application is started from function cli which is in cli.js file (https://github.com/CSSLint/csslint/blob/master/dist/cli.js). How…
MSK
  • 371
  • 2
  • 4
  • 14
0
votes
1 answer

How can I pipe the output from gulp-w3c-css to the console

When I follow the examples for gulp-w3c-css I am unable to get the results to print in the console instead of in an output directory. Compare how I am using CSSLint and W3C-CSS below. I'd like the function to be identical. var gulp =…
itpastorn
  • 2,935
  • 1
  • 22
  • 24
0
votes
1 answer

How to use CSSLint?

I found some command line arguments to run generate the CSSLint report in xml format. It is working fine while running through command prompt. Arguments: csslint --format=csslint-xml "{SourceDir}\bootstrap.css" > "C:\temp\csslint.xml" I want to…
Kathir Subramaniam
  • 1,195
  • 1
  • 13
  • 27
0
votes
1 answer

How do I install and use the custom CSSLint rules I have written for the CLI?

I am using CSSLint via the CLI. I have spent quite a bit of time following the steps found here and here to write custom css linting rules. They are tested and they work correctly, however now that I have created the rules I am not sure how to…
Alex Conner
  • 240
  • 5
  • 19
0
votes
1 answer

gulp-csslint custom rules "has no method 'addRule'"

I am just following how to create a custom rule as per https://github.com/lazd/gulp-csslint but I keep getting an error as bellow which does not allow me to access the addRule(). This is my code: // require modules var gulp = require('gulp'); var…
0
votes
1 answer

CSSLint with Jenkins

I'm trying to use CSSLint with Jenkins Continious Integration using MSBuild. I didn't found a plugin to install on Jenkins. Does anyone knows how I can find a plugin that has the same functionality as CSSLint which can be installed with Jenkins?
Alain
  • 1
  • 1
  • 3
0
votes
1 answer

CSS lint throwing error

csslint.net is throwing errors for the following css and I don't know why. This is pretty normal for css I think. I got the css from this site. body { background: #eee !important; } .wrapper { margin-top: 80px; margin-bottom:…
ktothez
  • 11
0
votes
1 answer

csslint: how to exclude directories from command line?

I want to exclude all vendor directories (ex.: public/css/vendor ) using csshint, but when I run the following command: csslint --format=lint-xml --exclude-list=/vendor/ /var/lib/jenkins/workspace/project/src > /home/user/Desktop/test.xml nothing…
Abraham Mesa
  • 83
  • 2
  • 11
0
votes
1 answer

TeamCity - MSBuild Code Analysis

I've used Jenkins CI for a few years and I want learn TeamCity. In Jenkins I tracked FxCop issues by enabling code analysis on my .net projects and then telling the Violations plugin where to find the code analysis XML files i.e. MSBUILD would put a…
TheMagnificent11
  • 1,424
  • 4
  • 19
  • 40
0
votes
1 answer

CSSLint : How to save log from console log into file

I'm new in Grunt plugin and on the way using CSSLint plugin. I run it ok, but I want to save the errors from console log into file. Can CssLint support that, cos when run csslint on command line (window), if you have many errors or warnning, you…
kate
  • 179
  • 2
  • 16