Skip to content

Commit

Permalink
Add GraphQL cops
Browse files Browse the repository at this point in the history
  • Loading branch information
Anastastasia-B committed Aug 18, 2023
1 parent e8488c8 commit 65d49d3
Show file tree
Hide file tree
Showing 4 changed files with 501 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ The format is described in [Contributing notes](CONTRIBUTING.md#changelog-entry-

## master

### Added

* Added GraphQL cops. ([@Anastastasia-B][])

## 1.4.0 (2023-02-11)

### Changed
Expand Down Expand Up @@ -272,3 +276,4 @@ The format is described in [Contributing notes](CONTRIBUTING.md#changelog-entry-
[@a.branzeanu]: https://github.com/texpert
[@nikitasakov]: https://github.com/nikitasakov
[@paydaylight]: https://github.com/paydaylight
[@Anastastasia-B]: https://github.com/Anastastasia-B
9 changes: 9 additions & 0 deletions config/graphql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require: rubocop-graphql

GraphQL/ExtractInputType:
Enabled: false
GraphQL/ExtractType:
Enabled: false

GraphQL/ResolverMethodLength:
Max: 10
1 change: 1 addition & 0 deletions datarockets-style.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_dependency "rubocop", "~> 1.45.1"
spec.add_dependency "rubocop-graphql", "~> 1.1.1"
spec.add_dependency "rubocop-rails", "~> 2.17.4"
spec.add_dependency "rubocop-rspec", "~> 2.18.1"

Expand Down
Loading

0 comments on commit 65d49d3

Please sign in to comment.