File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,33 @@ EDITORCONFIG_CHECKER_CONF_FLAGS ?= \
56
56
lint-editorconfig : $(NODE_MODULES )
57
57
$(QUIET ) $(FIND_PACKAGES_CMD ) | grep ' ^[\/]\|^[a-zA-Z]:[/\]' | while read -r pkg; do \
58
58
echo ' ' ; \
59
- echo " Linting package: $$ pkg" ; \
59
+ echo " Linting package for basic formatting errors : $$ pkg" ; \
60
60
cd " $$ pkg" && ( $( NODE) $( EDITORCONFIG_CHECKER) $( EDITORCONFIG_CHECKER_CONF_FLAGS) --config $( EDITORCONFIG_CHECKER_CONF) && $( NODE) $( EDITORCONFIG_CHECKER) $( EDITORCONFIG_CHECKER_CONF_FLAGS) --config $( EDITORCONFIG_CHECKER_MARKDOWN_CONF) && echo ' Success. No detected EditorConfig lint errors.' ) || exit 1; \
61
61
done
62
62
63
63
.PHONY : lint-editorconfig
64
+
65
+ # /
66
+ # Lints a specified list of files to ensure compliance with EditorConfig settings.
67
+ #
68
+ # ## Notes
69
+ #
70
+ # - This rule is useful when wanting to lint a list of files generated by some other command (e.g., a list of changed files obtained via `git diff`).
71
+ #
72
+ # @private
73
+ # @param {string} FILES - list of file paths
74
+ #
75
+ # @example
76
+ # make lint-editorconfig-files FILES='foo/test.js bar/index.d.ts'
77
+ # /
78
+ lint-editorconfig-files : $(NODE_MODULES )
79
+ $(QUIET ) $(DELETE ) $(DELETE_FLAGS ) " $( BUILD_DIR) /editorconfig-checker"
80
+ $(QUIET ) echo ' Linting files for basic formatting errors...'
81
+ $(QUIET ) $(MKDIR_RECURSIVE ) " $( BUILD_DIR) /editorconfig-checker"
82
+ $(QUIET ) $(TAR ) -cf - $(FILES ) | $(TAR ) -xvf - -C " $( BUILD_DIR) /editorconfig-checker/"
83
+ $(QUIET ) cd " $( BUILD_DIR) /editorconfig-checker" && \
84
+ $(NODE ) $(EDITORCONFIG_CHECKER ) $(EDITORCONFIG_CHECKER_CONF_FLAGS ) --config $(EDITORCONFIG_CHECKER_CONF ) && \
85
+ $(NODE ) $(EDITORCONFIG_CHECKER ) $(EDITORCONFIG_CHECKER_CONF_FLAGS ) --config $(EDITORCONFIG_CHECKER_MARKDOWN_CONF ) && \
86
+ echo ' Success. No detected EditorConfig lint errors.'
87
+
88
+ .PHONY : lint-editorconfig-files
You can’t perform that action at this time.
0 commit comments