CartoDB/Windshaft

View on GitHub
lib/renderers/torque/renderer.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function getTileData has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async getTileData (psql, coord, zoom, layerSql, attrs) {
        let columnConv = attrs.column;

        if (attrs.is_time) {
            columnConv = format("date_part('epoch', {column})", attrs);
Severity: Major
Found in lib/renderers/torque/renderer.js - About 2 hrs to fix

    Function defaultTileSQLTemplate has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function defaultTileSQLTemplate () {
        return `
            WITH par AS (
                WITH innerpar AS (
                    SELECT
    Severity: Minor
    Found in lib/renderers/torque/renderer.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status