Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

checkstyle reports for lint

Mike McGannb897e7182917
diff --git a/Gruntfile.js b/Gruntfile.js
index b35c54040..362f77518 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -345,10 +345,21 @@ module.exports = function(grunt) {
},
jshint: {
- main: [
+ console: [
"src/js/**/wv.*.js",
"test/**/*.js",
- ]
+ ],
+ report: {
+ options: {
+ reporter: "checkstyle",
+ },
+ files: {
+ src: [
+ "src/js/**/wv.*.js",
+ "test/**/*.js",
+ ]
+ }
+ }
},
csslint: {
@@ -463,12 +474,12 @@ module.exports = function(grunt) {
]);
grunt.registerTask("doc", ["yuidoc"]);
- grunt.registerTask("lint", ["jshint"]);
+ grunt.registerTask("lint", ["jshint:console"]);
grunt.registerTask("test", ["buster:console"]);
grunt.registerTask("rpm", ["build", "rpm_only"]);
grunt.registerTask("clean", "remove:build");
grunt.registerTask("distclean", ["remove:build", "remove:dist"]);
- grunt.registerTask("default", ["build", "lint"]);
+ grunt.registerTask("default", ["build"]);
};
diff --git a/bin/filter-test-report b/bin/filter-test-report
index 493e2c16a..1970bfab0 100755
--- a/bin/filter-test-report
+++ b/bin/filter-test-report
@@ -8,5 +8,5 @@ for line in sys.stdin:
filtered = False
if not filtered:
sys.stdout.write(line)
- if line.startswith("</testsuites>"):
+ if line.startswith("</testsuites>") or line.startswith("</checkstyle>"):
filtered = True