MBeautifier
MBeautifier copied to clipboard
Use tool to block PR in a CI/CD pipeline
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:
- A function accepting a single string argument: path to a directory (e.g.
isConsistentWithFormatStyle(pathToDirectory)) - The function inspects each M-file in the given directory (and recursively in each sub-directory)
- The function returns a boolean (true if the formatting style is adhered to, false if the formatting style is violated).
- Optionally (for bonus points): the function returns a list of violations.