Skip to main content

Welcome

Thank you for considering contributing to Rule Engine JS! This guide will help you get started.

Setup

Clone, install, and verify

Contribute

Bug fixes, features, docs

Test

Write and run tests

Submit

Create pull requests

Quick Start

1. Fork and Clone

2. Install Dependencies

3. Development Commands


Project Structure


Contribution Types

Process:
  1. Search existing issues
  2. Create test case that reproduces bug
  3. Fix the bug
  4. Ensure all tests pass
  5. Update docs if needed

Commit Convention

We follow Conventional Commits:
Types:
  • feat: New feature
  • fix: Bug fix
  • docs: Documentation
  • style: Code style (formatting)
  • refactor: Code refactoring
  • perf: Performance improvement
  • test: Adding/modifying tests
  • chore: Maintenance tasks
  • security: Security fixes
Examples:

Code Standards

JavaScript Style

Error Handling


Testing

Test Structure

Test Requirements

  • 100% coverage for new features
  • Test edge cases - null, undefined, empty
  • Test errors - invalid inputs
  • Test performance - no regressions

Pull Request Process

Before Creating PR

PR Checklist

  • Tests pass locally
  • Code follows style guidelines
  • Documentation updated
  • Commit messages follow convention
  • No breaking changes (or documented)
  • Examples added (if applicable)

PR Template


Security

Reporting Vulnerabilities: Do not open public issues for security vulnerabilities. Email: crafts69guy@gmail.com Include:
  1. Reproduction steps
  2. Impact assessment
  3. Possible fixes (if known)
Security Testing:

Issue Guidelines

Before Creating Issue

  1. Search existing issues - Avoid duplicates
  2. Check documentation - Verify not covered
  3. Test latest version - Ensure issue exists
  4. Create minimal reproduction - Simplest case

Bug Report

Feature Request