Skip to content

Commit

Permalink
Add doc for disabling comment style
Browse files Browse the repository at this point in the history
  • Loading branch information
koic authored and bbatsov committed May 21, 2020
1 parent 82ded12 commit 119d695
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manual/configuration.md
Expand Up @@ -629,6 +629,12 @@ Running `rubocop --[safe-]auto-correct --disable-uncorrectable` will
create comments to disable all offenses that can't be automatically
corrected.

Do not write anything other than cop name in the disabling comment. E.g.:

```ruby
# rubocop:disable Layout/LineLength --This is a bad comment that includes other than cop name.
```

## Setting the style guide URL

You can specify the base URL of the style guide using `StyleGuideBaseURL`.
Expand Down

0 comments on commit 119d695

Please sign in to comment.