Skip to content

Commit 1a8e5f3

Browse files
committed
build: generate GitHub annotations from editorconfig-checker on CI
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent dfb4d35 commit 1a8e5f3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/lint_changed_files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
- name: 'Lint against EditorConfig'
134134
if: success() || failure()
135135
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 }}"
137137
138138
# Lint Markdown files:
139139
- name: 'Lint Markdown files'

tools/make/lib/lint/editorconfig.mk

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,16 @@ EDITORCONFIG_CHECKER_CONF ?= $(CONFIG_DIR)/editorconfig-checker/.editorconfig_ch
3535
# Define the path to the editorconfig-checker configuration file for Markdown files:
3636
EDITORCONFIG_CHECKER_MARKDOWN_CONF ?= $(CONFIG_DIR)/editorconfig-checker/.editorconfig_checker.markdown.json
3737

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+
3844
# Define the command-line options to use when invoking the editorconfig-checker executable:
3945
EDITORCONFIG_CHECKER_CONF_FLAGS ?= \
40-
--ignore-defaults
46+
--ignore-defaults \
47+
$(EDITORCONFIG_FORMAT_FLAG)
4148

4249

4350
# RULES #

0 commit comments

Comments
 (0)