Skip to content

Commit c7622fd

Browse files
committed
chore(release): fix formatting
1 parent 0305b73 commit c7622fd

File tree

7 files changed

+5
-13
lines changed

7 files changed

+5
-13
lines changed

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
inherit_gem:
22
rubocop-shopify: rubocop.yml
33

4-
require:
4+
plugins:
55
- rubocop-performance
66
- rubocop-rails
77
- rubocop-rspec

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ group :development, :test do
2828
end
2929

3030
group :development do
31-
gem "rubocop", "~> 1.68", require: false
31+
gem "rubocop", "~> 1.76", require: false
3232
gem "rubocop-ast", require: false
3333
gem "rubocop-performance", require: false
3434
gem "rubocop-rails", require: false

lib/anchor/resource.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ def anchor_relationships_properties(included_fields:)
158158
end
159159
end
160160

161-
# rubocop:disable Layout/LineLength
162161
# @param rel [Relationship]
163162
# @param resource_klass [Anchor::Resource]
164163
# @param name [String, Symbol]
@@ -184,5 +183,4 @@ def relationship_type_for(rel, resource_klass, name)
184183
wrapper.call(rel_type)
185184
end
186185
end
187-
# rubocop:enable Layout/LineLength
188186
end

lib/anchor/type_script/serializer.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module Anchor::TypeScript
22
class Serializer
33
class << self
4-
# rubocop:disable Layout/LineLength
5-
64
def type_string(type, depth = 1)
75
case type
86
when Anchor::Types::String.singleton_class then "string"
@@ -23,7 +21,6 @@ def type_string(type, depth = 1)
2321
else raise RuntimeError
2422
end
2523
end
26-
# rubocop:enable Layout/LineLength
2724

2825
private
2926

lib/anchor/types/inference/active_record.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module Anchor::Types::Inference
22
module ActiveRecord
33
class << self
4-
# rubocop:disable Layout/LineLength
5-
64
# @return [Proc{Type => Type, Anchor::Types::Maybe<Type>, Anchor::Types::Array<Type>}]
75
def wrapper_from_reflection(reflection)
86
case reflection
@@ -14,7 +12,6 @@ def wrapper_from_reflection(reflection)
1412
else raise "#{reflection.class.name} not supported"
1513
end
1614
end
17-
# rubocop:enable Layout/LineLength
1815

1916
private
2017

spec/example/app/models/post.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class Post < ApplicationRecord
22
belongs_to :user
3-
has_many :comments, as: :commentable
3+
has_many :comments, as: :commentable, dependent: :destroy
44
has_many :participants, through: :comments, source: :user
55
end

spec/example/app/models/user.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class User < ApplicationRecord
2-
has_many :posts
3-
has_many :comments
2+
has_many :posts, dependent: :destroy
3+
has_many :comments, dependent: :destroy
44

55
enum :role, {
66
admin: "admin",

0 commit comments

Comments
 (0)