Skip to content

Commit

Permalink
Add a js-lint which lints the javascript runtime using gjslint.
Browse files Browse the repository at this point in the history
Fix the style violations it finds.
  • Loading branch information
pmurias committed Aug 14, 2014
1 parent 4b45434 commit 118bb06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/js/nqp-runtime/runtime.js
Expand Up @@ -21,9 +21,9 @@ exports.to_str = function(arg) {

exports.named = function(named) {
return named;
}
};

// Placeholder
exports.top_context = function() {
return null;
}
};
2 changes: 2 additions & 0 deletions tools/build/Makefile-JS.in
Expand Up @@ -111,3 +111,5 @@ node_modules/installed: src/vm/js/nqp-runtime/runtime.js
js-clean:
$(RM_RF) gen/js/stage1 gen/js/stage2 gen/parrot/QAST gen/parrot/HLL

js-lint:
gjslint --strict --nojsdoc src/vm/js/nqp-runtime/*.js
2 changes: 2 additions & 0 deletions tools/build/gen-js-makefile.nqp
Expand Up @@ -147,3 +147,5 @@ say('node_modules/installed: src/vm/js/nqp-runtime/runtime.js
say("\n\njs-clean:
\$(RM_RF) gen/js/stage1 gen/js/stage2 gen/parrot/QAST gen/parrot/HLL
");
say("js-lint:
gjslint --strict --nojsdoc src/vm/js/nqp-runtime/*.js");

0 comments on commit 118bb06

Please sign in to comment.