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 22# We should not use cops only available for Ruby 2.1 or later
33# since ruby-plsql itself supports Ruby 1.9.3
44AllCops :
5- TargetRubyVersion : 2.2
5+ TargetRubyVersion : 2.3
66 DisabledByDefault : true
77
88# Prefer &&/|| over and/or.
@@ -45,7 +45,7 @@ Layout/EmptyLinesAroundMethodBody:
4545Layout/EmptyLinesAroundModuleBody :
4646 Enabled : true
4747
48- Layout/FirstParameterIndentation :
48+ Layout/IndentFirstArgument :
4949 Enabled : true
5050
5151# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
@@ -56,7 +56,7 @@ Style/HashSyntax:
5656# extra level of indentation.
5757Layout/IndentationConsistency :
5858 Enabled : true
59- EnforcedStyle : rails
59+ EnforcedStyle : indented_internal_methods
6060
6161# Two spaces, no tabs (for indentation).
6262Layout/IndentationWidth :
@@ -130,7 +130,7 @@ Layout/TrailingWhitespace:
130130 Enabled : true
131131
132132# Use quotes for string literals when they are enough.
133- Style/UnneededPercentQ :
133+ Style/RedundantPercentQ :
134134 Enabled : true
135135
136136# 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"
33group :development do
44 gem "juwelier" , "~> 2.0"
55 gem "rspec_junit_formatter"
6+ gem "rubocop" , require : false
7+ gem "rubocop-performance" , require : false
8+ gem "rubocop-rails" , require : false
69end
710
811group :test , :development do
You can’t perform that action at this time.
0 commit comments