File tree Expand file tree Collapse file tree 4 files changed +24
-11
lines changed Expand file tree Collapse file tree 4 files changed +24
-11
lines changed Original file line number Diff line number Diff line change
1
+ require : rubocop-jekyll
1
2
inherit_gem :
2
- jekyll : .rubocop.yml
3
+ rubocop- jekyll : .rubocop.yml
3
4
4
5
AllCops :
5
6
TargetRubyVersion : 2.3
6
7
Exclude :
7
8
- vendor/**/*
9
+ Layout/FirstParameterIndentation :
10
+ Exclude :
11
+ - spec/**/*
12
+ Metrics/BlockLength :
13
+ Exclude :
14
+ - spec/**/*
15
+ Metrics/LineLength :
16
+ Exclude :
17
+ - spec/**/*
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def mentionify(doc)
43
43
def filter_with_mention ( src )
44
44
filters [ src ] ||= HTML ::Pipeline . new ( [
45
45
HTML ::Pipeline ::MentionFilter ,
46
- ] , { :base_url => src , :username_pattern => mention_username_pattern } )
46
+ ] , :base_url => src , :username_pattern => mention_username_pattern )
47
47
end
48
48
49
49
def mention_username_pattern
@@ -77,8 +77,8 @@ def mention_base(config = {})
77
77
mention_config . fetch ( "base_url" , default_mention_base )
78
78
else
79
79
raise InvalidJekyllMentionConfig ,
80
- "Your jekyll-mentions config has to either be a" \
81
- " string or a hash. It's a #{ mention_config . class } right now."
80
+ "Your jekyll-mentions config has to either be a string or a hash. " \
81
+ " It's a #{ mention_config . class } right now."
82
82
end
83
83
end
84
84
@@ -117,6 +117,6 @@ def default_mention_base
117
117
end
118
118
end
119
119
120
- Jekyll ::Hooks . register %i[ pages documents ] , :post_render do |doc |
120
+ Jekyll ::Hooks . register [ : pages, : documents] , :post_render do |doc |
121
121
Jekyll ::Mentions . mentionify ( doc ) if Jekyll ::Mentions . mentionable? ( doc )
122
122
end
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
script/test
6
+ script/fmt
6
7
bundle exec rake build
Original file line number Diff line number Diff line change 5
5
6
6
let ( :config_overrides ) { { } }
7
7
let ( :configs ) do
8
- Jekyll . configuration ( config_overrides . merge ( {
9
- "skip_config_files" => false ,
10
- "collections" => { "docs" => { "output" => true } } ,
11
- "source" => fixtures_dir ,
12
- "destination" => fixtures_dir ( "_site" ) ,
13
- } ) )
8
+ Jekyll . configuration (
9
+ config_overrides . merge (
10
+ "skip_config_files" => false ,
11
+ "collections" => { "docs" => { "output" => true } } ,
12
+ "source" => fixtures_dir ,
13
+ "destination" => fixtures_dir ( "_site" )
14
+ )
15
+ )
14
16
end
15
17
let ( :mentions ) { described_class }
16
18
let ( :default_src ) { "https://github.com" }
You can’t perform that action at this time.
0 commit comments