forked from localytics/odbc_adapter
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Rubocop and move to Github Actions (#8)
- Loading branch information
Showing
5 changed files
with
132 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- github_actions | ||
pull_request: | ||
|
||
jobs: | ||
RuboCop: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ruby | ||
bundler-cache: true | ||
- run: | | ||
bundle exec rubocop --color --format github --format clang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2022-03-14 22:30:45 UTC using RuboCop version 1.26.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: Include. | ||
# Include: **/*.gemspec | ||
Gemspec/RequiredRubyVersion: | ||
Exclude: | ||
- 'odbc_adapter.gemspec' | ||
|
||
# Offense count: 6 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
Layout/EmptyLineAfterGuardClause: | ||
Exclude: | ||
- 'lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb' | ||
- 'lib/odbc_adapter/column_metadata.rb' | ||
- 'lib/odbc_adapter/quoting.rb' | ||
- 'lib/odbc_adapter/registry.rb' | ||
- 'lib/odbc_adapter/schema_statements.rb' | ||
|
||
# Offense count: 16 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. | ||
# SupportedHashRocketStyles: key, separator, table | ||
# SupportedColonStyles: key, separator, table | ||
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit | ||
Layout/HashAlignment: | ||
Exclude: | ||
- 'lib/odbc_adapter/column_metadata.rb' | ||
- 'lib/odbc_adapter/registry.rb' | ||
- 'lib/odbc_adapter/schema_statements.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
# Configuration parameters: AllowInHeredoc. | ||
Layout/TrailingWhitespace: | ||
Exclude: | ||
- 'lib/odbc_adapter/adapters/null_odbc_adapter.rb' | ||
|
||
# Offense count: 1 | ||
Lint/MissingSuper: | ||
Exclude: | ||
- 'test/registry_test.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: Max, CountKeywordArgs. | ||
Metrics/ParameterLists: | ||
MaxOptionalParameters: 4 | ||
|
||
# Offense count: 35 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: always, always_true, never | ||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
# Offense count: 5 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
Style/IfUnlessModifier: | ||
Exclude: | ||
- 'lib/odbc_adapter/adapters/mysql_odbc_adapter.rb' | ||
- 'lib/odbc_adapter/quoting.rb' | ||
- 'lib/odbc_adapter/schema_statements.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: literals, strict | ||
Style/MutableConstant: | ||
Exclude: | ||
- 'lib/active_record/connection_adapters/odbc_adapter.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: AllowedMethods. | ||
# AllowedMethods: respond_to_missing? | ||
Style/OptionalBooleanParameter: | ||
Exclude: | ||
- 'lib/odbc_adapter/column.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
Style/RedundantRegexpEscape: | ||
Exclude: | ||
- 'lib/odbc_adapter/quoting.rb' | ||
|
||
# Offense count: 4 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods. | ||
# AllowedMethods: present?, blank?, presence, try, try! | ||
Style/SafeNavigation: | ||
Exclude: | ||
- 'lib/odbc_adapter/column_metadata.rb' | ||
- 'lib/odbc_adapter/schema_statements.rb' | ||
|
||
# Offense count: 2 | ||
# This cop supports safe auto-correction (--auto-correct). | ||
# Configuration parameters: AllowModifier. | ||
Style/SoleNestedConditional: | ||
Exclude: | ||
- 'lib/odbc_adapter/adapters/mysql_odbc_adapter.rb' | ||
- 'lib/odbc_adapter/quoting.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters