File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ jobs:
133
133
- name : ' Lint against EditorConfig'
134
134
if : success() || failure()
135
135
run : |
136
- make lint-editorconfig-files FILES="${{ steps.changed-files.outputs.files }}"
136
+ make lint-editorconfig-files EDITORCONFIG_FORMAT=github-actions FILES="${{ steps.changed-files.outputs.files }}"
137
137
138
138
# Lint Markdown files:
139
139
- name : ' Lint Markdown files'
Original file line number Diff line number Diff line change @@ -35,9 +35,16 @@ EDITORCONFIG_CHECKER_CONF ?= $(CONFIG_DIR)/editorconfig-checker/.editorconfig_ch
35
35
# Define the path to the editorconfig-checker configuration file for Markdown files:
36
36
EDITORCONFIG_CHECKER_MARKDOWN_CONF ?= $(CONFIG_DIR ) /editorconfig-checker/.editorconfig_checker.markdown.json
37
37
38
+ # Define the output format (default is unset, which uses editorconfig-checker's default format)
39
+ EDITORCONFIG_FORMAT ?=
40
+
41
+ # Add the format flag if EDITORCONFIG_FORMAT is set
42
+ EDITORCONFIG_FORMAT_FLAG := $(if $(EDITORCONFIG_FORMAT ) ,--format=$(EDITORCONFIG_FORMAT ) )
43
+
38
44
# Define the command-line options to use when invoking the editorconfig-checker executable:
39
45
EDITORCONFIG_CHECKER_CONF_FLAGS ?= \
40
- --ignore-defaults
46
+ --ignore-defaults \
47
+ $(EDITORCONFIG_FORMAT_FLAG )
41
48
42
49
43
50
# RULES #
You can’t perform that action at this time.
0 commit comments