File tree Expand file tree Collapse file tree 3 files changed +47
-4
lines changed Expand file tree Collapse file tree 3 files changed +47
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : RuboCop
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ schedule :
7
+ - cron : " 0 0 * * *"
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v1
16
+ - name : Set up Ruby 2.6
17
+ uses : actions/setup-ruby@v1
18
+ with :
19
+ ruby-version : 2.6.x
20
+ - name : Install required package
21
+ run : |
22
+ sudo apt-get install alien
23
+ - name : Download Oracle instant client
24
+ run : |
25
+ wget -q https://download.oracle.com/otn_software/linux/instantclient/193000/oracle-instantcli
26
+ ent19.3-basic-19.3.0.0.0-1.x86_64.rpm
27
+ wget -q https://download.oracle.com/otn_software/linux/instantclient/193000/oracle-instantcli
28
+ ent19.3-sqlplus-19.3.0.0.0-1.x86_64.rpm
29
+ wget -q https://download.oracle.com/otn_software/linux/instantclient/193000/oracle-instantcli
30
+ ent19.3-devel-19.3.0.0.0-1.x86_64.rpm
31
+ - name : Install Oracle instant client
32
+ run : |
33
+ sudo alien -i oracle-instantclient19.3-basic-19.3.0.0.0-1.x86_64.rpm
34
+ sudo alien -i oracle-instantclient19.3-sqlplus-19.3.0.0.0-1.x86_64.rpm
35
+ sudo alien -i oracle-instantclient19.3-devel-19.3.0.0.0-1.x86_64.rpm
36
+
37
+ - name : Build and run RuboCop
38
+ run : |
39
+ bundle install --jobs 4 --retry 3
40
+ bundle exec rubocop --parallel
Original file line number Diff line number Diff line change 2
2
# We should not use cops only available for Ruby 2.1 or later
3
3
# since ruby-plsql itself supports Ruby 1.9.3
4
4
AllCops :
5
- TargetRubyVersion : 2.2
5
+ TargetRubyVersion : 2.3
6
6
DisabledByDefault : true
7
7
8
8
# Prefer &&/|| over and/or.
@@ -45,7 +45,7 @@ Layout/EmptyLinesAroundMethodBody:
45
45
Layout/EmptyLinesAroundModuleBody :
46
46
Enabled : true
47
47
48
- Layout/FirstParameterIndentation :
48
+ Layout/IndentFirstArgument :
49
49
Enabled : true
50
50
51
51
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
@@ -56,7 +56,7 @@ Style/HashSyntax:
56
56
# extra level of indentation.
57
57
Layout/IndentationConsistency :
58
58
Enabled : true
59
- EnforcedStyle : rails
59
+ EnforcedStyle : indented_internal_methods
60
60
61
61
# Two spaces, no tabs (for indentation).
62
62
Layout/IndentationWidth :
@@ -130,7 +130,7 @@ Layout/TrailingWhitespace:
130
130
Enabled : true
131
131
132
132
# Use quotes for string literals when they are enough.
133
- Style/UnneededPercentQ :
133
+ Style/RedundantPercentQ :
134
134
Enabled : true
135
135
136
136
# Align `end` with the matching keyword or starting expression except for
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ source "http://rubygems.org"
3
3
group :development do
4
4
gem "juwelier" , "~> 2.0"
5
5
gem "rspec_junit_formatter"
6
+ gem "rubocop" , require : false
7
+ gem "rubocop-performance" , require : false
8
+ gem "rubocop-rails" , require : false
6
9
end
7
10
8
11
group :test , :development do
You can’t perform that action at this time.
0 commit comments