mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
dc58edd521
I recently noticed there were several invocations of `wcwidth()` that should have been `fish_wcwidth()`. This adds custom cppcheck rules to detect that mistake.
19 lines
495 B
XML
19 lines
495 B
XML
<?xml version="1.0"?>
|
|
<rule version="1">
|
|
<pattern> wcwidth \(</pattern>
|
|
<message>
|
|
<id>wcwidthForbidden</id>
|
|
<severity>warning</severity>
|
|
<summary>Always use fish_wcwidth rather than wcwidth.</summary>
|
|
</message>
|
|
</rule>
|
|
|
|
<rule version="1">
|
|
<pattern> wcswidth \(</pattern>
|
|
<message>
|
|
<id>wcswidthForbidden</id>
|
|
<severity>warning</severity>
|
|
<summary>Always use fish_wcswidth rather than wcswidth.</summary>
|
|
</message>
|
|
</rule>
|