Welcome in contributing to Detect-It-Easy!
Curiosity is key to driving the project forward. If you have questions or ideas for improvement, don't hesitate to reach out. You can start a discussion by opening a new issue.
To report bugs and errors, please open a new issue on GitHub. Include detailed steps to reproduce the bug, along with any relevant stack traces, error messages, or affected files.
If you have ideas for new features or enhancements, feel free to open a new issue to discuss them. Your input is valuable in shaping the future of the project.
To maintain code quality and consistency across the project, please adhere to the following guidelines when contributing code:
- Language and Style: The project primarily uses DiE-JS. Follow the existing code style.
- Formatting: Use consistent indentation (4 spaces, no tabs).
- Commits: Write descriptive commit messages. Use the imperative mood (e.g., "Fix bug in file parser" instead of "Fixed bug").
- Testing: Include unit tests for new features or bug fixes where applicable. Ensure they are compilable!
We welcome contributions to translations and code to make Detect-It-Easy accessible to a global audience:
- Translations: If you'd like to add or update translations, fork the XTranslation repository and work on the relevant language files (typically in the
dicts/directory). Ensure translations are accurate and culturally appropriate. Test them in the application to verify context. Use poedit for translating languages! - Process: Submit changes via a pull request (see below).
- Quality: Proofread your contributions for grammar and clarity. Maintain consistency with the existing tone and style.
- Fork the repository on GitHub.
- Create a new branch for your changes (e.g.,
feature/new-detection-ruleorfix/bug-123). - Make your changes, ensuring they follow the coding standards and guidelines above.
- Test your changes thoroughly.
- Commit your changes with a clear, descriptive message.
- Push your branch to your fork and open a pull request against the main branch.
- In the pull request description, explain what changes you made and why. Reference any related issues.
- Be responsive to feedback from maintainers and make requested revisions.
Pull requests will be reviewed, and once approved, merged into the project. Thank you for helping improve Detect-It-Easy!