Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
void (async function main() {
// thank new contributors
toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })
// are there any leftover console commands
toolbox.jsConsoleCommands({ logType: 'fail' })
// are new images minified
toolbox.imageMinifiedJpg()
toolbox.imageMinifiedPng()
// are there skipped or focused tests
toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })
toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
void (async function main() {
// thank new contributors
toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })
// are there any leftover console commands
toolbox.jsConsoleCommands({ logType: 'fail' })
// are new images minified
toolbox.imageMinifiedJpg()
toolbox.imageMinifiedPng()
// are there skipped or focused tests
toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })
toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
void (async function main() {
// thank new contributors
toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })
// are there any leftover console commands
toolbox.jsConsoleCommands({ logType: 'fail' })
// are new images minified
toolbox.imageMinifiedJpg()
toolbox.imageMinifiedPng()
// are there skipped or focused tests
toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })
toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
void (async function main() {
// thank new contributors
toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })
// are there any leftover console commands
toolbox.jsConsoleCommands({ logType: 'fail' })
// are new images minified
toolbox.imageMinifiedJpg()
toolbox.imageMinifiedPng()
// are there skipped or focused tests
toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })
toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
void (async function main() {
// thank new contributors
toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })
// are there any leftover console commands
toolbox.jsConsoleCommands({ logType: 'fail' })
// are new images minified
toolbox.imageMinifiedJpg()
toolbox.imageMinifiedPng()
// are there skipped or focused tests
toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })
toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
void (async function main() {
// thank new contributors
toolbox.commonContribution({ msg: 'Thanks for contributing :tada:' })
// are there any leftover console commands
toolbox.jsConsoleCommands({ logType: 'fail' })
// are new images minified
toolbox.imageMinifiedJpg()
toolbox.imageMinifiedPng()
// are there skipped or focused tests
toolbox.jsTestShortcuts({ logTypeSkipped: 'message', logTypeFocused: 'fail' })
toolbox.commonPrDescription({ minLength: 10, msg: ':pencil2: Please add a description.' })
})()
markdownChanges.forEach(path => {
const fileContent = fs.readFileSync(path);
fileContent
.toString()
.split(/\r?\n/)
.forEach((line, lineIndex) => {
AVOID_EXACT_WORDS.forEach(phrase => {
if (line.includes(phrase.word)) {
warn(`${phrase.reason} on line ${lineIndex + 1} in ${path}`);
}
});
});
});
commonFileWarnings('test.log', {
msg:
'The build logs contain these warnings (check the build output in Travis for more details):',
});