From dc58edd521942c0a5a42541d5b5c39b09c226665 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Fri, 17 Jun 2016 20:16:21 -0700 Subject: implement custom cppcheck rules I recently noticed there were several invocations of `wcwidth()` that should have been `fish_wcwidth()`. This adds custom cppcheck rules to detect that mistake. --- .cppcheck.rule | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .cppcheck.rule (limited to '.cppcheck.rule') diff --git a/.cppcheck.rule b/.cppcheck.rule new file mode 100644 index 00000000..d8f67a83 --- /dev/null +++ b/.cppcheck.rule @@ -0,0 +1,18 @@ + + + wcwidth \( + + wcwidthForbidden + warning + Always use fish_wcwidth rather than wcwidth. + + + + + wcswidth \( + + wcswidthForbidden + warning + Always use fish_wcswidth rather than wcswidth. + + -- cgit v1.2.3