mirror of
https://github.com/Homebrew/brew.git
synced 2024-11-25 16:33:34 +08:00
docs: brew style --fix
This commit is contained in:
parent
349627e3dd
commit
1b8bddd8bf
@ -1,6 +1,9 @@
|
||||
rule 'HB034', 'Bare unstyled URL used' do
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
rule "HB034", "Bare unstyled URL used" do
|
||||
tags :links, :url
|
||||
aliases 'no-bare-unstyled-urls'
|
||||
aliases "no-bare-unstyled-urls"
|
||||
check do |doc|
|
||||
doc.matching_text_element_lines(%r{(?<=\s)https?://})
|
||||
end
|
||||
|
@ -1,8 +1,11 @@
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
all
|
||||
rule 'MD007', indent: 2 # Unordered list indentation
|
||||
rule 'MD026', punctuation: ',;:' # Trailing punctuation in header
|
||||
exclude_rule 'MD013' # Line length
|
||||
exclude_rule 'MD029' # Ordered list item prefix
|
||||
exclude_rule 'MD033' # Inline HTML
|
||||
exclude_rule 'MD034' # Bare URL used (replaced by HB034)
|
||||
exclude_rule 'MD046' # Code block style
|
||||
rule "MD007", indent: 2 # Unordered list indentation
|
||||
rule "MD026", punctuation: ",;:" # Trailing punctuation in header
|
||||
exclude_rule "MD013" # Line length
|
||||
exclude_rule "MD029" # Ordered list item prefix
|
||||
exclude_rule "MD033" # Inline HTML
|
||||
exclude_rule "MD034" # Bare URL used (replaced by HB034)
|
||||
exclude_rule "MD046" # Code block style
|
||||
|
@ -2,9 +2,6 @@ inherit_from: ../Library/.rubocop.yml
|
||||
|
||||
AllCops:
|
||||
Exclude:
|
||||
- Gemfile
|
||||
- ".mdl*.rb"
|
||||
- Rakefile
|
||||
- "_site/**/*"
|
||||
- Manpage.md
|
||||
- "vendor/**/*"
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
ruby file: ".ruby-version"
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rake"
|
||||
|
||||
task default: :build
|
||||
|
Loading…
Reference in New Issue
Block a user