hybridgroup/cylon-joystick

View on GitHub
examples/logitech-f310/logitech-f310.js

Summary

Maintainability
A
1 hr
Test Coverage

Function work has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  work: function(my) {
    ["up", "down", "left", "right", "start", "select", "home",
    "ls", "rs", "lb", "rb", "a", "b", "y", "x"].forEach(function(button) {
      my.controller.on(button + ":press", function() {
        console.log("Button " + button + " pressed.");
Severity: Minor
Found in examples/logitech-f310/logitech-f310.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status