mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Add common pattern in linter exclusion list
# ambiguous-variable-name (E741) Derived from the **pycodestyle** linter. ## What it does Checks for the use of the characters 'l', 'O', or 'I' as variable names. ## Why is this bad? In some fonts, these characters are indistinguishable from the numerals one and zero. When tempted to use 'l', use 'L' instead. ## Reason to ignore in LyX? With appropriated fonts that is not an issue. In our case we just use the 'l', in particular in the context of iterators: 'i', 'j', 'k', 'l'.
This commit is contained in:
parent
0fc8ee5ace
commit
b80ccaa417
@ -18,3 +18,8 @@ docstring-code-format = true
|
||||
# This only has an effect when the `docstring-code-format` setting is
|
||||
# enabled.
|
||||
docstring-code-line-length = "dynamic"
|
||||
|
||||
[tool.ruff.lint]
|
||||
# Ignore warnings like: Ambiguous variable name: `l`
|
||||
# ambiguous-variable-name (E741)
|
||||
ignore = ["E741"]
|
||||
|
Loading…
Reference in New Issue
Block a user