Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
docs: {
category: Category.pwa,
description: getMessage('description', 'en'),
name: getMessage('name', 'en')
},
/* istanbul ignore next */
getDescription(language: string) {
return getMessage('description', language);
},
/* istanbul ignore next */
getName(language: string) {
return getMessage('name', language);
},
id: 'manifest-scoped-urls',
schema: [],
scope: HintScope.site
};
export default meta;
},
/* istanbul ignore next */
getDescription(language: string) {
return getMessage('description', language);
},
/* istanbul ignore next */
getName(language: string) {
return getMessage('name', language);
},
id: 'content-type',
schema: [{
items: { type: 'string' },
type: ['object', 'null'],
uniqueItems: true
}],
scope: HintScope.site
};
export default meta;
docs: {
category: Category.security,
description: getMessage('description', 'en'),
name: getMessage('name', 'en')
},
/* istanbul ignore next */
getDescription(language: string) {
return getMessage('description', language);
},
/* istanbul ignore next */
getName(language: string) {
return getMessage('name', language);
},
id: 'x-content-type-options',
schema: [],
scope: HintScope.site
};
export default meta;
category: Category.security,
description: getMessage('description', 'en'),
name: getMessage('name', 'en')
},
/* istanbul ignore next */
getDescription(language: string) {
return getMessage('description', language);
},
/* istanbul ignore next */
getName(language: string) {
return getMessage('name', language);
},
id: 'validate-set-cookie-header',
ignoredConnectors: [],
schema: [],
scope: HintScope.site
};
export default meta;
additionalProperties: false,
definitions: {
'string-array': {
items: { type: 'string' },
minItems: 1,
type: 'array',
uniqueItems: true
}
},
properties: {
maxAgeResource: { type: 'number' },
maxAgeTarget: { type: 'number' },
revvingPatterns: { $ref: '#/definitions/string-array' }
}
}],
scope: HintScope.site
};
export default meta;
schema: [{
additionalProperties: false,
definitions: {
number: {
minimum: 0,
type: 'integer'
}
},
properties: {
maxImports: { $ref: '#/definitions/number' },
maxRules: { $ref: '#/definitions/number' },
maxSheets: { $ref: '#/definitions/number' }
},
type: ['object', 'null']
}],
scope: HintScope.site
};
export default meta;
id: 'no-http-redirects',
schema: [{
additionalProperties: false,
properties: {
'max-html-redirects': {
minimum: 0,
type: 'integer'
},
'max-resource-redirects': {
minimum: 0,
type: 'integer'
}
},
type: 'object'
}],
scope: HintScope.site
};
export default meta;
id: 'no-vulnerable-javascript-libraries',
schema: [{
additionalProperties: false,
properties: {
severity: {
pattern: '^(low|medium|high)$',
type: 'string'
}
},
type: 'object'
}],
/*
* Snyk can not analyze a file itself, it needs a connector.
* TODO: Change to any once the local connector has jsdom.
*/
scope: HintScope.site
};
export default meta;
additionalProperties: false,
definitions: {
'string-array': {
items: { type: 'string' },
minItems: 1,
type: 'array',
uniqueItems: true
}
},
properties: {
ignore: { $ref: '#/definitions/string-array' },
include: { $ref: '#/definitions/string-array' }
},
type: ['object', 'null']
}],
scope: HintScope.site
};
export default meta;
additionalProperties: false,
definitions: {
'string-array': {
items: { type: 'string' },
minItems: 1,
type: 'array',
uniqueItems: true
}
},
properties: {
ignore: { $ref: '#/definitions/string-array' },
include: { $ref: '#/definitions/string-array' }
},
type: ['object', 'null']
}],
scope: HintScope.site
};
export default meta;