Skip to content

Commit aa3c351

Browse files
sam-wcooperlees
andauthored
Make bugbear slightly more polite (#298)
* make bugbear slightly more polite Bugbear is great at catching bugs in our code, but can come across a bit rude when commenting on pull requests 😂 Obviously it's a robot, but we like to encourage polite discourse * Update bugbear.py Co-authored-by: Cooper Lees <[email protected]> Co-authored-by: Cooper Lees <[email protected]>
1 parent 48654e1 commit aa3c351

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bugbear.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,8 +1192,8 @@ def visit_Lambda(self, node):
11921192
}
11931193
B015 = Error(
11941194
message=(
1195-
"B015 Pointless comparison. This comparison does nothing but waste "
1196-
"CPU instructions. Either prepend `assert` or remove it."
1195+
"B015 Result of comparison is not used. This line doesn't do"
1196+
"anything. Did you intend to prepend it with assert?"
11971197
)
11981198
)
11991199
B016 = Error(
@@ -1213,7 +1213,8 @@ def visit_Lambda(self, node):
12131213
)
12141214
B018 = Error(
12151215
message=(
1216-
"B018 Found useless expression. Either assign it to a variable or remove it."
1216+
"B018 Found useless expression. Consider either assigning it to a "
1217+
"variable or removing it."
12171218
)
12181219
)
12191220
B019 = Error(

0 commit comments

Comments
 (0)