Skip to content

Commit 719015e

Browse files
committed
chore: add linter
1 parent 48956fb commit 719015e

3 files changed

Lines changed: 55 additions & 12 deletions

File tree

‎.rubocop.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
inherit_from: []
2+
3+
inherit_gem:
4+
standard: config/base.yml
5+
6+
require:
7+
- standard
8+
9+
AllCops:
10+
TargetRubyVersion: 3.2
11+
SuggestExtensions: false
12+
Exclude:
13+
- '_site/**/*'

‎Gemfile‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3-
ruby '3.2.0'
3+
ruby "3.2.0"
44

5-
gem 'jekyll'
6-
gem 'puma'
7-
gem 'rack', '< 3'
8-
gem 'rack-jekyll', github: "adaoraul/rack-jekyll"
9-
gem 'rack-rewrite', '~> 1.5', '>= 1.5.1'
10-
gem 'rake'
11-
gem 'rouge'
5+
gem "jekyll"
6+
gem "puma"
7+
gem "rack", "< 3"
8+
gem "rack-jekyll", github: "adaoraul/rack-jekyll"
9+
gem "rack-rewrite", "~> 1.5", ">= 1.5.1"
10+
gem "rake"
11+
gem "rouge"
1212
gem "webrick", "~> 1.7"
13+
gem "standard", "< 2"
1314

1415
group :jekyll_plugins do
15-
gem 'jekyll-feed', '~> 0.6'
16-
gem 'jekyll-sitemap'
17-
gem 'jekyll-toc'
16+
gem "jekyll-feed", "~> 0.6"
17+
gem "jekyll-sitemap"
18+
gem "jekyll-toc"
1819
end

‎Gemfile.lock‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ GEM
1212
specs:
1313
addressable (2.8.1)
1414
public_suffix (>= 2.0.2, < 6.0)
15+
ast (2.4.2)
1516
colorator (1.1.0)
1617
concurrent-ruby (1.2.0)
1718
em-websocket (0.5.3)
@@ -51,10 +52,12 @@ GEM
5152
nokogiri (~> 1.12)
5253
jekyll-watch (2.2.1)
5354
listen (~> 3.0)
55+
json (2.6.3)
5456
kramdown (2.4.0)
5557
rexml
5658
kramdown-parser-gfm (1.1.0)
5759
kramdown (~> 2.0)
60+
language_server-protocol (3.17.0.3)
5861
liquid (4.0.4)
5962
listen (3.8.0)
6063
rb-fsevent (~> 0.10, >= 0.10.3)
@@ -65,6 +68,9 @@ GEM
6568
nokogiri (1.14.2)
6669
mini_portile2 (~> 2.8.0)
6770
racc (~> 1.4)
71+
parallel (1.22.1)
72+
parser (3.2.1.0)
73+
ast (~> 2.4.1)
6874
pathutil (0.16.2)
6975
forwardable-extended (~> 2.6)
7076
public_suffix (5.0.1)
@@ -73,16 +79,38 @@ GEM
7379
racc (1.6.2)
7480
rack (2.2.6.2)
7581
rack-rewrite (1.5.1)
82+
rainbow (3.1.1)
7683
rake (13.0.6)
7784
rb-fsevent (0.11.2)
7885
rb-inotify (0.10.1)
7986
ffi (~> 1.0)
87+
regexp_parser (2.7.0)
8088
rexml (3.2.5)
8189
rouge (4.1.0)
90+
rubocop (1.44.1)
91+
json (~> 2.3)
92+
parallel (~> 1.10)
93+
parser (>= 3.2.0.0)
94+
rainbow (>= 2.2.2, < 4.0)
95+
regexp_parser (>= 1.8, < 3.0)
96+
rexml (>= 3.2.5, < 4.0)
97+
rubocop-ast (>= 1.24.1, < 2.0)
98+
ruby-progressbar (~> 1.7)
99+
unicode-display_width (>= 2.4.0, < 3.0)
100+
rubocop-ast (1.26.0)
101+
parser (>= 3.2.1.0)
102+
rubocop-performance (1.15.2)
103+
rubocop (>= 1.7.0, < 2.0)
104+
rubocop-ast (>= 0.4.0)
105+
ruby-progressbar (1.11.0)
82106
safe_yaml (1.0.5)
83107
sass-embedded (1.58.3)
84108
google-protobuf (~> 3.21)
85109
rake (>= 10.0.0)
110+
standard (1.24.3)
111+
language_server-protocol (~> 3.17.0.2)
112+
rubocop (= 1.44.1)
113+
rubocop-performance (= 1.15.2)
86114
terminal-table (3.0.2)
87115
unicode-display_width (>= 1.1.1, < 3)
88116
unicode-display_width (2.4.2)
@@ -102,6 +130,7 @@ DEPENDENCIES
102130
rack-rewrite (~> 1.5, >= 1.5.1)
103131
rake
104132
rouge
133+
standard (< 2)
105134
webrick (~> 1.7)
106135

107136
RUBY VERSION

0 commit comments

Comments
 (0)