File tree 5 files changed +65
-35
lines changed
5 files changed +65
-35
lines changed Original file line number Diff line number Diff line change 28
28
run : bundle exec rake test
29
29
- name : RuboCop
30
30
run : bundle exec rake lint
31
- if : matrix.ruby == '3.0'
Original file line number Diff line number Diff line change 1
1
require : rubocop-rspec
2
2
3
3
AllCops :
4
+ NewCops : enable
4
5
Exclude :
5
6
- ext/pg_query/extconf.rb
6
7
- vendor/**/*
@@ -9,46 +10,59 @@ AllCops:
9
10
- lib/pg_query/json_field_names.rb
10
11
- Rakefile
11
12
12
- Layout/AlignHash :
13
+ Layout/HashAlignment :
13
14
Exclude :
14
15
- spec/**/*
15
16
16
- Style/WordArray :
17
+ Layout/SpaceAroundOperators :
17
18
Exclude :
18
19
- spec/**/*
19
20
20
- Style/StringLiterals :
21
+ Layout/SpaceInsideHashLiteralBraces :
21
22
Exclude :
22
23
- spec/**/*
23
24
24
- Layout/SpaceAroundOperators :
25
+ Style/WordArray :
25
26
Exclude :
26
27
- spec/**/*
27
28
28
- Layout/SpaceInsideHashLiteralBraces :
29
+ Style/StringLiterals :
29
30
Exclude :
30
31
- spec/**/*
31
32
32
- Performance/RegexpMatch :
33
- Exclude :
34
- - ext/pg_query/extconf.rb
33
+ Layout/LineLength :
34
+ Enabled : false
35
+
36
+ Layout/EmptyLineAfterGuardClause :
37
+ Enabled : false
38
+
39
+ Style/FormatStringToken :
40
+ Enabled : false
41
+
42
+ Style/StringConcatenation :
43
+ Enabled : false
44
+
45
+ Style/IfUnlessModifier :
46
+ Enabled : false
35
47
36
48
Style/FrozenStringLiteralComment :
37
49
Enabled : false
38
50
39
51
Style/SafeNavigation :
40
52
Enabled : false
41
53
42
- Documentation :
54
+ Style/ Documentation :
43
55
Enabled : false
44
56
45
- LineLength :
57
+ # extend self preserves private methods,
58
+ # module_function buggily removes them.
59
+ Style/ModuleFunction :
46
60
Enabled : false
47
61
48
- MethodLength :
62
+ Metrics/ MethodLength :
49
63
Enabled : false
50
64
51
- ClassLength :
65
+ Metrics/ ClassLength :
52
66
Enabled : false
53
67
54
68
Metrics/AbcSize :
@@ -75,9 +89,16 @@ RSpec/NestedGroups:
75
89
RSpec/DescribedClass :
76
90
Enabled : false
77
91
78
- # extend self preserves private methods,
79
- # module_function buggily removes them.
80
- Style/ModuleFunction :
92
+ RSpec/ContextWording :
93
+ Enabled : false
94
+
95
+ RSpec/MatchArray :
96
+ Enabled : false
97
+
98
+ RSpec/NamedSubject :
99
+ Enabled : false
100
+
101
+ RSpec/SpecFilePathFormat :
81
102
Enabled : false
82
103
83
104
Lint/ImplicitStringConcatenation :
Original file line number Diff line number Diff line change 4
4
5
5
gem 'rake-compiler' , '~> 0'
6
6
gem 'rspec' , '~> 3.0'
7
- gem 'rubocop' , '0.49.1 '
8
- gem 'rubocop-rspec' , '1.15.1 '
7
+ gem 'rubocop' , '~> 1.71 '
8
+ gem 'rubocop-rspec' , '~> 3.4 '
9
9
gem 'simplecov' , '~> 0'
Original file line number Diff line number Diff line change 14
14
google-protobuf (4.29.3 )
15
15
bigdecimal
16
16
rake (>= 13 )
17
+ json (2.9.1 )
18
+ language_server-protocol (3.17.0.4 )
17
19
parallel (1.26.3 )
18
- parser (2.7.2 .0 )
20
+ parser (3.3.7 .0 )
19
21
ast (~> 2.4.1 )
20
- powerpack ( 0.1.3 )
21
- rainbow ( 2.2.2 )
22
- rake
22
+ racc
23
+ racc ( 1.8.1 )
24
+ rainbow ( 3.1.1 )
23
25
rake (13.2.1 )
24
26
rake-compiler (0.9.9 )
25
27
rake
28
+ regexp_parser (2.10.0 )
26
29
rspec (3.13.0 )
27
30
rspec-core (~> 3.13.0 )
28
31
rspec-expectations (~> 3.13.0 )
36
39
diff-lcs (>= 1.2.0 , < 2.0 )
37
40
rspec-support (~> 3.13.0 )
38
41
rspec-support (3.13.2 )
39
- rubocop (0.49.1 )
42
+ rubocop (1.71.2 )
43
+ json (~> 2.3 )
44
+ language_server-protocol (>= 3.17.0 )
40
45
parallel (~> 1.10 )
41
- parser (>= 2.3.3.1 , < 3.0 )
42
- powerpack (~> 0.1 )
43
- rainbow (>= 1.99.1 , < 3.0 )
46
+ parser (>= 3.3.0.2 )
47
+ rainbow (>= 2.2.2 , < 4.0 )
48
+ regexp_parser (>= 2.9.3 , < 3.0 )
49
+ rubocop-ast (>= 1.38.0 , < 2.0 )
44
50
ruby-progressbar (~> 1.7 )
45
- unicode-display_width (~> 1.0 , >= 1.0.1 )
46
- rubocop-rspec (1.15.1 )
47
- rubocop (>= 0.42.0 )
51
+ unicode-display_width (>= 2.4.0 , < 4.0 )
52
+ rubocop-ast (1.38.0 )
53
+ parser (>= 3.3.1.0 )
54
+ rubocop-rspec (3.4.0 )
55
+ rubocop (~> 1.61 )
48
56
ruby-progressbar (1.13.0 )
49
57
simplecov (0.22.0 )
50
58
docile (~> 1.1 )
51
59
simplecov-html (~> 0.11 )
52
60
simplecov_json_formatter (~> 0.1 )
53
61
simplecov-html (0.13.1 )
54
62
simplecov_json_formatter (0.1.4 )
55
- unicode-display_width (1.8.0 )
63
+ unicode-display_width (3.1.4 )
64
+ unicode-emoji (~> 4.0 , >= 4.0.4 )
65
+ unicode-emoji (4.0.4 )
56
66
57
67
PLATFORMS
58
68
ruby
@@ -61,8 +71,8 @@ DEPENDENCIES
61
71
pg_query !
62
72
rake-compiler (~> 0 )
63
73
rspec (~> 3.0 )
64
- rubocop (= 0.49.1 )
65
- rubocop-rspec (= 1.15.1 )
74
+ rubocop (~> 1.71 )
75
+ rubocop-rspec (~> 3.4 )
66
76
simplecov (~> 0 )
67
77
68
78
BUNDLED WITH
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ def load_objects! # rubocop:disable Metrics/CyclomaticComplexity
174
174
# The following statement types are DDL (changing table structure)
175
175
when :alter_table_stmt
176
176
case statement . alter_table_stmt . objtype
177
- when :OBJECT_INDEX # Index # rubocop:disable Lint/EmptyWhen
177
+ when :OBJECT_INDEX # Index
178
178
# ignore `ALTER INDEX index_name`
179
179
else
180
180
from_clause_items << { item : PgQuery ::Node . new ( range_var : statement . alter_table_stmt . relation ) , type : :ddl }
@@ -228,11 +228,11 @@ def load_objects! # rubocop:disable Metrics/CyclomaticComplexity
228
228
when :grant_stmt
229
229
objects = statement . grant_stmt . objects
230
230
case statement . grant_stmt . objtype
231
- when :OBJECT_COLUMN # Column # rubocop:disable Lint/EmptyWhen
231
+ when :OBJECT_COLUMN # Column
232
232
# FIXME
233
233
when :OBJECT_TABLE # Table
234
234
from_clause_items += objects . map { |o | { item : o , type : :ddl } }
235
- when :OBJECT_SEQUENCE # Sequence # rubocop:disable Lint/EmptyWhen
235
+ when :OBJECT_SEQUENCE # Sequence
236
236
# FIXME
237
237
end
238
238
when :lock_stmt
You can’t perform that action at this time.
0 commit comments