-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Issue Description
The getCursorFromHashParams
function in src/utils/url/urlHash.ts
has been flagged by ESLint for exceeding the maximum number of statements (max-statements rule). An ESLint disable comment was added as a temporary workaround, but the function should be refactored to improve readability and maintainability.
Current State
The function currently handles multiple responsibilities:
- URL hash parameter validation
- State updates for view and log file manager
- Cursor creation for different navigation scenarios
- Error handling
Suggested Refactoring
Consider breaking down the function into smaller, more focused functions such as:
- Parameter validation and clamping
- State update logic
- Cursor creation logic
- Individual handlers for different cursor types
Context
This issue was identified during code review of PR #359 where the ESLint disable comment was added.
Backlinks:
Metadata
Metadata
Assignees
Labels
No labels