Showing 2 of 4 total issues
Function emailNewPosts
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function emailNewPosts (callback) {
logger.info('Sending email update(s) for any new posts...');
readFileAsArray(mailingListFilename, (err, addresses) => {
if (err) {
return bail(`Unable to read file: ${mailingListFilename}`, callback);
- Create a ticketCreate a ticket
Function getLatestPosts
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getLatestPosts = (options) => {
return new Promise((resolve, reject) => {
options.offset = options.offset || 0;
options.limit = options.limit || 10;
options.include = options.include || [];
- Create a ticketCreate a ticket