constapp=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()app.use(helmet.hidePoweredBy());// rest of your config
constapp=express()app.use(hidePoweredBy())// rest of your config
constapp=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:- javascript-express # Rules to enforce JavaScript 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