Skip to content

Commit

Permalink
Added RuboCop. (#165)
Browse files Browse the repository at this point in the history
* Added RuboCop.

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Apr 4, 2023
1 parent 5e498b7 commit a8c421d
Show file tree
Hide file tree
Showing 597 changed files with 4,859 additions and 4,702 deletions.
2 changes: 0 additions & 2 deletions .bundle/config

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint
on: [push, pull_request]
jobs:
rubocop:
name: RuboCop
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5
bundler-cache: true
- run: bundle exec rubocop
1 change: 0 additions & 1 deletion .github/workflows/test-unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.entry.ruby_version }}

- name: Checkout OpenSearch
uses: actions/checkout@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.bundle
.config
.yardoc
_yardoc
Expand Down
18 changes: 18 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-rake
- rubocop-rspec

AllCops:
TargetRubyVersion: 2.5
NewCops: enable

RSpec/ImplicitExpect:
Enabled: false

RSpec/ImplicitSubject:
Enabled: false

Metrics:
Enabled: false
Loading

0 comments on commit a8c421d

Please sign in to comment.