qlik-oss/picasso.js

View on GitHub
plugins/hammer/src/__tests__/hammer-mock.js

Summary

Maintainability
B
4 hrs
Test Coverage
A
93%

Showing 2 of 2 total issues

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

recognizeWith(events) {
events.forEach((event) => {
if (this.manager.get(event)) {
this._recognizeWith.push(event);
} else {
Severity: Major
Found in plugins/hammer/src/__tests__/hammer-mock.js and 1 other location - About 2 hrs to fix
plugins/hammer/src/__tests__/hammer-mock.js on lines 79..87

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

requireFailure(events) {
events.forEach((event) => {
if (this.manager.get(event)) {
this._requireFailure.push(event);
} else {
Severity: Major
Found in plugins/hammer/src/__tests__/hammer-mock.js and 1 other location - About 2 hrs to fix
plugins/hammer/src/__tests__/hammer-mock.js on lines 69..77

There are no issues that match your filters.

Category
Status