lint: Prevent comments from being interpreted as JSDoc comments

This commit is contained in:
Richard Hansen 2020-11-21 14:05:02 -05:00 committed by John McLear
parent 7df3ded66f
commit 8ea1a1b90a

View file

@ -32,9 +32,9 @@ var importHtml = require("../utils/ImportHtml");
var cleanText = require("./Pad").cleanText; var cleanText = require("./Pad").cleanText;
var PadDiff = require("../utils/padDiff"); var PadDiff = require("../utils/padDiff");
/**********************/ /* ********************
/**GROUP FUNCTIONS*****/ * GROUP FUNCTIONS ****
/**********************/ ******************** */
exports.listAllGroups = groupManager.listAllGroups; exports.listAllGroups = groupManager.listAllGroups;
exports.createGroup = groupManager.createGroup; exports.createGroup = groupManager.createGroup;
@ -43,15 +43,15 @@ exports.deleteGroup = groupManager.deleteGroup;
exports.listPads = groupManager.listPads; exports.listPads = groupManager.listPads;
exports.createGroupPad = groupManager.createGroupPad; exports.createGroupPad = groupManager.createGroupPad;
/**********************/ /* ********************
/**PADLIST FUNCTION****/ * PADLIST FUNCTION ***
/**********************/ ******************** */
exports.listAllPads = padManager.listAllPads; exports.listAllPads = padManager.listAllPads;
/**********************/ /* ********************
/**AUTHOR FUNCTIONS****/ * AUTHOR FUNCTIONS ***
/**********************/ ******************** */
exports.createAuthor = authorManager.createAuthor; exports.createAuthor = authorManager.createAuthor;
exports.createAuthorIfNotExistsFor = authorManager.createAuthorIfNotExistsFor; exports.createAuthorIfNotExistsFor = authorManager.createAuthorIfNotExistsFor;
@ -60,9 +60,9 @@ exports.listPadsOfAuthor = authorManager.listPadsOfAuthor;
exports.padUsers = padMessageHandler.padUsers; exports.padUsers = padMessageHandler.padUsers;
exports.padUsersCount = padMessageHandler.padUsersCount; exports.padUsersCount = padMessageHandler.padUsersCount;
/**********************/ /* ********************
/**SESSION FUNCTIONS***/ * SESSION FUNCTIONS **
/**********************/ ******************** */
exports.createSession = sessionManager.createSession; exports.createSession = sessionManager.createSession;
exports.deleteSession = sessionManager.deleteSession; exports.deleteSession = sessionManager.deleteSession;
@ -70,9 +70,9 @@ exports.getSessionInfo = sessionManager.getSessionInfo;
exports.listSessionsOfGroup = sessionManager.listSessionsOfGroup; exports.listSessionsOfGroup = sessionManager.listSessionsOfGroup;
exports.listSessionsOfAuthor = sessionManager.listSessionsOfAuthor; exports.listSessionsOfAuthor = sessionManager.listSessionsOfAuthor;
/************************/ /* ***********************
/**PAD CONTENT FUNCTIONS*/ * PAD CONTENT FUNCTIONS *
/************************/ *********************** */
/** /**
getAttributePool(padID) returns the attribute pool of a pad getAttributePool(padID) returns the attribute pool of a pad
@ -287,9 +287,9 @@ exports.setHTML = async function(padID, html) {
padMessageHandler.updatePadClients(pad); padMessageHandler.updatePadClients(pad);
}; };
/******************/ /* ****************
/**CHAT FUNCTIONS */ * CHAT FUNCTIONS *
/******************/ **************** */
/** /**
getChatHistory(padId, start, end), returns a part of or the whole chat-history of this pad getChatHistory(padId, start, end), returns a part of or the whole chat-history of this pad
@ -365,9 +365,9 @@ exports.appendChatMessage = async function(padID, text, authorID, time) {
await padMessageHandler.sendChatMessageToPadClients(time, authorID, text, padID); await padMessageHandler.sendChatMessageToPadClients(time, authorID, text, padID);
} }
/*****************/ /* ***************
/**PAD FUNCTIONS */ * PAD FUNCTIONS *
/*****************/ *************** */
/** /**
getRevisionsCount(padID) returns the number of revisions of this pad getRevisionsCount(padID) returns the number of revisions of this pad
@ -783,9 +783,9 @@ exports.createDiffHTML = async function(padID, startRev, endRev) {
return { html, authors }; return { html, authors };
} }
/**********************/ /* ********************
/** GLOBAL FUNCTIONS **/ ** GLOBAL FUNCTIONS **
/**********************/ ******************** */
/** /**
getStats() returns an json object with some instance stats getStats() returns an json object with some instance stats
@ -811,9 +811,9 @@ exports.getStats = async function() {
} }
} }
/******************************/ /* ****************************
/** INTERNAL HELPER FUNCTIONS */ ** INTERNAL HELPER FUNCTIONS *
/******************************/ **************************** */
// checks if a number is an int // checks if a number is an int
function is_int(value) { function is_int(value) {