Skip to content

chore: enable oxlint complexity rule - #1993

Closed
dyoshikawa-claw wants to merge 1 commit into
mainfrom
chore/enable-complexity-rule
Closed

chore: enable oxlint complexity rule#1993
dyoshikawa-claw wants to merge 1 commit into
mainfrom
chore/enable-complexity-rule

Conversation

@dyoshikawa-claw

Copy link
Copy Markdown
Collaborator

Summary

Enables the eslint/complexity rule (cyclomatic complexity) in oxlint with a conservative initial threshold of 52.

Details

  • The rule is set to warn level with max: 52
  • This matches the current maximum complexity in the codebase (config-resolver.ts resolve method at 52)
  • The threshold will be lowered gradually as complex functions are refactored

Rationale

Measuring cyclomatic complexity helps identify overly complex functions that are harder to test, maintain, and reason about. By enabling this rule, we establish a baseline for complexity tracking and encourage gradual improvement.

Enables the eslint/complexity rule (cyclomatic complexity) in oxlint
as a warning with a conservative initial threshold of 52. This allows
CI to pass while we gradually refactor complex functions and lower
the limit over time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants