mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix: block-spacing
```
/Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/search/result-list.controller.js (2/0)
✖ 148:42 Requires a space after '{' block-spacing
✖ 148:68 Requires a space before '}' block-spacing
/Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/visualization/builtins/visualization-areachart.js (4/0)
✖ 61:40 Requires a space after '{' block-spacing
✖ 61:86 Requires a space before '}' block-spacing
✖ 62:40 Requires a space after '{' block-spacing
✖ 62:72 Requires a space before '}' block-spacing
/Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/visualization/builtins/visualization-barchart.js (2/0)
✖ 61:40 Requires a space after '{' block-spacing
✖ 61:72 Requires a space before '}' block-spacing
/Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/visualization/builtins/visualization-linechart.js (2/0)
✖ 71:40 Requires a space after '{' block-spacing
✖ 71:86 Requires a space before '}' block-spacing
```
This commit is contained in:
parent
021f9e761c
commit
925dc7be6b
9 changed files with 10 additions and 11 deletions
|
|
@ -44,7 +44,6 @@
|
|||
"no-extra-semi": 0,
|
||||
"arrow-parens": 0,
|
||||
"spaced-comment": 0,
|
||||
"block-spacing": 0,
|
||||
"no-unneeded-ternary": 0,
|
||||
"no-multiple-empty-lines": 0,
|
||||
"no-trailing-spaces": 0,
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ export default function HeliumCtrl($scope, $rootScope, $sce,
|
|||
};
|
||||
|
||||
$scope.bundleOrderListeners = {
|
||||
accept: function(sourceItemHandleScope, destSortableScope) {return true;},
|
||||
accept: function(sourceItemHandleScope, destSortableScope) { return true; },
|
||||
itemMoved: function(event) {},
|
||||
orderChanged: function(event) {
|
||||
$scope.bundleOrderChanged = true;
|
||||
|
|
|
|||
|
|
@ -549,7 +549,7 @@ function NotebookCtrl($scope, $route, $routeParams, $location, $rootScope,
|
|||
});
|
||||
|
||||
$scope.interpreterSelectionListeners = {
|
||||
accept: function(sourceItemHandleScope, destSortableScope) {return true;},
|
||||
accept: function(sourceItemHandleScope, destSortableScope) { return true; },
|
||||
itemMoved: function(event) {},
|
||||
orderChanged: function(event) {}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ function SearchResultCtrl($scope, $routeParams, searchService) {
|
|||
// resize editor based on content length
|
||||
_editor.setOption(
|
||||
'maxLines',
|
||||
lines.reduce(function(len, line) {return len + line.length;}, 0)
|
||||
lines.reduce(function(len, line) { return len + line.length; }, 0)
|
||||
);
|
||||
|
||||
_editor.getSession().setValue(lines.join('\n'));
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ export default class AreachartVisualization extends Nvd3ChartVisualization {
|
|||
|
||||
configureChart(chart) {
|
||||
var self = this;
|
||||
chart.xAxis.tickFormat(function(d) {return self.xAxisTickFormat(d, self.xLabels);});
|
||||
chart.yAxis.tickFormat(function(d) {return self.yAxisTickFormat(d);});
|
||||
chart.xAxis.tickFormat(function(d) { return self.xAxisTickFormat(d, self.xLabels); });
|
||||
chart.yAxis.tickFormat(function(d) { return self.yAxisTickFormat(d); });
|
||||
chart.yAxis.axisLabelDistance(50);
|
||||
chart.useInteractiveGuideline(true); // for better UX and performance issue. (https://github.com/novus/nvd3/issues/691)
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ export default class BarchartVisualization extends Nvd3ChartVisualization {
|
|||
var configObj = self.config;
|
||||
|
||||
chart.yAxis.axisLabelDistance(50);
|
||||
chart.yAxis.tickFormat(function(d) {return self.yAxisTickFormat(d);});
|
||||
chart.yAxis.tickFormat(function(d) { return self.yAxisTickFormat(d); });
|
||||
|
||||
self.chart.stacked(this.config.stacked);
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ export default class LinechartVisualization extends Nvd3ChartVisualization {
|
|||
|
||||
configureChart(chart) {
|
||||
var self = this;
|
||||
chart.xAxis.tickFormat(function(d) {return self.xAxisTickFormat(d, self.xLabels);});
|
||||
chart.xAxis.tickFormat(function(d) { return self.xAxisTickFormat(d, self.xLabels); });
|
||||
chart.yAxis.tickFormat(function(d) {
|
||||
if (d === undefined) {
|
||||
return 'N/A';
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ export default class PiechartVisualization extends Nvd3ChartVisualization {
|
|||
};
|
||||
|
||||
configureChart(chart) {
|
||||
chart.x(function(d) { return d.label;})
|
||||
.y(function(d) { return d.value;})
|
||||
chart.x(function(d) { return d.label; })
|
||||
.y(function(d) { return d.value; })
|
||||
.showLabels(false)
|
||||
.showTooltipPercent(true);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ function noteListDataFactory(TRASH_FOLDER_ID) {
|
|||
} else { // a folder node
|
||||
var node = nodes.shift();
|
||||
var dir = _.find(curDir.children,
|
||||
function(c) {return c.name === node && c.children !== undefined;});
|
||||
function(c) { return c.name === node && c.children !== undefined; });
|
||||
if (dir !== undefined) { // found an existing dir
|
||||
addNode(dir, nodes, noteId);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue