Skip to content

Commit

Permalink
style: remove all license headers from code (#274)
Browse files Browse the repository at this point in the history
* remove all license headers from code

* remove generated header
  • Loading branch information
Shinigami authored and thedaviddias committed Sep 3, 2018
1 parent fb52ad7 commit aa96177
Show file tree
Hide file tree
Showing 65 changed files with 454 additions and 742 deletions.
1 change: 0 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ module.exports = function(grunt) {
uglify: {
htmlhint: {
options: {
banner: "/*!\r\n * HTMLHint v<%= pkg.version %>\r\n * https://github.com/yaniswang/HTMLHint\r\n *\r\n * (c) 2014-"+new Date().getFullYear()+" Yanis Wang <yanis.wang@gmail.com>.\r\n * MIT Licensed\r\n */\n",
beautify: {
ascii_only: true
}
Expand Down
4 changes: 0 additions & 4 deletions bin/formatters/checkstyle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
var xml = require('xml');

var checkstyleFormatter = function(formatter){
Expand Down
4 changes: 0 additions & 4 deletions bin/formatters/compact.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
var compactFormatter = function(formatter, HTMLHint, options){
var nocolor = options.nocolor;
formatter.on('file', function(event){
Expand Down
4 changes: 0 additions & 4 deletions bin/formatters/default.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
var defaultFormatter = function(formatter, HTMLHint, options){
var nocolor = options.nocolor;
formatter.on('start', function(){
Expand Down
4 changes: 0 additions & 4 deletions bin/formatters/json.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
var jsonFormatter = function(formatter){
formatter.on('end', function(event){
console.log(JSON.stringify(event.arrAllMessages));
Expand Down
4 changes: 0 additions & 4 deletions bin/formatters/junit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
var xml = require('xml');

var junitFormatter = function(formatter, HTMLHint){
Expand Down
4 changes: 0 additions & 4 deletions bin/formatters/markdown.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
var markdownFormatter = function(formatter, HTMLHint){
formatter.on('end', function(event){
console.log('# TOC');
Expand Down
4 changes: 0 additions & 4 deletions bin/formatters/unix.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
var unixFormatter = function(formatter, HTMLHint, options){
var nocolor = options.nocolor;
formatter.on('file', function(event){
Expand Down
4 changes: 0 additions & 4 deletions src/core.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/* jshint -W079 */
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
var HTMLHint = (function (undefined) {

var HTMLHint = {};
Expand Down
4 changes: 0 additions & 4 deletions src/htmlparser.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/* jshint -W079 */
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
var HTMLParser = (function(undefined){

var HTMLParser = function(){
Expand Down
4 changes: 0 additions & 4 deletions src/reporter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
(function(HTMLHint, undefined){

var Reporter = function(){
Expand Down
5 changes: 0 additions & 5 deletions src/rules/alt-require.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* Copyright (c) 2014, Takeshi Kurosawa <taken.spc@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'alt-require',
description: 'The alt attribute of an <img> element must be present and alt attribute of area[href] and input[type=image] must have a value.',
Expand Down
4 changes: 0 additions & 4 deletions src/rules/attr-lowercase.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'attr-lowercase',
description: 'All attribute names must be in lowercase.',
Expand Down
6 changes: 1 addition & 5 deletions src/rules/attr-no-duplication.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2014, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'attr-no-duplication',
description: 'Elements cannot have duplicate attributes.',
Expand All @@ -24,4 +20,4 @@ HTMLHint.addRule({
}
});
}
});
});
4 changes: 0 additions & 4 deletions src/rules/attr-unsafe-chars.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2014, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'attr-unsafe-chars',
description: 'Attribute values cannot contain unsafe chars.',
Expand Down
6 changes: 1 addition & 5 deletions src/rules/attr-value-double-quotes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'attr-value-double-quotes',
description: 'Attribute values must be in double quotes.',
Expand All @@ -20,4 +16,4 @@ HTMLHint.addRule({
}
});
}
});
});
6 changes: 1 addition & 5 deletions src/rules/attr-value-not-empty.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'attr-value-not-empty',
description: 'All attributes must have values.',
Expand All @@ -19,4 +15,4 @@ HTMLHint.addRule({
}
});
}
});
});
6 changes: 1 addition & 5 deletions src/rules/csslint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'csslint',
description: 'Scan css with csslint.',
Expand Down Expand Up @@ -35,4 +31,4 @@ HTMLHint.addRule({
}
});
}
});
});
6 changes: 1 addition & 5 deletions src/rules/doctype-first.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'doctype-first',
description: 'Doctype must be declared first.',
Expand All @@ -18,4 +14,4 @@ HTMLHint.addRule({
};
parser.addListener('all', allEvent);
}
});
});
6 changes: 1 addition & 5 deletions src/rules/doctype-html5.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'doctype-html5',
description: 'Invalid doctype. Use: "<!DOCTYPE html>"',
Expand All @@ -19,4 +15,4 @@ HTMLHint.addRule({
parser.addListener('all', onComment);
parser.addListener('tagstart', onTagStart);
}
});
});
4 changes: 0 additions & 4 deletions src/rules/head-script-disabled.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'head-script-disabled',
description: 'The <script> tag cannot be used in a <head> tag.',
Expand Down
6 changes: 1 addition & 5 deletions src/rules/href-abs-or-rel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2014, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'href-abs-or-rel',
description: 'An href attribute must be either absolute or relative.',
Expand All @@ -27,4 +23,4 @@ HTMLHint.addRule({
}
});
}
});
});
6 changes: 1 addition & 5 deletions src/rules/id-class-ad-disabled.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2014, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'id-class-ad-disabled',
description: 'The id and class attributes cannot use the ad keyword, it will be blocked by adblock software.',
Expand All @@ -24,4 +20,4 @@ HTMLHint.addRule({
}
});
}
});
});
6 changes: 1 addition & 5 deletions src/rules/id-class-value.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'id-class-value',
description: 'The id and class attribute values must meet the specified rules.',
Expand Down Expand Up @@ -54,4 +50,4 @@ HTMLHint.addRule({
});
}
}
});
});
6 changes: 1 addition & 5 deletions src/rules/id-unique.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'id-unique',
description: 'The value of id attributes must be unique.',
Expand Down Expand Up @@ -33,4 +29,4 @@ HTMLHint.addRule({
}
});
}
});
});
4 changes: 0 additions & 4 deletions src/rules/inline-script-disabled.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'inline-script-disabled',
description: 'Inline script cannot be used.',
Expand Down
4 changes: 0 additions & 4 deletions src/rules/inline-style-disabled.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'inline-style-disabled',
description: 'Inline style cannot be used.',
Expand Down
6 changes: 1 addition & 5 deletions src/rules/jshint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'jshint',
description: 'Scan script with jshint.',
Expand Down Expand Up @@ -46,4 +42,4 @@ HTMLHint.addRule({
}
});
}
});
});
4 changes: 0 additions & 4 deletions src/rules/space-tab-mixed-disabled.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2014, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'space-tab-mixed-disabled',
description: 'Do not mix tabs and spaces for indentation.',
Expand Down
6 changes: 1 addition & 5 deletions src/rules/spec-char-escape.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'spec-char-escape',
description: 'Special characters must be escaped.',
Expand All @@ -17,4 +13,4 @@ HTMLHint.addRule({
}
});
}
});
});
6 changes: 1 addition & 5 deletions src/rules/src-not-empty.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'src-not-empty',
description: 'The src attribute of an img(script,link) must have a value.',
Expand All @@ -23,4 +19,4 @@ HTMLHint.addRule({
}
});
}
});
});
4 changes: 0 additions & 4 deletions src/rules/style-disabled.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'style-disabled',
description: '<style> tags cannot be used.',
Expand Down
4 changes: 0 additions & 4 deletions src/rules/tag-pair.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'tag-pair',
description: 'Tag must be paired.',
Expand Down
4 changes: 0 additions & 4 deletions src/rules/tag-self-close.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'tag-self-close',
description: 'Empty tags must be self closed.',
Expand Down
6 changes: 1 addition & 5 deletions src/rules/tagname-lowercase.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'tagname-lowercase',
description: 'All html element names must be in lowercase.',
Expand All @@ -14,4 +10,4 @@ HTMLHint.addRule({
}
});
}
});
});
4 changes: 0 additions & 4 deletions src/rules/title-require.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* Copyright (c) 2015, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/
HTMLHint.addRule({
id: 'title-require',
description: '<title> must be present in <head> tag.',
Expand Down
5 changes: 0 additions & 5 deletions test/core-spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* Copyright (c) 2014, Yanis Wang <yanis.wang@gmail.com>
* MIT Licensed
*/

var expect = require("expect.js");

var HTMLHint = require("../index").HTMLHint;
Expand Down
Loading

0 comments on commit aa96177

Please sign in to comment.