Skip to content

Commit

Permalink
Fix note on which qstring-arg checks are run by default and which nee…
Browse files Browse the repository at this point in the history
…d to be enabled
  • Loading branch information
Felix Fontein committed Nov 19, 2024
1 parent 60bc029 commit d0b033a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/checks/README-qstring-arg.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ To reduce false positives, some cases won't be warned about:
str.arg(foo); // We're only after cases where the second argument (or further) is specified, so this is safe
str.arg(foo, width); // Second argument is named width, or contains the name "width", it's safe. Same for third argument and "base".

Using these misleading overloads is perfectly valid, so only warning (1) is enabled by default.
To enable warning (2), `export CLAZY_EXTRA_OPTIONS="qstring-arg-fillChar-overloads"`
Using these misleading overloads is perfectly valid, so only warnings (1) and (2) are enabled by default.
To enable warning (3), `export CLAZY_EXTRA_OPTIONS="qstring-arg-fillChar-overloads"`

0 comments on commit d0b033a

Please sign in to comment.