Skip to content

Commit

Permalink
Activate standardrb
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Jan 3, 2025
1 parent f5cd106 commit bf413f8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 35 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -475,3 +475,18 @@ jobs:
shell: bash
run: |
ruby -e "require 'tiny_tds'; puts TinyTds::Gem.root_path"
standardrb:
name: standardrb
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true

- name: Check standardrb
shell: bash
run: bundle exec standardrb
31 changes: 0 additions & 31 deletions .rubocop.yml

This file was deleted.

4 changes: 0 additions & 4 deletions lib/tiny_tds/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ def local_offset

end

# rubocop:disable Metrics/AbcSize
# rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/PerceivedComplexity
def initialize(opts = {})
if opts[:dataserver].to_s.empty? && opts[:host].to_s.empty?
raise ArgumentError, 'missing :host option if no :dataserver given'
Expand Down
1 change: 1 addition & 0 deletions tiny_tds.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'minitest-reporters', '~> 1.6.1'
s.add_development_dependency 'connection_pool', '~> 2.2.0'
s.add_development_dependency 'toxiproxy', '~> 2.0.0'
s.add_development_dependency 'standard', '~> 1.31'
end

0 comments on commit bf413f8

Please sign in to comment.