cre-ne-jp/log-archiver

View on GitHub
app/models/channel.rb

Summary

Maintainability
A
55 mins
Test Coverage

Showing 1 of 1 total issue

Method for_channels_index has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

def self.for_channels_index
last_speech_timestamp =
->(channel) { channel.last_speech&.timestamp || DateTime.new }
 
all.
Severity: Minor
Found in app/models/channel.rb - About 55 mins to fix

There are no issues that match your filters.

Category
Status