erlfmt icon indicating copy to clipboard operation
erlfmt copied to clipboard

Apply `exclude_files` to `files` absolute paths

Open danielfinke opened this issue 6 months ago • 1 comments

When calling erlfmt with absolute paths for the files to format, the excludes don't apply, even if the resolved paths of the excludes would match the files to format.

Resolve the paths of the excludes based on the current working directory and add them to the excludes.

This issue was observed when using the VS Code Erlang Formatter extension. The extension invokes rebar3 fmt with the full path of the file to format.

danielfinke avatar Aug 17 '24 21:08 danielfinke