-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(lint): add satandardrb linter/formatter (#32)
- Loading branch information
1 parent
e0c8a0d
commit 8060168
Showing
34 changed files
with
406 additions
and
426 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
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,41 +1,10 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.6 | ||
NewCops: enable | ||
Exclude: | ||
- 'examples/**/*' | ||
- 'k6/**/*' | ||
- 'gemfiles/**/*' | ||
- 'tmp/**/*' | ||
- 'vendor/**/*' | ||
|
||
Metrics/BlockLength: | ||
Exclude: | ||
- 'spec/**/*' | ||
|
||
Layout/LineLength: | ||
Exclude: | ||
- 'spec/**/*' | ||
|
||
Naming/FileName: | ||
Enabled: false | ||
|
||
Style/ClassVars: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
|
||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
Metrics/ClassLength: | ||
Enabled: false | ||
|
||
Gemspec/DevelopmentDependencies: | ||
EnforcedStyle: 'gemspec' | ||
require: | ||
- standard | ||
- standard-custom | ||
- standard-performance | ||
- rubocop-performance | ||
|
||
inherit_gem: | ||
standard: config/base.yml | ||
standard-custom: config/base.yml | ||
standard-performance: config/base.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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } | ||
|
||
# Specify your gem's dependencies in graphql-hive.gemspec | ||
gemspec | ||
|
||
group :development do | ||
gem "bundler", "~> 2" | ||
gem "rake", "~> 13" | ||
gem "rspec", "~> 3" | ||
gem "standardrb", "~> 1" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
require 'rubocop/rake_task' | ||
require "rubocop/rake_task" | ||
RuboCop::RakeTask.new | ||
|
||
task(default: %i[spec rubocop]) |
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,8 +1,8 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gem 'graphql' | ||
gem 'graphql-hive', path: '../../' | ||
gem 'puma' | ||
gem 'rack-contrib' | ||
gem 'sinatra' | ||
gem 'sinatra-contrib' | ||
gem "graphql" | ||
gem "graphql-hive", path: "../../" | ||
gem "puma" | ||
gem "rack-contrib" | ||
gem "sinatra" | ||
gem "sinatra-contrib" |
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,2 +1,2 @@ | ||
require './app' | ||
require "./app" | ||
run DemoApp |
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,33 +1,28 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('lib', __dir__) | ||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'graphql-hive/version' | ||
require "graphql-hive/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'graphql-hive' | ||
spec.version = Graphql::Hive::VERSION | ||
spec.authors = ['Charly POLY'] | ||
spec.email = ['[email protected]'] | ||
spec.name = "graphql-hive" | ||
spec.version = Graphql::Hive::VERSION | ||
spec.authors = ["Charly POLY"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = '"GraphQL Hive integration for `graphql-ruby`"' | ||
spec.description = '"Monitor operations, inspect your queries and publish your GraphQL schema with GraphQL Hive"' | ||
spec.homepage = 'https://docs.graphql-hive.com/specs/integrations' | ||
spec.license = 'MIT' | ||
spec.summary = '"GraphQL Hive integration for `graphql-ruby`"' | ||
spec.description = '"Monitor operations, inspect your queries and publish your GraphQL schema with GraphQL Hive"' | ||
spec.homepage = "https://docs.graphql-hive.com/specs/integrations" | ||
spec.license = "MIT" | ||
|
||
spec.metadata = { 'rubygems_mfa_required' => 'true' } | ||
spec.metadata = {"rubygems_mfa_required" => "true"} | ||
|
||
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0') | ||
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0") | ||
|
||
spec.require_paths = ['lib'] | ||
spec.files = Dir.chdir(File.expand_path(__dir__)) do | ||
spec.require_paths = ["lib"] | ||
spec.files = Dir.chdir(File.expand_path(__dir__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) } | ||
end | ||
|
||
spec.add_dependency 'graphql', '>= 2.3', '< 3' | ||
|
||
spec.add_development_dependency 'bundler', '~> 2' | ||
spec.add_development_dependency 'rake', '~> 13' | ||
spec.add_development_dependency 'rspec', '~> 3' | ||
spec.add_development_dependency 'rubocop', '~> 1' | ||
spec.add_dependency "graphql", ">= 2.3", "< 3" | ||
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,9 +1,9 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gem 'graphql', '~> 2' | ||
gem 'graphql-hive', path: '../../' | ||
gem 'puma', '~> 6' | ||
gem 'racc' | ||
gem 'rack-contrib', '~> 2' | ||
gem 'sinatra', '~> 2' | ||
gem 'sinatra-contrib' | ||
gem "graphql", "~> 2" | ||
gem "graphql-hive", path: "../../" | ||
gem "puma", "~> 6" | ||
gem "racc" | ||
gem "rack-contrib", "~> 2" | ||
gem "sinatra", "~> 2" | ||
gem "sinatra-contrib" |
Oops, something went wrong.