Support groovy lint exclusions
makefiles/utils/include.mk
--------------------------
o Added helper method path-by-makefile.
o Derive a path relative to an active makefile.
makefiles/lint/groovy/include.mk
makefiles/lint/groovy/.groovylintrc.json
makefiles/lint/groovy/urls
----------------------------------------
o make lint-groovy: pass argument --config to npm-groovy-lint.
o Bulk filter subjective and personal-preference items to help
shrink logfile size until the warning volume is under control.
o https://github.com/nvuillam/npm-groovy-lint/blob/main/lib/.groovylintrc-recommended.json
[HOWTO: test]
% git clone onf-make
% cd onf-make
% make lint-groovy HIDE=
Display command line being launched (HIDE=@ cleared):
[...] npm-groovy-lint --config "...../onf-make/makefiles/lint/groovy/.groovylintrc.json"
Change-Id: I0f3bf3f7f949d7911c89e809f1702a1615418ea6
diff --git a/makefiles/lint/groovy/include.mk b/makefiles/lint/groovy/include.mk
index a2406d4..9cc80c3 100644
--- a/makefiles/lint/groovy/include.mk
+++ b/makefiles/lint/groovy/include.mk
@@ -1,6 +1,6 @@
# -*- makefile -*-
# -----------------------------------------------------------------------
-# Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors
+# Copyright 2022-2024 Open Networking Foundation (ONF) and the ONF Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -14,9 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# -----------------------------------------------------------------------
-# https://gerrit.opencord.org/plugins/gitiles/onf-make
-# ONF.makefiles.lint.groovy.version = 1.1.1 (+local edits)
-# -----------------------------------------------------------------------
##-------------------##
##---] GLOBALS [---##
@@ -24,7 +21,11 @@
groovy-check := npm-groovy-lint
+groovy-check-conf := $(call path-by-makefile,.groovylintrc.json)
+
groovy-check-args := $(null)
+groovy-check-args += --config "$(groovy-check-conf)"
+
# groovy-check-args += --loglevel info
# groovy-check-args += --ignorepattern
# groovy-check-args += --verbose