checkov icon indicating copy to clipboard operation
checkov copied to clipboard

Comments for multiple skips not working

Open stepintooracledba opened this issue 11 months ago • 1 comments

Describe the issue I would like to add comments for multiple skips. Right now, we can do multiple skips as below,

#checkov:skip=CKV_AWS_355,CKV_AWS_287: Skipping all checks

But If i try to add comments to the skips like below it doesn't work.

#checkov:skip=CKV_AWS_355:Skipping first one,CKV_AWS_287: Skipping second one

Please advise,

checkov --version 3.2.340

stepintooracledba avatar May 19 '25 10:05 stepintooracledba

This is common among analyzers that allow suppressing multiple rules at once (see ESLint). Adding many inline comments like you suggest would make the comment more difficult to read. Why not have separate comments for each rule if you need to document them separately?

gtbuchanan avatar May 21 '25 13:05 gtbuchanan