eisen-dev/eisen_front

View on GitHub

Showing 2,746 of 2,746 total issues

Consider simplifying this complex logical expression.
Open

} else if ( this.value !== '' && (
// liveSearch can contain a min value length; ignore arrow and meta keys, but allow backspace
( typeof wo.filter_liveSearch === 'number' && this.value.length < wo.filter_liveSearch ) ||
// let return & backspace continue on, but ignore arrows & non-valid characters
( event.which !== tskeyCodes.enter && event.which !== tskeyCodes.backSpace &&
Severity: Critical
Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix

    Avoid using short method names like ::l(). The configured minimum method name length is 3.
    Open

    function l()
    {
    if ( !Kint::enabled() ) return;
     
    $args = func_get_args();
    Severity: Minor
    Found in webd/kintlog.php by phpmd

    Avoid using short method names like ::ld(). The configured minimum method name length is 3.
    Open

    function ld()
    {
    if ( !Kint::enabled() ) return;
     
    $args = func_get_args();
    Severity: Minor
    Found in webd/kintlog.php by phpmd

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

    pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise<any>;
    Severity: Major
    Found in webd/ts/libs/jquery.d.ts and 1 other location - About 1 hr to fix
    webd/ts/libs/jquery.d.ts on lines 438..438

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

    get(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
    Severity: Major
    Found in webd/ts/libs/jquery.d.ts and 1 other location - About 1 hr to fix
    webd/ts/libs/jquery.d.ts on lines 713..713

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

    post(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
    Severity: Major
    Found in webd/ts/libs/jquery.d.ts and 1 other location - About 1 hr to fix
    webd/ts/libs/jquery.d.ts on lines 668..668

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

    pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise<any>;
    Severity: Major
    Found in webd/ts/libs/jquery.d.ts and 1 other location - About 1 hr to fix
    webd/ts/libs/jquery.d.ts on lines 346..346

    Function operators has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    operators: function( c, data ) {
    // ignore empty strings... because '' < 10 is true
    if ( tsfRegex.operTest.test( data.iFilter ) && data.iExact !== '' ) {
    var cachedValue, result, txt,
    table = c.table,
    Severity: Minor
    Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix

      Function removeWidget has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      removeWidget : function( table, name, refreshing ) {
      table = $( table )[ 0 ];
      var index, widget, indx, len,
      c = table.config;
      // if name === true, add all widgets from $.tablesorter.widgets
      Severity: Minor
      Found in webd/includes/tablesorter/jquery.tablesorter.js - About 1 hr to fix

        Function hideFilters has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        hideFilters: function( c, $table ) {
        var timer,
        $row = ( $table || c.$table ).find( '.' + tscss.filterRow ).addClass( tscss.filterRowHide );
        $row
        .bind( 'mouseenter mouseleave', function( e ) {
        Severity: Minor
        Found in webd/includes/tablesorter/jquery.tablesorter.widgets.js - About 1 hr to fix

          Avoid using undefined variables such as '$hosts' which will lead to PHP notices.
          Open

          $hosts[] = ($response->body->host[$i]);
          Severity: Minor
          Found in webd/includes/restclient.php by phpmd

          Avoid using undefined variables such as '$recipes' which will lead to PHP notices.
          Open

          if (isset($recipes)) {
          Severity: Minor
          Found in webd/includes/restclient.php by phpmd

          Avoid using undefined variables such as '$hosts' which will lead to PHP notices.
          Open

          return $hosts;
          Severity: Minor
          Found in webd/includes/restclient.php by phpmd

          Avoid using undefined variables such as '$recipes' which will lead to PHP notices.
          Open

          $recipes[] = ($response->body->recipes[$i]);
          Severity: Minor
          Found in webd/includes/restclient.php by phpmd

          Avoid using undefined variables such as '$recipes' which will lead to PHP notices.
          Open

          return $recipes;
          Severity: Minor
          Found in webd/includes/restclient.php by phpmd

          Avoid using undefined variables such as '$db_host' which will lead to PHP notices.
          Open

          if (!empty($db_host)) {
          Severity: Minor
          Found in webd/includes/DbAction.php by phpmd

          Avoid using undefined variables such as '$db_host' which will lead to PHP notices.
          Open

          $dsn = "mysql:dbname=$db_name;host=$db_host;charset=utf8";
          Severity: Minor
          Found in webd/includes/DbAction.php by phpmd

          Avoid using undefined variables such as '$db_host' which will lead to PHP notices.
          Open

          $dsn = "mysql:host=$db_host";
          Severity: Minor
          Found in webd/includes/DbAction.php by phpmd

          Avoid using undefined variables such as '$hosts' which will lead to PHP notices.
          Open

          if (isset($hosts)) {
          Severity: Minor
          Found in webd/includes/restclient.php by phpmd

          Avoid using undefined variables such as '$db_name' which will lead to PHP notices.
          Open

          if (!empty($db_name)) {
          Severity: Minor
          Found in webd/includes/DbAction.php by phpmd
          Severity
          Category
          Status
          Source
          Language