Skip to content

[ZEPPELIN-235] jscs in zeppelin-web#1139

Closed
prabhjyotsingh wants to merge 5 commits intoapache:masterfrom
prabhjyotsingh:ZEPPELIN-235
Closed

[ZEPPELIN-235] jscs in zeppelin-web#1139
prabhjyotsingh wants to merge 5 commits intoapache:masterfrom
prabhjyotsingh:ZEPPELIN-235

Conversation

@prabhjyotsingh
Copy link
Copy Markdown
Contributor

What is this PR for?

Reopening the PR #229 for jscs in zeppelin-web, using following in .jscsrc

{
  "preset": "google",
  "maximumLineLength": {
  "value": 120,
  "allExcept": [ "comments", "regex"]
  }
}

What type of PR is it?

[Improvement]

What is the Jira issue?

How should this be tested?

Try changing the indentation in any javascript file, and see an error being shown in the terminal on compile/build

Questions:

  • Does the licenses files need update? n/a
  • Is there breaking changes for older versions? n/a
  • Does this needs documentation? n/a

@ghost
Copy link
Copy Markdown

ghost commented Jul 6, 2016

LGTM

1 similar comment
@r-kamath
Copy link
Copy Markdown
Member

r-kamath commented Jul 6, 2016

LGTM

@prabhjyotsingh
Copy link
Copy Markdown
Contributor Author

CI fails for Failed to run task: 'npm install --color=false' failed., re-triggered.

};

$scope.killSaveTimer = function() {
$scope.killSaveTimer = function() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This indent and a few underneath looks a bit weird

@corneadoug
Copy link
Copy Markdown
Contributor

The indent in notebook.controller.js is messed up

@prabhjyotsingh
Copy link
Copy Markdown
Contributor Author

@corneadoug, have made the relevant changes.

It was coming because function($scope..... was is next line, and because of which build was failing with validateIndentation: Expected indentation of 4 characters.

@corneadoug
Copy link
Copy Markdown
Contributor

@prabhjyotsingh Thanks for fixing it.
Looks awesome, let me test it a bit

]);

grunt.registerTask('build', [
'newer:jscs',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be jscs only in case of build.
newer:jscs should be used for the watch (around line 118 for basic .js and 125 for test files).

@prabhjyotsingh
Copy link
Copy Markdown
Contributor Author

@corneadoug, have addressed your feedback.

# Conflicts:
#	zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
@corneadoug
Copy link
Copy Markdown
Contributor

@prabhjyotsingh Tested, LGTM
CI failure is unrelated

@prabhjyotsingh
Copy link
Copy Markdown
Contributor Author

Merging this if no more discussion.

@asfgit asfgit closed this in 5556f81 Jul 8, 2016
asfgit pushed a commit that referenced this pull request Jul 11, 2016
### What is this PR for?
#1151 has been created created before #1139 merge.
#1151 was passing CI but it's failing in master with #1139 merged.

```
[INFO] --- frontend-maven-plugin:0.0.25:grunt (grunt build)  zeppelin-web ---
[INFO] Running 'grunt build --no-color' in /Users/moon/Projects/zeppelin/zeppelin-web
[INFO] Running "jscs:all" (jscs) task
[INFO] requireSpaceBeforeBinaryOperators: Operator = should not stick to preceding expression at src/components/saveAs/saveAs.service.js :
[INFO]     21 |      angular.element('body').append('<iframe id="SaveAsId" style="display: none"></iframe>');
[INFO]     22 |      var frameSaveAs = angular.element('body > iframe#SaveAsId')[0].contentWindow;
[INFO]     23 |      content= BOM + content;
[INFO] ---------------------^
[INFO]     24 |      frameSaveAs.document.open('text/json', 'replace');
[INFO]     25 |      frameSaveAs.document.write(content);
[INFO] >> 1 code style errors found!
[INFO] Warning: Task "jscs:all" failed. Use --force to continue.
[INFO]
[INFO] Aborted due to warnings.
```

### What type of PR is it?
Hot Fix

### Todos
* [x] - Fix problem

### What is the Jira issue?
ZEPPELIN-1138,  ZEPPELIN-235

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: Lee moon soo <[email protected]>

Closes #1165 from Leemoonsoo/fix_js and squashes the following commits:

3819ffb [Lee moon soo] add space

(cherry picked from commit 0590ef3)
Signed-off-by: Lee moon soo <[email protected]>
asfgit pushed a commit that referenced this pull request Jul 11, 2016
### What is this PR for?
#1151 has been created created before #1139 merge.
#1151 was passing CI but it's failing in master with #1139 merged.

```
[INFO] --- frontend-maven-plugin:0.0.25:grunt (grunt build)  zeppelin-web ---
[INFO] Running 'grunt build --no-color' in /Users/moon/Projects/zeppelin/zeppelin-web
[INFO] Running "jscs:all" (jscs) task
[INFO] requireSpaceBeforeBinaryOperators: Operator = should not stick to preceding expression at src/components/saveAs/saveAs.service.js :
[INFO]     21 |      angular.element('body').append('<iframe id="SaveAsId" style="display: none"></iframe>');
[INFO]     22 |      var frameSaveAs = angular.element('body > iframe#SaveAsId')[0].contentWindow;
[INFO]     23 |      content= BOM + content;
[INFO] ---------------------^
[INFO]     24 |      frameSaveAs.document.open('text/json', 'replace');
[INFO]     25 |      frameSaveAs.document.write(content);
[INFO] >> 1 code style errors found!
[INFO] Warning: Task "jscs:all" failed. Use --force to continue.
[INFO]
[INFO] Aborted due to warnings.
```

### What type of PR is it?
Hot Fix

### Todos
* [x] - Fix problem

### What is the Jira issue?
ZEPPELIN-1138,  ZEPPELIN-235

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: Lee moon soo <[email protected]>

Closes #1165 from Leemoonsoo/fix_js and squashes the following commits:

3819ffb [Lee moon soo] add space
PhilippGrulich pushed a commit to SWC-SENSE/zeppelin that referenced this pull request Aug 8, 2016
### What is this PR for?
Reopening the PR apache#229 for jscs in zeppelin-web, using following  in .jscsrc

```
{
  "preset": "google",
  "maximumLineLength": {
  "value": 120,
  "allExcept": [ "comments", "regex"]
  }
}
```

### What type of PR is it?
[Improvement]

### What is the Jira issue?
* [ZEPPELIN-235](https://issues.apache.org/jira/browse/ZEPPELIN-235)

### How should this be tested?
Try changing the indentation in any javascript file, and see an error being shown in the terminal on compile/build

### Questions:
* Does the licenses files need update? n/a
* Is there breaking changes for older versions? n/a
* Does this needs documentation? n/a

Author: Prabhjyot Singh <[email protected]>

Closes apache#1139 from prabhjyotsingh/ZEPPELIN-235 and squashes the following commits:

9cc3cde [Prabhjyot Singh] resove merge errors
a274efa [Prabhjyot Singh] Merge remote-tracking branch 'origin/master' into ZEPPELIN-235
c16d2c7 [Prabhjyot Singh] addressing @corneadoug feedback
bffd134 [Prabhjyot Singh] revert 4 space changes for notebook.controller.js
02de55d [Prabhjyot Singh] jscs in zeppelin-web
PhilippGrulich pushed a commit to SWC-SENSE/zeppelin that referenced this pull request Aug 8, 2016
### What is this PR for?
apache#1151 has been created created before apache#1139 merge.
apache#1151 was passing CI but it's failing in master with apache#1139 merged.

```
[INFO] --- frontend-maven-plugin:0.0.25:grunt (grunt build)  zeppelin-web ---
[INFO] Running 'grunt build --no-color' in /Users/moon/Projects/zeppelin/zeppelin-web
[INFO] Running "jscs:all" (jscs) task
[INFO] requireSpaceBeforeBinaryOperators: Operator = should not stick to preceding expression at src/components/saveAs/saveAs.service.js :
[INFO]     21 |      angular.element('body').append('<iframe id="SaveAsId" style="display: none"></iframe>');
[INFO]     22 |      var frameSaveAs = angular.element('body > iframe#SaveAsId')[0].contentWindow;
[INFO]     23 |      content= BOM + content;
[INFO] ---------------------^
[INFO]     24 |      frameSaveAs.document.open('text/json', 'replace');
[INFO]     25 |      frameSaveAs.document.write(content);
[INFO] >> 1 code style errors found!
[INFO] Warning: Task "jscs:all" failed. Use --force to continue.
[INFO]
[INFO] Aborted due to warnings.
```

### What type of PR is it?
Hot Fix

### Todos
* [x] - Fix problem

### What is the Jira issue?
ZEPPELIN-1138,  ZEPPELIN-235

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: Lee moon soo <[email protected]>

Closes apache#1165 from Leemoonsoo/fix_js and squashes the following commits:

3819ffb [Lee moon soo] add space
@prabhjyotsingh prabhjyotsingh deleted the ZEPPELIN-235 branch February 25, 2018 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants