mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 05:25:19 +00:00

Some checks are pending
Test and upload documentation to artifacts / build-docs (push) Waiting to run
Linters / lint-addon-docs (push) Waiting to run
Linters / lint-cpp (push) Waiting to run
Linters / format-cpp (push) Waiting to run
Linters / lint-js-and-md (push) Waiting to run
Linters / lint-py (push) Waiting to run
Linters / lint-yaml (push) Waiting to run
Linters / lint-sh (push) Waiting to run
Linters / lint-codeowners (push) Waiting to run
Linters / lint-pr-url (push) Waiting to run
Linters / lint-readme (push) Waiting to run
Notify on Push / Notify on Force Push on `main` (push) Waiting to run
Notify on Push / Notify on Push on `main` that lacks metadata (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
PR-URL: https://github.com/nodejs/node/pull/55239 Reviewed-By: Christian Clauss <cclauss@me.com>
46 lines
946 B
TOML
46 lines
946 B
TOML
[tool.ruff]
|
|
exclude = [
|
|
"deps",
|
|
"tools/cpplint.py",
|
|
"tools/gyp",
|
|
"tools/inspector_protocol",
|
|
"tools/eslint/node_modules"
|
|
]
|
|
line-length = 172
|
|
target-version = "py39"
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"C90", # McCabe cyclomatic complexity
|
|
"E", # pycodestyle
|
|
"F", # Pyflakes
|
|
"ICN", # flake8-import-conventions
|
|
"INT", # flake8-gettext
|
|
"PLC", # Pylint conventions
|
|
"PLE", # Pylint errors
|
|
"PLR09", # Pylint refactoring: max-args, max-branches, max returns, max-statements
|
|
"PYI", # flake8-pyi
|
|
"RSE", # flake8-raise
|
|
"RUF", # Ruff-specific rules
|
|
"T10", # flake8-debugger
|
|
"TCH", # flake8-type-checking
|
|
"TID", # flake8-tidy-imports
|
|
"W", # pycodestyle
|
|
"YTT", # flake8-2020
|
|
]
|
|
ignore = [
|
|
"E401",
|
|
"E402",
|
|
"E7",
|
|
"RUF005",
|
|
]
|
|
|
|
[tool.ruff.lint.mccabe]
|
|
max-complexity = 100
|
|
|
|
[tool.ruff.lint.pylint]
|
|
max-args = 12
|
|
max-branches = 110
|
|
max-returns = 12
|
|
max-statements = 289
|