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

Add Cop.documentation_url #8579

Merged
merged 2 commits into from Aug 25, 2020
Merged

Add Cop.documentation_url #8579

merged 2 commits into from Aug 25, 2020

Conversation

marcandre
Copy link
Contributor

Add Cop.documentation_url. This returns a full URL for builtin cops, nil for others.

Should be easy for other cops (e.g. rubocop/rspec) to override and return their own URL.

@marcandre marcandre force-pushed the doc_url branch 2 times, most recently from 029fea1 to 3d3f05b Compare August 24, 2020 18:07
@marcandre
Copy link
Contributor Author

Includes #8578

@tas50
Copy link
Contributor

tas50 commented Aug 24, 2020

I've needed this for a while for cookstyle. Thanks @marcandre

@bbatsov
Copy link
Collaborator

bbatsov commented Aug 25, 2020

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants