Skip to content

refactor: extract DEFAULT_BATCH_SIZE and DEFAULT_SEARCH_DEPTH to named constants#440

Merged
sonukapoor merged 2 commits into
OWASP:mainfrom
coder-Yash886:feature/issue-436-extract-default-constants
May 25, 2026
Merged

refactor: extract DEFAULT_BATCH_SIZE and DEFAULT_SEARCH_DEPTH to named constants#440
sonukapoor merged 2 commits into
OWASP:mainfrom
coder-Yash886:feature/issue-436-extract-default-constants

Conversation

@coder-Yash886
Copy link
Copy Markdown
Contributor

Closes #436

Changes

  • Added DEFAULT_BATCH_SIZE = 100 and DEFAULT_SEARCH_DEPTH = 4 to src/constants.ts
  • Updated import in src/index.ts to include both new constants
  • Replaced inline magic numbers 100 and 4 with the named constants

No logic changes — values remain the same.

@coder-Yash886 coder-Yash886 force-pushed the feature/issue-436-extract-default-constants branch from becbb92 to 33791ca Compare May 24, 2026 17:40
@coder-Yash886
Copy link
Copy Markdown
Contributor Author

coder-Yash886 commented May 24, 2026

@sonukapoor please review the PR when you have free time

Copy link
Copy Markdown
Collaborator

@sonukapoor sonukapoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean extraction - the constants are well-named and the values match the originals exactly. No logic changes. Good contribution.

@sonukapoor sonukapoor merged commit 72e1f69 into OWASP:main May 25, 2026
6 checks passed
@coder-Yash886
Copy link
Copy Markdown
Contributor Author

Thanks for the kind words! Happy to keep contributing to the project.

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.

refactor: extract DEFAULT_BATCH_SIZE and DEFAULT_SEARCH_DEPTH to named constants

2 participants