[ZEPPELIN-235] jscs in zeppelin-web#1139
[ZEPPELIN-235] jscs in zeppelin-web#1139prabhjyotsingh wants to merge 5 commits intoapache:masterfrom
Conversation
|
LGTM |
1 similar comment
|
LGTM |
a278e4b to
02de55d
Compare
|
CI fails for |
| }; | ||
|
|
||
| $scope.killSaveTimer = function() { | ||
| $scope.killSaveTimer = function() { |
There was a problem hiding this comment.
This indent and a few underneath looks a bit weird
|
The indent in notebook.controller.js is messed up |
|
@corneadoug, have made the relevant changes. It was coming because |
|
@prabhjyotsingh Thanks for fixing it. |
zeppelin-web/Gruntfile.js
Outdated
| ]); | ||
|
|
||
| grunt.registerTask('build', [ | ||
| 'newer:jscs', |
There was a problem hiding this comment.
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).
|
@corneadoug, have addressed your feedback. |
# Conflicts: # zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
081f749 to
9cc3cde
Compare
|
@prabhjyotsingh Tested, LGTM |
|
Merging this if no more discussion. |
### 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]>
### 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
### 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
### 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
What is this PR for?
Reopening the PR #229 for jscs in zeppelin-web, using following in .jscsrc
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: