Skip to content

tools: add preprocessor directive styling rules to linter

Added function to cpp linter that checks for styling of preprocessor directives. The styling rules chosen were;

  1. No space between # and directive
  2. Uniform spacing between directive, identifier, and replacement

Fix: https://github.com/nodejs/node/issues/28605

Checklist

Merge request reports

Loading