Skip to content

Commit

Permalink
Merge pull request CSSLint#485 from XhmikosR/globals
Browse files Browse the repository at this point in the history
Move global config to JSHint's configuration.
  • Loading branch information
nschonni committed Apr 9, 2014
2 parents 9feb5f6 + 4576f9a commit 8b52eeb
Show file tree
Hide file tree
Showing 48 changed files with 8 additions and 92 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ module.exports = function(grunt) {

//Run the YUITest suite
grunt.registerMultiTask("yuitest", "Run the YUITests for the project", function() {
/*jshint evil:true, node: true */
/*jshint evil:true, node:true*/

var start = Date.now();
var YUITest = require("yuitest");
Expand Down
5 changes: 3 additions & 2 deletions src/cli/rhino.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
* CSSLint Rhino Command Line Interface
*/
/*jshint rhino:true*/
/*global cli, File*/

/* jshint rhino:true */
/* global cli, File */

importPackage(java.io);

Expand Down
5 changes: 4 additions & 1 deletion src/cli/wsh.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/*
* Windows Script Host Command Line Interface
*/
/*global ActiveXObject, WScript, Enumerator, cli*/

//TODO: This file needs major cleanup!!!

/* jshint wsh:true */
/* global cli */

var wshapi = (function(){
var fso = new ActiveXObject("Scripting.FileSystemObject");
var shell = WScript.CreateObject("WScript.Shell");
Expand Down
1 change: 0 additions & 1 deletion tests/all-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/*jshint loopfunc: true */

(function(){
/*global YUITest, CSSLint*/
var Assert = YUITest.Assert,
suite = new YUITest.TestSuite("General Tests for all Rules"),
rules = CSSLint.getRules(),
Expand Down
2 changes: 0 additions & 2 deletions tests/core/CSSLint.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/core/Reporter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint, Reporter*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/formatters/checkstyle-xml.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/formatters/compact.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/formatters/csslint-xml.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/formatters/junit-xml.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/formatters/lint-xml.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/formatters/text.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/adjoining-classes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/box-model.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/box-sizing.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/bulletproof-font-face.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/compatible-vendor-prefixes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/display-property-grouping.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/duplicate-background-images.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/duplicate-properties.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/empty-rules.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/errors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/fallback-colors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/floats.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/font-faces.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/font-sizes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/gradients.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/ids.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/import.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/important.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/known-properties.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/order-alphabetical.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/outline-none.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/overqualified-elements.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/qualified-headings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/regex-selectors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/selector-max-approaching.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert, i, j, css1 = "", css2 = "", css3 = "", css4 = "";

// create css1, which has only 4095 rules and 4095 selectors
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/selector-max.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert, i, j, css1 = "", css2 = "", css3 = "", css4 = "";

// create css1, which has only 4095 rules and 4095 selectors
Expand Down
1 change: 0 additions & 1 deletion tests/rules/selector-newline.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global YUITest, CSSLint*/
(function () {

var ruleId = "selector-newline", expectWarning, expectPass;
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/shorthand.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/star-property-hack.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/text-indent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/underscore-property-hack.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/unique-headings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/universal-selector.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/unqualified-attributes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/vendor-prefix.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down
2 changes: 0 additions & 2 deletions tests/rules/zero-units.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(function(){

/*global YUITest, CSSLint*/
var Assert = YUITest.Assert;

YUITest.TestRunner.add(new YUITest.TestCase({
Expand Down

0 comments on commit 8b52eeb

Please sign in to comment.