aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level0/README-writing-to-temporary.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/checks/level0/README-writing-to-temporary.md')
-rw-r--r--src/checks/level0/README-writing-to-temporary.md19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/checks/level0/README-writing-to-temporary.md b/src/checks/level0/README-writing-to-temporary.md
deleted file mode 100644
index f39eb5d4..00000000
--- a/src/checks/level0/README-writing-to-temporary.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# writing-to-temporary
-
-Catches when calling setters on temporaries.
-#### Example
-`widget->sizePolicy().setHorizontalStretch(1);`
-
-Which should instead be:
-```
-QSizePolicy sp = widget->sizePolicy();
-sp.setHorizontalStretch(1);
-widget->setSizePolicy(sp);
-```
-
-#### Requirements
-- The method must be of void return type, and must belong to one of these whitelisted classes:
- QList, QVector, QMap, QHash, QString, QSet, QByteArray, QUrl, QVarLengthArray, QLinkedList, QRect, QRectF, QBitmap, QVector2D, QVector3D, QVector4D, QSize, QSizeF, QSizePolicy
-
-- Optionally, if you set env variable `CLAZY_EXTRA_OPTIONS="writing-to-temporary-widen-criteria"`, it will warn on any method with name starting with "set", regardless of it being whitelisted, example:
-`foo().setBar()`