Skip to content

Feature/intercom token detection#6

Merged
StephenJarso merged 3 commits into
mainfrom
feature/intercom-token-detection
Jun 21, 2026
Merged

Feature/intercom token detection#6
StephenJarso merged 3 commits into
mainfrom
feature/intercom-token-detection

Conversation

@StephenJarso

Copy link
Copy Markdown
Owner

What does this PR do?

Describe the changes in this PR.

Which detectors does it affect?

  • Secrets
  • Environment
  • Auth
  • Config
  • New detector: _______

Testing done

  • Unit tests added
  • Manually tested with a real codebase
  • All existing tests pass

Checklist

  • Code follows the style guide
  • Self-review completed
  • Documentation updated (if applicable)
  • CHANGELOG.md updated under [Unreleased]

Screenshots (if applicable)

Add screenshots to help explain your changes.

Add comprehensive tests for the Finding struct in pkg/types/finding_test.go
- Test finding creation with all fields
- Test zero value initialization
- Test all severity levels
Add SetOutput method to allow changing the output writer for the logger
- Enables testing with buffer output
- Allows redirecting logs to files or other destinations
Add Validate method to Config struct to ensure configuration values are valid
- Validates severity_threshold is one of: low, medium, high, critical
- Validates max_file_size is positive
- Add config_validation_test.go with comprehensive test cases
@StephenJarso StephenJarso self-assigned this Jun 21, 2026
@StephenJarso StephenJarso added the good first issue Good for newcomers label Jun 21, 2026
@StephenJarso StephenJarso merged commit 93338bc into main Jun 21, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant