Skip to content

Commit 8c11d4d

Browse files
committed
DEV: Enable ruby Syntax Tree format
1 parent 9f514a5 commit 8c11d4d

File tree

3 files changed

+43
-23
lines changed

3 files changed

+43
-23
lines changed

.github/workflows/plugin-linting.yml

+4
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ jobs:
5555
- name: Rubocop
5656
if: ${{ always() }}
5757
run: bundle exec rubocop .
58+
59+
- name: Syntax Tree
60+
if: ${{ always() }}
61+
run: RUBYOPT="-W0" bundle exec stree check --print-width=100 --plugins=plugin/trailing_comma **/*.rb Gemfile **/*.rake

Gemfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# frozen_string_literal: true
22

3-
source 'https://rubygems.org'
3+
source "https://rubygems.org"
44

55
group :development do
6-
gem 'rubocop-discourse'
7-
end
6+
gem "rubocop-discourse", git: "https://github.com/discourse/rubocop-discourse/", branch: "stree"
7+
gem "syntax_tree"
8+
end

Gemfile.lock

+35-20
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,49 @@
1+
GIT
2+
remote: https://github.com/discourse/rubocop-discourse/
3+
revision: 8afca6460a423a11a2e0bf1f7051b18dd9a7231b
4+
branch: stree
5+
specs:
6+
rubocop-discourse (2.5.0)
7+
rubocop (>= 1.1.0)
8+
rubocop-rspec (>= 2.0.0)
9+
110
GEM
211
remote: https://rubygems.org/
312
specs:
4-
ast (2.4.0)
5-
jaro_winkler (1.5.4)
6-
parallel (1.19.1)
7-
parser (2.7.1.2)
8-
ast (~> 2.4.0)
9-
rainbow (3.0.0)
13+
ast (2.4.2)
14+
json (2.6.2)
15+
parallel (1.22.1)
16+
parser (3.1.2.0)
17+
ast (~> 2.4.1)
18+
prettier_print (0.1.0)
19+
rainbow (3.1.1)
20+
regexp_parser (2.5.0)
1021
rexml (3.2.5)
11-
rubocop (0.82.0)
12-
jaro_winkler (~> 1.5.1)
22+
rubocop (1.32.0)
23+
json (~> 2.3)
1324
parallel (~> 1.10)
14-
parser (>= 2.7.0.1)
25+
parser (>= 3.1.0.0)
1526
rainbow (>= 2.2.2, < 4.0)
16-
rexml
27+
regexp_parser (>= 1.8, < 3.0)
28+
rexml (>= 3.2.5, < 4.0)
29+
rubocop-ast (>= 1.19.1, < 2.0)
1730
ruby-progressbar (~> 1.7)
18-
unicode-display_width (>= 1.4.0, < 2.0)
19-
rubocop-discourse (2.1.2)
20-
rubocop (>= 0.69.0)
21-
rubocop-rspec (>= 1.39.0)
22-
rubocop-rspec (1.39.0)
23-
rubocop (>= 0.68.1)
24-
ruby-progressbar (1.10.1)
25-
unicode-display_width (1.7.0)
31+
unicode-display_width (>= 1.4.0, < 3.0)
32+
rubocop-ast (1.19.1)
33+
parser (>= 3.1.1.0)
34+
rubocop-rspec (2.12.1)
35+
rubocop (~> 1.31)
36+
ruby-progressbar (1.11.0)
37+
syntax_tree (3.2.1)
38+
prettier_print
39+
unicode-display_width (2.2.0)
2640

2741
PLATFORMS
2842
ruby
2943

3044
DEPENDENCIES
31-
rubocop-discourse
45+
rubocop-discourse!
46+
syntax_tree
3247

3348
BUNDLED WITH
34-
2.1.4
49+
2.2.22

0 commit comments

Comments
 (0)