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

[Fix #11018] Add AllowedMethods and AllowedPatterns for Lint/NestedMethodDefinition #11019

Commits on Sep 26, 2022

  1. [Fix rubocop#11018] Add AllowedMethods and AllowedPatterns for `L…

    …int/NestedMethodDefinition`
    
    Fixes rubocop#11018 and rubocop#8860.
    
    This PR adds `AllowedMethods` and `AllowedPatterns` for `Lint/NestedMethodDefinition`.
    For example, `has_many`, `extending`, and other Rails APIs can be specified in RuboCop Rails config.
    
    `class_eval`, `instance_eval`, `module_eval`, `class_exec`, `instance_exec`, and
    `module_exec` leave hard-coded for core methods.
    koic committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    c0d25b6 View commit details
    Browse the repository at this point in the history