File tree 4 files changed +41
-26
lines changed
4 files changed +41
-26
lines changed Original file line number Diff line number Diff line change
1
+ --print-width=120
2
+
3
+ # Append * to .rb files so my conform.nvim config works plz :-)
4
+ #
5
+ # syntax_tree = {
6
+ # tmpfile_format = "$FILENAME.conform.tmp",
7
+ # args = { "write", "$RELATIVE_FILEPATH" },
8
+ # }
9
+ #
10
+ --ignore-files=build/*
11
+ --ignore-files=ext/*
12
+ --ignore-files=lib/abbrev.rb*
13
+ --ignore-files=lib/benchmark.rb*
14
+ --ignore-files=lib/cgi*
15
+ --ignore-files=lib/delegate.rb*
16
+ --ignore-files=lib/erb*
17
+ --ignore-files=lib/find.rb*
18
+ --ignore-files=lib/ipaddr.rb*
19
+ --ignore-files=lib/matrix*
20
+ --ignore-files=lib/natalie/compiler/binding_gen.rb*
21
+ --ignore-files=lib/pp.rb*
22
+ --ignore-files=lib/prettyprint.rb*
23
+ --ignore-files=lib/random/formatter.rb*
24
+ --ignore-files=lib/shellwords.rb*
25
+ --ignore-files=lib/uri*
26
+ --ignore-files=spec/*
27
+ --ignore-files=test/support/version.rb*
28
+
29
+ --plugins=plugin/trailing_comma,plugin/single_quotes,plugin/disable_auto_ternary
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ gem 'rake'
6
6
7
7
group :development do
8
8
gem 'stackprof'
9
+ gem 'syntax_tree'
9
10
end
10
11
11
12
group :run_all_specs , optional : true do
Original file line number Diff line number Diff line change 2
2
remote: https://rubygems.org/
3
3
specs:
4
4
ansi (1.5.0 )
5
- ast (2.4.2 )
6
5
builder (3.3.0 )
7
6
concurrent-ruby (1.2.2 )
8
- json (2.9.1 )
9
- language_server-protocol (3.17.0.3 )
10
7
minitest (5.25.4 )
11
8
minitest-reporters (1.7.1 )
12
9
ansi
13
10
builder
14
11
minitest (>= 5.0 )
15
12
ruby-progressbar
16
- parallel (1.26.3 )
17
- parser (3.3.6.0 )
18
- ast (~> 2.4.1 )
19
- racc
20
- racc (1.8.1 )
21
- rainbow (3.1.1 )
13
+ prettier_print (1.2.1 )
22
14
rake (13.1.0 )
23
- regexp_parser (2.9.3 )
24
- rubocop (1.69.2 )
25
- json (~> 2.3 )
26
- language_server-protocol (>= 3.17.0 )
27
- parallel (~> 1.10 )
28
- parser (>= 3.3.0.2 )
29
- rainbow (>= 2.2.2 , < 4.0 )
30
- regexp_parser (>= 2.9.3 , < 3.0 )
31
- rubocop-ast (>= 1.36.2 , < 2.0 )
32
- ruby-progressbar (~> 1.7 )
33
- unicode-display_width (>= 2.4.0 , < 4.0 )
34
- rubocop-ast (1.37.0 )
35
- parser (>= 3.3.1.0 )
36
15
ruby-progressbar (1.13.0 )
37
16
stackprof (0.2.25 )
38
- unicode-display_width (3.1.2 )
39
- unicode-emoji (~> 4.0 , >= 4.0.4 )
40
- unicode-emoji (4.0.4 )
17
+ syntax_tree (6.2.0 )
18
+ prettier_print (>= 1.2.0 )
41
19
42
20
PLATFORMS
43
21
arm64-darwin-20
@@ -56,8 +34,8 @@ DEPENDENCIES
56
34
minitest
57
35
minitest-reporters
58
36
rake
59
- rubocop
60
37
stackprof
38
+ syntax_tree
61
39
62
40
BUNDLED WITH
63
41
2.3.26
Original file line number Diff line number Diff line change 1
1
require_relative './lib/natalie/compiler/flags'
2
+ require 'syntax_tree/rake_tasks'
2
3
3
4
task default : :build
4
5
@@ -694,3 +695,9 @@ def current_build_mode
694
695
695
696
File . read ( '.build' ) . strip
696
697
end
698
+
699
+ SyntaxTree ::Rake ::CheckTask . new
700
+ SyntaxTree ::Rake ::WriteTask . new do |t |
701
+ t . source_files = FileList [ %w[ Gemfile Rakefile lib/**/*.rb test/**/*.rb ] ]
702
+ # additional options in .streerc are respected
703
+ end
You can’t perform that action at this time.
0 commit comments