DEV: Enable ruby Syntax Tree format

This commit is contained in:
Rafael dos Santos Silva 2022-07-25 14:25:13 -03:00
parent 9f514a50ca
commit 8c11d4d6ed
3 changed files with 43 additions and 23 deletions

View File

@ -55,3 +55,7 @@ jobs:
- name: Rubocop - name: Rubocop
if: ${{ always() }} if: ${{ always() }}
run: bundle exec rubocop . run: bundle exec rubocop .
- name: Syntax Tree
if: ${{ always() }}
run: RUBYOPT="-W0" bundle exec stree check --print-width=100 --plugins=plugin/trailing_comma **/*.rb Gemfile **/*.rake

View File

@ -1,7 +1,8 @@
# frozen_string_literal: true # frozen_string_literal: true
source 'https://rubygems.org' source "https://rubygems.org"
group :development do group :development do
gem 'rubocop-discourse' gem "rubocop-discourse", git: "https://github.com/discourse/rubocop-discourse/", branch: "stree"
end gem "syntax_tree"
end

View File

@ -1,34 +1,49 @@
GIT
remote: https://github.com/discourse/rubocop-discourse/
revision: 8afca6460a423a11a2e0bf1f7051b18dd9a7231b
branch: stree
specs:
rubocop-discourse (2.5.0)
rubocop (>= 1.1.0)
rubocop-rspec (>= 2.0.0)
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
ast (2.4.0) ast (2.4.2)
jaro_winkler (1.5.4) json (2.6.2)
parallel (1.19.1) parallel (1.22.1)
parser (2.7.1.2) parser (3.1.2.0)
ast (~> 2.4.0) ast (~> 2.4.1)
rainbow (3.0.0) prettier_print (0.1.0)
rainbow (3.1.1)
regexp_parser (2.5.0)
rexml (3.2.5) rexml (3.2.5)
rubocop (0.82.0) rubocop (1.32.0)
jaro_winkler (~> 1.5.1) json (~> 2.3)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 2.7.0.1) parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
rexml regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.19.1, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0) unicode-display_width (>= 1.4.0, < 3.0)
rubocop-discourse (2.1.2) rubocop-ast (1.19.1)
rubocop (>= 0.69.0) parser (>= 3.1.1.0)
rubocop-rspec (>= 1.39.0) rubocop-rspec (2.12.1)
rubocop-rspec (1.39.0) rubocop (~> 1.31)
rubocop (>= 0.68.1) ruby-progressbar (1.11.0)
ruby-progressbar (1.10.1) syntax_tree (3.2.1)
unicode-display_width (1.7.0) prettier_print
unicode-display_width (2.2.0)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
rubocop-discourse rubocop-discourse!
syntax_tree
BUNDLED WITH BUNDLED WITH
2.1.4 2.2.22