Skip to content

Commit

Permalink
docs: brew style --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jun 13, 2024
1 parent abcccac commit 67dcd4a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
7 changes: 5 additions & 2 deletions docs/.mdl_ruleset.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
17 changes: 10 additions & 7 deletions docs/.mdl_style.rb
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions docs/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ inherit_from: ../Library/.rubocop.yml

AllCops:
Exclude:
- Gemfile
- ".mdl*.rb"
- Rakefile
- "_site/**/*"
- Manpage.md
- "vendor/**/*"
Expand Down
2 changes: 2 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

ruby file: ".ruby-version"
Expand Down
2 changes: 2 additions & 0 deletions docs/Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "rake"

task default: :build
Expand Down

0 comments on commit 67dcd4a

Please sign in to comment.