strikeentco/tg-yarl

View on GitHub

Showing 3 of 34 total issues

File main.js has 290 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict';

var fs = require('fs');
var yarl = require('yarl');
var url = 'https://api.telegram.org';
Severity: Minor
Found in main.js - About 2 hrs to fix

    Function sendVenue has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    Api.prototype.sendVenue = function (chatId, lat, lon, title, address, options) {
    Severity: Minor
    Found in main.js - About 45 mins to fix

      Consider simplifying this complex logical expression.
      Open

        if (!Array.isArray(keyboard)) {
          return this.hideKeyboard(selective || resize || false);
        } else {
          this.keyboard = JSON.stringify({
            keyboard: keyboard,
      Severity: Major
      Found in main.js - About 40 mins to fix
        Severity
        Category
        Status
        Source
        Language