MBeautifier icon indicating copy to clipboard operation
MBeautifier copied to clipboard

Use tool to block PR in a CI/CD pipeline

Open CFBaptista opened this issue 6 months ago • 0 comments
trafficstars

I would like to use this tool in a CI/CD pipeline. Specifically, I would like to block a Pull Request if there are any formatting violations. For this purpose I would like to request a feature. The feature requirements would be:

  1. A function accepting a single string argument: path to a directory (e.g. isConsistentWithFormatStyle(pathToDirectory))
  2. The function inspects each M-file in the given directory (and recursively in each sub-directory)
  3. The function returns a boolean (true if the formatting style is adhered to, false if the formatting style is violated).
  4. Optionally (for bonus points): the function returns a list of violations.

CFBaptista avatar May 14 '25 14:05 CFBaptista