victor-magarlamov/pg_partitioning

View on GitHub
lib/pg_partitioning/strategies/step.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method create_insert_master_function has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def create_insert_master_function
        @sql.execute "CREATE OR REPLACE FUNCTION #{@table_name}_insert_master() RETURNS TRIGGER AS $$
                       DECLARE
                         colname   text    := '#{@column_name.to_sym}';
                         colval    integer := NEW.#{@column_name.to_sym};
Severity: Minor
Found in lib/pg_partitioning/strategies/step.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status