Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
constapp: Express=express();// express() is called but none of the following were detected afterwards
// app.disable('x-powered-by')
// app.use(hidePoweredBy())
// app.use(helmet.hidePoweredBy())
Compliant Code Examples
constapp: Express=express();app.use(helmet.hidePoweredBy());// rest of your config
constapp: Express=express();app.use(hidePoweredBy())// rest of your config
constapp: Express=express();app.disable('x-powered-by')// rest of your config
Seamless integrations. Try Datadog Code Analysis
Datadog Code Analysis
Try this rule and analyze your code with Datadog Code Analysis
How to use this rule
1
2
rulesets:- typescript-express # Rules to enforce TypeScript express.
Create a static-analysis.datadog.yml with the content above at the root of your repository
Use our free IDE Plugins or add Code Analysis scans to your CI pipelines