opus-codium/puffy

View on GitHub
lib/puffy/cli.rb

Summary

Maintainability
A
1 hr
Test Coverage
A
91%

Showing 2 of 3 total issues

Method initialize has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

def initialize # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
cli = self
 
@main = Cri::Command.define do
name 'puffy'
Severity: Major
Found in lib/puffy/cli.rb - About 3 hrs to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    puppet.define_command do
    name 'diff'
    usage 'diff [options] <network>'
    summary 'Show differences between network specification and firewall rules'
     
     
    Severity: Minor
    Found in lib/puffy/cli.rb and 1 other location - About 35 mins to fix
    lib/puffy/cli.rb on lines 95..111

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    puppet.define_command do
    name 'generate'
    usage 'generate [options] <network>'
    summary 'Generate network firewall rules according to network specification'
     
     
    Severity: Minor
    Found in lib/puffy/cli.rb and 1 other location - About 35 mins to fix
    lib/puffy/cli.rb on lines 76..91
    Category
    Status