Skip to content

Add fuzzing suite and ESLint configuration #28

Open
marcochan11 wants to merge 1 commit intoCSS360-2026-Winter:mainfrom
marcochan11:hotel
Open

Add fuzzing suite and ESLint configuration #28
marcochan11 wants to merge 1 commit intoCSS360-2026-Winter:mainfrom
marcochan11:hotel

Conversation

@marcochan11
Copy link
Collaborator

This PR implements fuzzing.

  • Added src/fuzz/fuzz-bot.js: A specialized script that dynamically loads all slash commands and injects "garbage" data (null, undefined, SQL injection strings, massive text blobs) to test for unhandled exceptions.
  • Added eslint.config.mjs: Configured the static analyzer to identify code smells and technical debt across the project.
  • **Updated package.json: Added necessary dependencies for the linter.

Result:
The fuzz-bot.js script successfully identified 8 crashes in the /meme command when handling invalid inputs (e.g., null, undefined). The script confirms that other commands handle edge cases more gracefully.

How to Test

  1. Run npm install to get the new linter dependencies.
  2. Run node src/fuzz/fuzz-bot.js to see the automated crash report.

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.

1 participant