Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Rubocop DSL RBI compiler #1046

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Commits on Jan 29, 2024

  1. Add extenders_of helper method

    This method is similar to `descendants_of`, but returns all modules
    which extend the given module. That is, all modules (including classes),
    whose singleton class (or parent thereof) includes the given module.
    sambostock committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    ef1eff5 View commit details
    Browse the repository at this point in the history
  2. Implement RuboCop DSL compiler

    This generates RBI signatures for use of Rubocop's Node Pattern macros
    (`def_node_matcher` & `def_node_search`).
    sambostock committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    ca0be67 View commit details
    Browse the repository at this point in the history
  3. Rely on requiring rubocop-ast in extension

    Extensions are loaded before the host application, and we need to ensure
    we patch the class before the macros are used.
    sambostock committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    3c9ee4b View commit details
    Browse the repository at this point in the history