Skip to content

Commit bbebac0

Browse files
committed
Update quality_checks.rb
1 parent e3c5a59 commit bbebac0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/models/name/quality_checks.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class QcWarning
139139
link_text: 'Link parent',
140140
link_to: ->(_w, n) { [:edit_parent, n] },
141141
recommendations: %w[7],
142-
scope: ->(_w, n) { n.rank? && !n.top_rank? }
142+
scope: ->(_w, n) { n.rank? && !n.top_rank? },
143143
failure: ->(_w, n) { !n.incertae_sedis? && !n.parent.present? }
144144
},
145145

@@ -165,7 +165,7 @@ class QcWarning
165165
end
166166
)
167167
},
168-
failure: ->(_w. n) {
168+
failure: ->(_w, n) {
169169
regexp =
170170
case n.inferred_rank
171171
when 'subspecies'; /\A[A-Z][a-z]+ [a-z]+ subsp\. [a-z]+\z/
@@ -451,7 +451,7 @@ class QcWarning
451451
rules: ->(_w, n) {
452452
%w[16] + (n.inferred_rank == 'genus' ? %w[21a] : [])
453453
},
454-
scope: ->(_w, n) { n.rank? && n.type_is_name? }
454+
scope: ->(_w, n) { n.rank? && n.type_is_name? },
455455
failure: ->(_w, n) { n.type_name&.rank == n.expected_type_rank }
456456
}.merge(@@link_to_edit_type),
457457
# - Rule 17 covered in § Rule 16

0 commit comments

Comments
 (0)