summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 3c366bde..0338f6cb 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -190,6 +190,12 @@ define _sc_search_regexp_or_exclude
fi || :;
endef
+exclude_file_name_regexp--sc_useless_braces_in_variable_derefs = /cvsu$$
+sc_useless_braces_in_variable_derefs:
+ @prohibit='\$${[0-9A-Za-z_]+}[^0-9A-Za-z_]' \
+ halt='found spurious braces around variable dereference' \
+ $(_sc_search_regexp)
+
sc_useless_quotes_in_assignment:
@prohibit='^[ ]*[A-Za-z_][A-Za-z0-9_]*="[^ !#&()*;<>?@~^{|}]*"$$' \
halt='found spurious quotes around assignment value' \