You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
snowsignal
changed the title
Ruff-specific array-like settings can be non-intuitive when set in the extension
Ruff-specific array-like settings can be unintuitive when set in the extension
Jun 5, 2024
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:
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[]
forselect
and other "array-like" settings should be more clear.The text was updated successfully, but these errors were encountered: