[pylint] Implement consider-using-ternary (R1706) #7811
impl consider_using_ternary
ae533ce5
add names & test
4893cc60
add python test
57f8601e
call rule
55d1c693
edit schema
8515e469
add snapshot
d1a3f57d
Merge branch 'main' of https://github.com/astral-sh/ruff into conside…
c7cb48bf
apply cargo fmt
ca8f911a
fix typo
720820b6
rename to LegacyTernary
f2eee653
danbi2990
marked this pull request as draft 2 years ago
rename to AndOrTernary
c2f6bb9b
move to helpers
2662cf70
change snapshot
fccf90d5
apply format
2d2af477
Merge branch 'main' of https://github.com/astral-sh/ruff into conside…
d5e56fde
danbi2990
marked this pull request as ready for review 2 years ago
assume no complex logical operator
0f3c6d33
apply PR review
fc33084e
remove checking len
f20e2f78
clean-up
b56d5ffc
Merge branch 'main' of https://github.com/astral-sh/ruff into conside…
552093b8
use safe_edit
ca97bc4a
add test
c3f67287
update snapshot
970dc7d1
move helper and make private
23bbd164
early return if parent is `if` or `bool_op`
964bc91e
Merge branch 'main' of https://github.com/astral-sh/ruff into conside…
220c88e4
update snapshot
70a48bdc
add test
bfb628c2
check comprehension-if
ca2c0e2d
Merge branch 'main' of https://github.com/astral-sh/ruff into conside…
6b6da3f3
use enabled
330244f7
remove mut
679ca422
remove pub
ef8c558e
format
341d8472
konstin
approved these changes
on 2023-10-12
update snapshot
b3d4b0b1
use unsafe_edit
13904893
Merge branch 'main' into consider-using-ternary
a09f88bb
Tweak messages
7db58c75
Add to preview
50f55cc9
Tweak fixture
825afc39
Merge branch 'main' into consider-using-ternary
2551ccae
danbi2990
deleted the consider-using-ternary branch 2 years ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub