forked from scenic-views/scenic
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update hound and rubocop configuration
When we moved to our own organization from the thoughtbot org, we lost the hound-provided rubocop config associated with the thoughtbot org. This change updates to the prefered hound config format that references our own `.rubocop.yml` file. How did I settle on the rubocop rules? Well, I ran rubocop on the codebase and either fixed what came up or added exceptions. We have lots of line length violations that I didn't fix. For the most part, I like the encouragement to stay at 80 characters, but sometimes it's not worth it. I think getting the hound reminder in the PR is sufficient enough for us to have a conversation.
- Loading branch information
1 parent
bfa3984
commit b51ed69
Showing
21 changed files
with
222 additions
and
80 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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
DotPosition: | ||
EnforcedStyle: leading | ||
Style/AlignParameters: | ||
EnforcedStyle: with_fixed_indentation | ||
rubocop: | ||
config_file: .rubocop.yml |
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,129 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.3.0 | ||
Exclude: | ||
- "tmp/**/*" | ||
- "bin/*" | ||
- "spec/dummy/**/*" | ||
|
||
Bundler/OrderedGems: | ||
Enabled: false | ||
|
||
Gemspec/OrderedDependencies: | ||
Enabled: false | ||
|
||
Layout/AlignParameters: | ||
Enabled: true | ||
EnforcedStyle: with_fixed_indentation | ||
Layout/ConditionPosition: | ||
Enabled: false | ||
Layout/DotPosition: | ||
EnforcedStyle: leading | ||
Layout/ExtraSpacing: | ||
Enabled: true | ||
Layout/IndentAssignment: | ||
Enabled: False | ||
Layout/MultilineOperationIndentation: | ||
Enabled: true | ||
EnforcedStyle: indented | ||
Layout/MultilineMethodCallIndentation: | ||
Enabled: true | ||
EnforcedStyle: indented | ||
|
||
Lint/AmbiguousOperator: | ||
Enabled: true | ||
Lint/AmbiguousRegexpLiteral: | ||
Enabled: true | ||
Lint/DuplicatedKey: | ||
Enabled: true | ||
|
||
Metrics/ClassLength: | ||
Enabled: false | ||
Metrics/ModuleLength: | ||
Enabled: false | ||
Metrics/AbcSize: | ||
Enabled: false | ||
Metrics/BlockLength: | ||
CountComments: true # count full line comments? | ||
Max: 25 | ||
ExcludedMethods: [] | ||
Exclude: | ||
- "spec/**/*" | ||
- "*.gemspec" | ||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
Metrics/LineLength: | ||
Max: 80 | ||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
Security/Eval: | ||
Enabled: true | ||
Exclude: | ||
- "spec/scenic/schema_dumper_spec.rb" | ||
Style/BlockDelimiters: | ||
Enabled: false | ||
Style/CollectionMethods: | ||
Enabled: true | ||
PreferredMethods: | ||
find: find | ||
inject: reduce | ||
collect: map | ||
find_all: select | ||
Style/ConditionalAssignment: | ||
Enabled: false | ||
Style/ClassAndModuleChildren: | ||
Enabled: true | ||
Exclude: | ||
- "spec/**/*" | ||
Style/Documentation: | ||
Enabled: false | ||
Style/FrozenStringLiteralComment: | ||
Description: >- | ||
Add the frozen_string_literal comment to the top of files | ||
to help transition from Ruby 2.3.0 to Ruby 3.0. | ||
Enabled: false | ||
Style/GuardClause: | ||
Enabled: false | ||
Style/IfUnlessModifier: | ||
Enabled: false | ||
Style/Lambda: | ||
Enabled: false | ||
Style/NumericLiterals: | ||
Enabled: false | ||
Style/OneLineConditional: | ||
Enabled: false | ||
Style/PercentLiteralDelimiters: | ||
Enabled: false | ||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
Enabled: true | ||
Style/TrailingCommaInArguments: | ||
Description: 'Checks for trailing comma in argument lists.' | ||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas' | ||
EnforcedStyleForMultiline: comma | ||
SupportedStylesForMultiline: | ||
- comma | ||
- consistent_comma | ||
- no_comma | ||
Enabled: true | ||
Style/TrailingCommaInArrayLiteral: | ||
Description: 'Checks for trailing comma in array literals.' | ||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas' | ||
EnforcedStyleForMultiline: comma | ||
SupportedStylesForMultiline: | ||
- comma | ||
- consistent_comma | ||
- no_comma | ||
Enabled: true | ||
Style/TrailingCommaInHashLiteral: | ||
Description: 'Checks for trailing comma in hash literals.' | ||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas' | ||
EnforcedStyleForMultiline: comma | ||
SupportedStylesForMultiline: | ||
- comma | ||
- consistent_comma | ||
- no_comma | ||
Enabled: true | ||
Style/WordArray: | ||
Enabled: false | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
# Specify your gem's dependencies in scenic.gemspec | ||
gemspec |
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
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
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
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 |
---|---|---|
@@ -1,38 +1,37 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'scenic/version' | ||
require "scenic/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'scenic' | ||
spec.name = "scenic" | ||
spec.version = Scenic::VERSION | ||
spec.authors = ['Derek Prior', 'Caleb Thompson'] | ||
spec.email = ['[email protected]', '[email protected]'] | ||
spec.summary = %q{Support for database views in Rails migrations} | ||
spec.authors = ["Derek Prior", "Caleb Thompson"] | ||
spec.email = ["[email protected]", "[email protected]"] | ||
spec.summary = "Support for database views in Rails migrations" | ||
spec.description = <<-DESCRIPTION | ||
Adds methods to ActiveRecord::Migration to create and manage database views | ||
in Rails | ||
DESCRIPTION | ||
spec.homepage = 'https://github.com/scenic-views/scenic' | ||
spec.license = 'MIT' | ||
spec.homepage = "https://github.com/scenic-views/scenic" | ||
spec.license = "MIT" | ||
|
||
spec.files = `git ls-files -z`.split("\x0") | ||
spec.test_files = spec.files.grep(%r{^spec/}) | ||
spec.require_paths = ['lib'] | ||
spec.require_paths = ["lib"] | ||
|
||
spec.add_development_dependency 'appraisal' | ||
spec.add_development_dependency 'bundler', '>= 1.5' | ||
spec.add_development_dependency 'database_cleaner' | ||
spec.add_development_dependency 'rake' | ||
spec.add_development_dependency 'rspec', '>= 3.3' | ||
spec.add_development_dependency 'pg', '~> 0.19' | ||
spec.add_development_dependency 'pry' | ||
spec.add_development_dependency 'ammeter', '>= 1.1.3' | ||
spec.add_development_dependency 'yard' | ||
spec.add_development_dependency 'redcarpet' | ||
spec.add_development_dependency "appraisal" | ||
spec.add_development_dependency "bundler", ">= 1.5" | ||
spec.add_development_dependency "database_cleaner" | ||
spec.add_development_dependency "rake" | ||
spec.add_development_dependency "rspec", ">= 3.3" | ||
spec.add_development_dependency "pg", "~> 0.19" | ||
spec.add_development_dependency "pry" | ||
spec.add_development_dependency "ammeter", ">= 1.1.3" | ||
spec.add_development_dependency "yard" | ||
spec.add_development_dependency "redcarpet" | ||
|
||
spec.add_dependency 'activerecord', '>= 4.0.0' | ||
spec.add_dependency 'railties', '>= 4.0.0' | ||
spec.add_dependency "activerecord", ">= 4.0.0" | ||
spec.add_dependency "railties", ">= 4.0.0" | ||
|
||
spec.required_ruby_version = '>= 2.3.0' | ||
spec.required_ruby_version = ">= 2.3.0" | ||
end |
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
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
Oops, something went wrong.