File tree Expand file tree Collapse file tree 7 files changed +23
-8
lines changed Expand file tree Collapse file tree 7 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 55
55
- name : Rubocop
56
56
if : ${{ !cancelled() }}
57
57
run : bundle exec rubocop .
58
+
59
+ - name : Syntax Tree
60
+ if : ${{ !cancelled() }}
61
+ run : |
62
+ if test -f .streerc; then
63
+ bundle exec stree check Gemfile $(git ls-files '*.rb') $(git ls-files '*.rake')
64
+ else
65
+ echo "Stree config not detected for this repository. Skipping."
66
+ fi
Original file line number Diff line number Diff line change 80
80
81
81
- name : Get yarn cache directory
82
82
id : yarn-cache-dir
83
- run : echo "::set-output name= dir:: $(yarn cache dir)"
83
+ run : echo "dir= $(yarn cache dir)" >> $GITHUB_OUTPUT
84
84
85
85
- name : Yarn cache
86
86
uses : actions/cache@v3
@@ -130,7 +130,7 @@ jobs:
130
130
shell : bash
131
131
run : |
132
132
if [ 0 -lt $(find plugins/${{ github.event.repository.name }}/spec -type f -name "*.rb" 2> /dev/null | wc -l) ]; then
133
- echo "::set-output name= files_exist:: true"
133
+ echo "files_exist= true" >> $GITHUB_OUTPUT
134
134
fi
135
135
136
136
- name : Plugin RSpec
@@ -142,7 +142,7 @@ jobs:
142
142
shell : bash
143
143
run : |
144
144
if [ 0 -lt $(find plugins/${{ github.event.repository.name }}/test/javascripts -type f \( -name "*.js" -or -name "*.es6" \) 2> /dev/null | wc -l) ]; then
145
- echo "::set-output name= files_exist:: true"
145
+ echo "files_exist= true" >> $GITHUB_OUTPUT
146
146
fi
147
147
148
148
- name : Plugin QUnit
Original file line number Diff line number Diff line change 1
1
inherit_gem :
2
- rubocop-discourse : default .yml
2
+ rubocop-discourse : stree-compat .yml
Original file line number Diff line number Diff line change
1
+ --print-width=100
2
+ --plugins=plugin/trailing_comma
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
- source ' https://rubygems.org'
3
+ source " https://rubygems.org"
4
4
5
5
group :development do
6
- gem 'rubocop-discourse'
6
+ gem "rubocop-discourse"
7
+ gem "syntax_tree"
7
8
end
Original file line number Diff line number Diff line change 6
6
parallel (1.22.1 )
7
7
parser (3.1.2.1 )
8
8
ast (~> 2.4.1 )
9
+ prettier_print (1.2.0 )
9
10
rainbow (3.1.1 )
10
11
regexp_parser (2.6.0 )
11
12
rexml (3.2.5 )
27
28
rubocop-rspec (2.13.2 )
28
29
rubocop (~> 1.33 )
29
30
ruby-progressbar (1.11.0 )
31
+ syntax_tree (5.1.0 )
32
+ prettier_print (>= 1.2.0 )
30
33
unicode-display_width (2.3.0 )
31
34
32
35
PLATFORMS
@@ -39,6 +42,7 @@ PLATFORMS
39
42
40
43
DEPENDENCIES
41
44
rubocop-discourse
45
+ syntax_tree
42
46
43
47
BUNDLED WITH
44
48
2.3.10
Original file line number Diff line number Diff line change 9
9
10
10
enabled_site_setting :plugin_name_enabled
11
11
12
- after_initialize do
13
- end
12
+ after_initialize { }
You can’t perform that action at this time.
0 commit comments