Skip to content

Instantly share code, notes, and snippets.

@samccone
Created May 10, 2015 19:15
Show Gist options
  • Select an option

  • Save samccone/caac3a3ad8cf8efd6ff1 to your computer and use it in GitHub Desktop.

Select an option

Save samccone/caac3a3ad8cf8efd6ff1 to your computer and use it in GitHub Desktop.
```
> @ lint /Users/sam/Desktop/repos/todomvc/tooling
> jscs -c ../.jscsrc ../examples/webrx/
Expected indentation of 1 characters at ../examples/webrx/Gruntfile.js :
1 |module.exports = function (grunt) {
2 | "use strict";
---------^
3 |
4 | var conf = {
Invalid quote mark found at ../examples/webrx/Gruntfile.js :
1 |module.exports = function (grunt) {
2 | "use strict";
------------^
3 |
4 | var conf = {
Expected indentation of 1 characters at ../examples/webrx/Gruntfile.js :
2 | "use strict";
3 |
4 | var conf = {
---------^
5 | connect: {
6 | server: {
Expected indentation of 1 characters at ../examples/webrx/Gruntfile.js :
13 | };
14 |
15 | grunt.initConfig(conf);
---------^
16 |
17 | grunt.loadNpmTasks("grunt-contrib-connect");
Expected indentation of 1 characters at ../examples/webrx/Gruntfile.js :
15 | grunt.initConfig(conf);
16 |
17 | grunt.loadNpmTasks("grunt-contrib-connect");
---------^
18 |
19 | grunt.registerTask("default", ["connect"]);
Invalid quote mark found at ../examples/webrx/Gruntfile.js :
15 | grunt.initConfig(conf);
16 |
17 | grunt.loadNpmTasks("grunt-contrib-connect");
-------------------------------^
18 |
19 | grunt.registerTask("default", ["connect"]);
Expected indentation of 1 characters at ../examples/webrx/Gruntfile.js :
17 | grunt.loadNpmTasks("grunt-contrib-connect");
18 |
19 | grunt.registerTask("default", ["connect"]);
---------^
20 |}
21 |
Invalid quote mark found at ../examples/webrx/Gruntfile.js :
17 | grunt.loadNpmTasks("grunt-contrib-connect");
18 |
19 | grunt.registerTask("default", ["connect"]);
-------------------------------^
20 |}
21 |
Invalid quote mark found at ../examples/webrx/Gruntfile.js :
17 | grunt.loadNpmTasks("grunt-contrib-connect");
18 |
19 | grunt.registerTask("default", ["connect"]);
-------------------------------------------^
20 |}
21 |
Illegal trailing whitespace at ../examples/webrx/js/app.js :
2 |(function () {
3 | 'use strict';
4 |
---------^
5 | var localStorageKey = 'todos-webrx';
6 | var displayModeAll = 'all';
Illegal trailing whitespace at ../examples/webrx/js/app.js :
23 |
24 | // we want to get notified of changes to any of the todos contained in the list
25 | // not just of structural changes to the list (via "listChanged" obserable).
---------------------------------------------------------------------------------------^
26 | // Those changes are then exposed using the list's "itemChanged" obseravable
27 | this.todos.changeTrackingEnabled = true;
Illegal trailing whitespace at ../examples/webrx/js/app.js :
27 | this.todos.changeTrackingEnabled = true;
28 |
29 | this.current = wx.property();
-----------------------------------------^
30 | this.showMode = wx.property('all');
31 |
Illegal trailing whitespace at ../examples/webrx/js/app.js :
111 | .select(this.countCompleted, this)
112 | .toProperty(this.countCompleted());
113 |
----------^
114 | this.countRemaining = function () {
115 | return this.todos.length() - this.completedCount();
Expected indentation of 4 characters at ../examples/webrx/js/app.js :
150 | localStorage.setItem(localStorageKey, JSON.stringify(this.todos.map(function (x) {
151 | return { title: x.title(), completed: x.completed() };
152 | })));
------------^
153 | }, this);
154 | };
Expected indentation of 3 characters at ../examples/webrx/js/app.js :
151 | return { title: x.title(), completed: x.completed() };
152 | })));
153 | }, this);
-----------^
154 | };
155 |
Illegal trailing whitespace at ../examples/webrx/js/app.js :
152 | })));
153 | }, this);
154 | };
------------^
155 |
156 | // check local storage for todos
16 code style errors found.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment