mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00: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.
18 lines
495 B
XML
18 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>
|