TripleParity/docks-api

View on GitHub

Showing 3 of 44 total issues

Function init has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  init() {
    if (this.events.length == 0) {
      this.subcriptions.push(
        this.handler.AllObservable.subscribe((x) => this.post(x))
      );
Severity: Major
Found in lib/docker_webhook.js - About 2 hrs to fix

    Function start has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      start() {
        const req = request({
          method: 'GET',
          url: 'http://unix:/var/run/docker.sock:/v1.37/events',
          json: true,
    Severity: Minor
    Found in lib/docker_event_watcher.js - About 1 hr to fix

      Function feed has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        feed(data) {
          this.AllSubject.onNext(data);
      
          switch (data['Type']) {
          case DockerTypes.VOLUME: {
      Severity: Minor
      Found in lib/docker_event_handler.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language