leonitousconforti/tinyburg

View on GitHub
packages/bitprints/src/strategies/rebuild-every-x-floors.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useStrategy has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useStrategy = (): FiniteStateMachine<TinyTowerRebuildAsapStrategyStates, ITinyTowerRebuildEventData> => {
    /**
     * Rebuild after 50 floors so we get a golden ticket every time. There is no
     * reason that this can't be a function that takes in the above event data
     * and makes a decision using more data, but for this example this will do.
Severity: Minor
Found in packages/bitprints/src/strategies/rebuild-every-x-floors.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status