Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add deep links into the styleguide for each cop inconfig/default.yml #133

Open
@issyl0

Description

@issyl0

In#132 we linked each styleguide rule to its corresponding RuboCop rule(s).

RuboCop has functionality where aStyleGuide: <link> config for each cop will show the link to the styleguide when there's a violation or a user just wants to know what cops are enabled. We haven't added all of these cross-references yet, and we should finish off.

For each of the rules inthe styleguide, addStyleGuide: under its cop name inconfig/default.yml. If it doesn't have a config, add the full stanza. For example:

# This rule is specifically disabled, but we still want it to have a styleguide link.Layout/LineLength:Enabled:falseStyleGuide:https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#line-length# Pretend this rule didn't exist in the config file before, as an example. Since it's a RuboCop default cop and doesn't need any special configuration. But, we still want a styleguide link, so add the whole rule name.Layout/EmptyLineBetweenDefs:StyleGuide:https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#empty-lines-def

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp