-
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.
- Loading branch information
1 parent
ce36476
commit 05a7a54
Showing
52 changed files
with
394 additions
and
140 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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
# use awesome_print in console default | ||
require "awesome_print" | ||
Pry.config.print = proc { |output, value| Pry::Helpers::BaseHelpers.stagger_output("=> #{value.ai}", output) } |
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,120 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.5 | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'db/**/*' | ||
- 'app/views/**/*' | ||
- 'config/**/*' | ||
- 'bin/*' | ||
- 'Rakefile' | ||
- 'Gemfile' | ||
- 'Gemfile.lock' | ||
- 'node_modules/**/*' | ||
- 'vendor/**/*' | ||
- 'lib/blockchain_pb.rb' | ||
|
||
Bundler/OrderedGems: | ||
Enabled: false | ||
|
||
Layout/AccessModifierIndentation: | ||
EnforcedStyle: indent | ||
|
||
Layout/EmptyLineAfterMagicComment: | ||
Enabled: false | ||
|
||
Layout/SpaceInsideHashLiteralBraces: | ||
EnforcedStyle: space | ||
|
||
Metrics/AbcSize: | ||
Max: 100 | ||
|
||
Metrics/ClassLength: | ||
CountComments: false | ||
Max: 300 | ||
|
||
Metrics/CyclomaticComplexity: | ||
Max: 25 | ||
|
||
Metrics/LineLength: | ||
AllowURI: true | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
CountComments: false | ||
Max: 55 | ||
|
||
Metrics/ModuleLength: | ||
CountComments: false | ||
Max: 200 | ||
|
||
Metrics/ParameterLists: | ||
Max: 5 | ||
CountKeywordArgs: true | ||
|
||
Metrics/PerceivedComplexity: | ||
Max: 20 | ||
|
||
Naming/MemoizedInstanceVariableName: | ||
Enabled: false | ||
|
||
Rails: | ||
Enabled: true | ||
|
||
Rails/HasAndBelongsToMany: | ||
Enabled: false | ||
|
||
Rails/SkipsModelValidations: | ||
Enabled: false | ||
|
||
Rails/HttpStatus: | ||
Enabled: false | ||
|
||
Rails/HasManyOrHasOneDependent: | ||
Enabled: false | ||
|
||
Style/CollectionMethods: | ||
Enabled: true | ||
PreferredMethods: | ||
find_all: 'select' | ||
|
||
Style/DoubleNegation: | ||
Enabled: true | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: true | ||
|
||
Style/GuardClause: | ||
Enabled: false | ||
|
||
Style/Lambda: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/PercentLiteralDelimiters: | ||
PreferredDelimiters: | ||
'%i': '()' | ||
'%w': '()' | ||
|
||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
Naming/AccessorMethodName: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
CountComments: false | ||
Max: 25 | ||
ExcludedMethods: | ||
- refine | ||
- included | ||
|
||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
SupportedStyles: | ||
- single_quotes | ||
- double_quotes | ||
# If `true`, strings which span multiple lines using `\` for continuation must | ||
# use the same type of quotes on each line. | ||
ConsistentQuotesInMultiline: 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
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module ApplicationCable | ||
class Channel < ActionCable::Channel::Base | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module ApplicationCable | ||
class Connection < ActionCable::Connection::Base | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
class Api::StatusController < ApplicationController | ||
# GET /api/status | ||
def index | ||
|
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
class Api::SyncErrorsController < ApplicationController | ||
# params: | ||
# { | ||
|
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.