Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
fix: remove jshint and jscs
Browse files Browse the repository at this point in the history
  • Loading branch information
antleblanc committed Aug 3, 2018
1 parent 46b1735 commit 128ff54
Show file tree
Hide file tree
Showing 12 changed files with 6,333 additions and 161 deletions.
75 changes: 0 additions & 75 deletions .jscsrc

This file was deleted.

36 changes: 0 additions & 36 deletions .jshintrc

This file was deleted.

28 changes: 1 addition & 27 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,6 @@ module.exports = function (grunt) {
}
},

// JS Check
jshint: {
options: {
jshintrc: ".jshintrc",
reporter: require("jshint-stylish")
},
js: [
"<%= srcdir %>/*.js",
"<%= srcdir %>/*/*.js",
"!<%= srcdir %>/**/*.spec.js"
]
},

// Check complexity
complexity: {
generic: {
Expand Down Expand Up @@ -165,18 +152,6 @@ module.exports = function (grunt) {
}
},

jscs: {
src: [
"<%= srcdir %>/*.js",
"<%= srcdir %>/*/*.js",
"!<%= srcdir %>/**/*.spec.js"
],
options: {
config: ".jscsrc",
verbose: true
}
},

// Documentation
ngdocs: {
options: {
Expand Down Expand Up @@ -244,7 +219,6 @@ module.exports = function (grunt) {
grunt.registerTask("buildProd", [
"clean",
"ngtemplates",
"jshint",
"complexity",
"concat:dist",
"ngAnnotate",
Expand All @@ -261,7 +235,7 @@ module.exports = function (grunt) {
grunt.task.renameTask("watch", "delta");
grunt.registerTask("watch", ["buildProd", "delta"]);

grunt.registerTask("test", ["wiredep", "jshint", "eslint", "jscs", "karma"]);
grunt.registerTask("test", ["wiredep", "eslint", "karma"]);

// Increase version number. Type = minor|major|patch
grunt.registerTask("release", "Release", function () {
Expand Down
2 changes: 0 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"Gruntfile.js",
"src",
"karma.conf.js",
".jshintrc",
".jscsrc",
".editorconfig",
"less/ovh-tail-logs.dist.less"
],
Expand Down
14 changes: 1 addition & 13 deletions dist/ovh-angular-tail-logs.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,7 @@
vertical-align: top;
width: 8px;
height: 17px;
-webkit-animation: ovh-tail-logs-blink 1s step-end infinite;
animation: ovh-tail-logs-blink 1s step-end infinite;
}
@-webkit-keyframes ovh-tail-logs-blink {
0% {
opacity: 1.0;
}
50% {
opacity: 0.0;
}
100% {
opacity: 1.0;
}
animation: ovh-tail-logs-blink 1s step-end infinite;
}
@keyframes ovh-tail-logs-blink {
0% {
Expand Down
4 changes: 2 additions & 2 deletions dist/ovh-angular-tail-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ angular.module("ovh-angular-tail-logs").component("ovhTailLogs", {
var funcSource = opts.source || angular.noop;

this.logs = [];
this.delay = opts.delay || 1000;
this.delay = opts.delay || 5000;

this.__getFuncSource = function () {
return $q.when(funcSource());
Expand All @@ -31,7 +31,7 @@ angular.module("ovh-angular-tail-logs").component("ovhTailLogs", {
var self = this;

return self.source.then(function (source) {
return $http.get(source + "&sort=asc&limit=1000");
return $http.get(source + "&sort=asc&limit=500");
}).then(function (response) {
var tmpArray = self.logs;
tmpArray.push(response.data.messages);
Expand Down
2 changes: 1 addition & 1 deletion dist/ovh-angular-tail-logs.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/ovh-angular-tail-logs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@
<a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
</li>

<li class="nav-header section" ng-show="module.components.length">
<a class="guide">component</a>
</li>
<li ng-repeat="page in module.components track by page.url" ng-class="navClass(page)" class="api-list-item expand">
<a href="{{page.url}}" tabindex="2">{{page.shortName}}</a>
</li>

<li class="nav-header section" ng-show="module.directives.length">
<a class="guide">directive</a>
</li>
Expand Down
1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = function (config) {
"bower_components/angular/angular.js",
"bower_components/angular-sanitize/angular-sanitize.js",
"bower_components/angular-scroll-glue/src/scrollglue.js",
"bower_components/lodash/lodash.js",
"bower_components/angular-mocks/angular-mocks.js",
"bower_components/jquery/dist/jquery.js",
// endbower
Expand Down
Loading

0 comments on commit 128ff54

Please sign in to comment.