-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16518 from issyl0/rubocop-md
rubocop: Try out `rubocop-md` for linting the code in our docs
- Loading branch information
Showing
15 changed files
with
184 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
require: | ||
- ./Homebrew/rubocops.rb | ||
- rubocop-md | ||
- rubocop-performance | ||
- rubocop-rspec | ||
- rubocop-sorbet | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
inherit_from: ../Library/.rubocop.yml | ||
|
||
AllCops: | ||
Exclude: | ||
- Gemfile | ||
- ".mdl*.rb" | ||
- Rakefile | ||
- "_site/**/*" | ||
- Manpage.md | ||
|
||
# These are included in docs deliberately to show what | ||
# `brew create` does and what the user should replace. | ||
FormulaAudit/Comments: | ||
Enabled: false | ||
|
||
# This forces us to use dummy descriptions/homepages in example formulae which we don't need to clutter the docs with. | ||
FormulaAudit/Desc: | ||
Enabled: false | ||
FormulaAudit/Homepage: | ||
Enabled: false | ||
|
||
Layout/LineLength: | ||
Exclude: | ||
- Bottles.md # The bottle block line length is long in its full form. | ||
|
||
# Apparently Casks are allowed to have constant definitions in blocks and we document this. | ||
Lint/ConstantDefinitionInBlock: | ||
Enabled: false | ||
|
||
# A fake regexp is deliberately documented for `inreplace` in the Formula Cookbook. | ||
Style/RedundantRegexpArgument: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.