Ruff version: v0.4.8
Extension version: 2024.26.0
Let's say you have a Lint > Select setting that looks like this:
which is equivalent to:
[tool.ruff.lint]
select = []
Notably, this is different from the default Lint > Select setting, which is this:
which leaves select without a value, instead of setting it to [].
This subtle difference means that if you remove all entries from Lint > Select but then forget to 'reset' the setting, you've turned off all lint rules, and may not have even realized it.
Ideally, the difference between null and [] for select and other "array-like" settings should be more clear.
Ruff version: v0.4.8
Extension version: 2024.26.0
Let's say you have a
Lint > Selectsetting that looks like this:which is equivalent to:
Notably, this is different from the default
Lint > Selectsetting, which is this:which leaves
selectwithout a value, instead of setting it to[].This subtle difference means that if you remove all entries from
Lint > Selectbut then forget to 'reset' the setting, you've turned off all lint rules, and may not have even realized it.Ideally, the difference between
nulland[]forselectand other "array-like" settings should be more clear.