mchail/mongoid_flaggable

View on GitHub
lib/mongoid_flaggable/class_methods.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method flag_frequency has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            def flag_frequency
                aggregation = collection.aggregate([
                    {
                        '$match' => {
                            'flag_array' => {
Severity: Minor
Found in lib/mongoid_flaggable/class_methods.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status