Showing 3 of 34 total issues
Function configureServer
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
const configureServer = config => {
const serverless = yaml.safeLoad(config)
const server = express()
- Create a ticketCreate a ticket
Function foo
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const foo = Object.entries(serverless.functions).forEach(([name, fn]) => {
const event = fn.events.filter(e => {
return Object.keys(e).includes('http')
})[0].http
- Create a ticketCreate a ticket
Function toHaveHeader
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const toHaveHeader = (response, ...header) => {
if (header.length === 1) {
return {
message: () =>
matcherHint('.toHaveHeader', 'received', 'expected', {}) +
- Create a ticketCreate a ticket