qlik-oss/picasso.js

View on GitHub
examples/hammer/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 3 of 3 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

scales: {
x: { data: { field: 'Sales' }, expand: 0.1 },
y: { data: { field: 'Margin' }, expand: 0.1 },
},
Severity: Minor
Found in examples/hammer/index.js and 1 other location - About 45 mins to fix
examples/scatterplot/index.js on lines 3..6

Similar blocks of code found in 2 locations. Consider refactoring.
Open

move: function (e) {
this.state.points[1] = getPoint(e, this);
render(this, this.state, true);
},
Severity: Minor
Found in examples/hammer/index.js and 1 other location - About 40 mins to fix
examples/hammer/index.js on lines 78..81

Similar blocks of code found in 2 locations. Consider refactoring.
Open

end: function (e) {
this.state.points[1] = getPoint(e, this);
render(this, this.state, true);
},
Severity: Minor
Found in examples/hammer/index.js and 1 other location - About 40 mins to fix
examples/hammer/index.js on lines 74..77
Category
Status