Skip to content

Commit 067c5bf

Browse files
committed
Rubocop fixes
1 parent ce919ec commit 067c5bf

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

db/migrate/20241124181740_create_better_together_content_links.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Migration to create the persistent links table used by the
4-
# BetterTogether rich text link metrics system.
3+
# Migration to create the persistent links table used by the
4+
# BetterTogether rich text link metrics system.
55
class CreateBetterTogetherContentLinks < ActiveRecord::Migration[7.1]
66
# rubocop:disable Metrics/MethodLength
77
def change

db/migrate/20241125190948_create_better_together_metrics_rich_text_links.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Migration to create the RichText link join table used for metrics and
4-
# associations between ActionText content and discovered links.
3+
# Migration to create the RichText link join table used for metrics and
4+
# associations between ActionText content and discovered links.
55
class CreateBetterTogetherMetricsRichTextLinks < ActiveRecord::Migration[7.1]
66
def change
77
create_bt_table :rich_text_links, prefix: :better_together_metrics do |t|

lib/tasks/quality_assurance.rake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
# rubocop:disable Metrics/BlockLength
23

34
namespace :better_together do
45
namespace :qa do
@@ -134,3 +135,5 @@ namespace :better_together do
134135
end
135136
end
136137
end
138+
139+
# rubocop:enable Metrics/BlockLength

spec/factories/better_together/metrics/rich_text_links.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22

33
FactoryBot.define do
44
factory :metrics_rich_text_link, class: 'Metrics::RichTextLink' do
5+
# minimal factory to satisfy linter; expand in tests as needed
6+
initialize_with { new }
57
end
68
end

0 commit comments

Comments
 (0)