mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix: keyword-spacing
``` /Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js (1/0) ✖ 335:11 Expected space(s) after "for" keyword-spacing /Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/spell/spell-result.js (1/0) ✖ 90:5 Expected space(s) after "for" keyword-spacing /Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/visualization/builtins/visualization-scatterchart.js (1/0) ✖ 236:9 Expected space(s) after "else" keyword-spacing /Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/components/helium/helium-conf.js (2/0) ✖ 28:3 Expected space(s) after "for" keyword-spacing ✖ 80:5 Expected space(s) after "catch" keyword-spacing ```
This commit is contained in:
parent
5948d97aa9
commit
a896442c24
6 changed files with 7 additions and 8 deletions
|
|
@ -38,7 +38,6 @@
|
|||
"operator-linebreak": 0,
|
||||
"prefer-spread": 0,
|
||||
"space-before-blocks": 0,
|
||||
"keyword-spacing": 0,
|
||||
"no-redeclare": 0,
|
||||
"standard/object-curly-even-spacing": 0,
|
||||
"comma-spacing": 0,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export const HeliumConfFieldType = {
|
|||
export function mergePersistedConfWithSpec(persisted, spec) {
|
||||
const confs = [];
|
||||
|
||||
for(let name in spec) {
|
||||
for (let name in spec) {
|
||||
const specField = spec[name];
|
||||
const persistedValue = persisted[name];
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ export function parseConfigValue(type, stringified) {
|
|||
} else if (HeliumConfFieldType.JSON === type) {
|
||||
value = JSON.parse(stringified);
|
||||
}
|
||||
} catch(error) {
|
||||
} catch (error) {
|
||||
// return just the stringified one
|
||||
console.error(`Failed to parse conf type ${type}, value ${value}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ function ResultCtrl($scope, $rootScope, $route, $window, $routeParams, $location
|
|||
const afterLoaded = () => {
|
||||
const containerDOM = angular.element(`#${containerDOMId}`);
|
||||
// Spell.interpret() can create multiple outputs
|
||||
for(let i = 0; i < dataWithTypes.length; i++) {
|
||||
for (let i = 0; i < dataWithTypes.length; i++) {
|
||||
const dt = dataWithTypes[i];
|
||||
const data = dt.data;
|
||||
const type = dt.type;
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export class DataWithType {
|
|||
let previousMagic = DefaultDisplayType.TEXT;
|
||||
|
||||
// create `DataWithType` whenever see available display type.
|
||||
for(let i = 0; i < splited.length; i++) {
|
||||
for (let i = 0; i < splited.length; i++) {
|
||||
const g = splited[i];
|
||||
const magic = SpellResult.extractMagic(g);
|
||||
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ export default class ScatterchartVisualization extends Nvd3ChartVisualization {
|
|||
if ((Math.abs(d3gvalues[i]['x'] - d3gvalues[i+1]['x']) < epsilon) &&
|
||||
(Math.abs(d3gvalues[i]['y'] - d3gvalues[i+1]['y']) < epsilon)){
|
||||
d3gvalues.splice(i+1,1);
|
||||
} else{
|
||||
} else {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export const HeliumConfFieldType = {
|
|||
export function mergePersistedConfWithSpec(persisted, spec) {
|
||||
const confs = [];
|
||||
|
||||
for(let name in spec) {
|
||||
for (let name in spec) {
|
||||
const specField = spec[name];
|
||||
const persistedValue = persisted[name];
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ export function parseConfigValue(type, stringified) {
|
|||
} else if (HeliumConfFieldType.JSON === type) {
|
||||
value = JSON.parse(stringified);
|
||||
}
|
||||
} catch(error) {
|
||||
} catch (error) {
|
||||
// return just the stringified one
|
||||
console.error(`Failed to parse conf type ${type}, value ${value}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue