sockethub/sockethub

View on GitHub
packages/irc2as/src/as-emitter.js

Summary

Maintainability
A
0 mins
Test Coverage

File as-emitter.js has 259 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

const EVENT_INCOMING = "incoming",
    EVENT_ERROR = "error";

class ASTemplates {
    constructor(events, server) {
Severity: Minor
Found in packages/irc2as/src/as-emitter.js - About 2 hrs to fix

    Function privMsg has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

        privMsg(nick, target, content) {
            let type, message;
            if (content.startsWith("+\u0001ACTION ")) {
                type = "me";
                message = content
    Severity: Minor
    Found in packages/irc2as/src/as-emitter.js - About 1 hr to fix

      Function role has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Wontfix

          role(type, nick, target, role, channel) {
              this.emitEvent(EVENT_INCOMING, {
                  context: "irc",
                  type: type,
                  actor: {
      Severity: Minor
      Found in packages/irc2as/src/as-emitter.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status