Skip to content

AllCops:EnabledByDefault #4005

Closed
Closed
@betesh

Description

@betesh
Contributor

Rubocop should have an EnabledByDefault option, just like there's a DisabledByDefault option.

If I want to Enable all cops, I need to read through all the docs to figure out which ones are disabled by default. It would be far more efficient if I could simply configure Rubocop to enable all of them.

Also, even if I've already enabled all cops that are disabled by default, if a new cop is added in a later version, I need to read through the Change Log to know about it.

Activity

bbatsov

bbatsov commented on Feb 3, 2017

@bbatsov
Collaborator

Sounds like a reasonable idea to me.

betesh

betesh commented on Feb 3, 2017

@betesh
ContributorAuthor

Great, I'm working on a PR

betesh

betesh commented on Feb 3, 2017

@betesh
ContributorAuthor

@bbatsov Can you take a look at the failing test on the PR (#4014)? I think it's a bug in the existing code but I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bbatsov@betesh

        Issue actions

          AllCops:EnabledByDefault · Issue #4005 · rubocop/rubocop