Skip to content

Commit 8988b1e

Browse files
committed
build: update recipes and documentation
--- 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 ---
1 parent de93d8f commit 8988b1e

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

tools/make/lib/ls/files.mk

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,26 @@ FIND_FILES_CMD ?= find $(find_kernel_prefix) $(ROOT_DIR) $(FIND_FILES_FLAGS)
3636
FILES ?= $(shell $(FIND_FILES_CMD))
3737

3838

39-
# TARGETS #
39+
# RULES #
4040

41-
# List all files.
41+
#/
42+
# Prints a list of files satisfying filter criteria.
4243
#
43-
# This target prints a list of all files, excluding the `node_modules`, `build`, `reports`, and hidden directories.
44-
44+
# ## Notes
45+
#
46+
# - This target prints a list of all files, excluding the `node_modules`, `build`, `reports`, and hidden directories.
47+
#
48+
# @param {string} [FILES_FILTER] - file path pattern (e.g., `.*/math/base/special/abs/.*`)
49+
# @param {string} [FILES_PATTERN] - file name pattern (e.g., `*.js`)
50+
#
51+
# @example
52+
# make list-files
53+
#
54+
# @example
55+
# make list-files FILES_FILTER=".*/math/base/special/abs/.*"
56+
#
57+
# @example
58+
# make list-files FILES_FILTER=".*/math/base/special/abs/.*" FILES_PATTERN="*.js"
4559
list-files:
4660
$(QUIET) find $(find_kernel_prefix) $(ROOT_DIR) $(FIND_FILES_FLAGS) $(find_print_list)
4761

tools/make/lib/ls/pkgs/lib.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ list-lib-pkgs:
7373
# make list-random-lib-pkgs RANDOM_SELECTION_SIZE=10
7474
#/
7575
list-random-lib-pkgs:
76-
@if command -v shuf > /dev/null; then \
77-
make list-lib-pkgs | shuf -n $(RANDOM_SELECTION_SIZE) ; \
76+
$(QUIET) if command -v shuf > /dev/null; then \
77+
$(MAKE) list-lib-pkgs | shuf -n $(RANDOM_SELECTION_SIZE) ; \
7878
else \
79-
make list-lib-pkgs | sort -R | head -n $(RANDOM_SELECTION_SIZE) ; \
79+
$(MAKE) list-lib-pkgs | sort -R | head -n $(RANDOM_SELECTION_SIZE) ; \
8080
fi
8181

8282
.PHONY: list-random-lib-pkgs

0 commit comments

Comments
 (0)