mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
build: hook up badwords check to lint targets
Also: - autotools: make `badwords` target honor `@PERL@`. Suggested-by: Stefan Eissing Closes #20884
This commit is contained in:
parent
56739855f3
commit
a0db67572e
@ -561,9 +561,11 @@ if(PERL_EXECUTABLE)
|
||||
add_custom_target(curl-lint
|
||||
COMMENT "Running lint checks" VERBATIM USES_TERMINAL
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||
COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/badwords-all"
|
||||
COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/checksrc-all.pl"
|
||||
COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/spacecheck.pl"
|
||||
DEPENDS
|
||||
"${PROJECT_SOURCE_DIR}/scripts/badwords-all" "${PROJECT_SOURCE_DIR}/scripts/badwords"
|
||||
"${PROJECT_SOURCE_DIR}/scripts/checksrc-all.pl" "${PROJECT_SOURCE_DIR}/scripts/checksrc.pl"
|
||||
"${PROJECT_SOURCE_DIR}/scripts/spacecheck.pl"
|
||||
)
|
||||
|
||||
@ -172,7 +172,10 @@ checksrc:
|
||||
(cd docs/examples && $(MAKE) checksrc)
|
||||
(cd projects && $(MAKE) checksrc)
|
||||
|
||||
lint: checksrc
|
||||
badwords:
|
||||
@PERL@ $(top_srcdir)/scripts/badwords-all
|
||||
|
||||
lint: badwords checksrc
|
||||
@PERL@ $(top_srcdir)/scripts/spacecheck.pl
|
||||
|
||||
tidy:
|
||||
@ -181,6 +184,3 @@ tidy:
|
||||
|
||||
clean-local:
|
||||
(cd tests && $(MAKE) clean)
|
||||
|
||||
badwords:
|
||||
$(top_srcdir)/scripts/badwords-all
|
||||
|
||||
Loading…
Reference in New Issue
Block a user