Skip to content

Use tool to block PR in a CI/CD pipeline #131

@CFBaptista

Description

@CFBaptista

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions