cedlemo/topinambour

View on GitHub

Showing 1,024 of 1,024 total issues

Method has too many lines. [21/10]
Open

  def test_defs_ipv4_2
    assert_match_anchored_extended(:DEFS, "(?&IPV4)", "75.150.225.300", :NULL)
    assert_match_anchored_extended(:DEFS, "(?&IPV4)", "1.2.3.4.5",      "1.2.3.4")
    assert_match_anchored_extended(:DEFS, "(?&S4)", "0",    :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&S4)", "1",    :ENTIRE)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Assignment Branch Condition size for test_CssHandler_prop_position is too high. [25.96/15]
Open

  def test_CssHandler_prop_position
    engine = CssHandler.to_engine(SIMPLE_CSS)
    tree = engine.to_tree
    props = CssHandler.props_with_name(tree, "border-radius")
    assert_equal(2, props.size)
Severity: Minor
Found in tests/css_handler_tests.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method has too many lines. [19/10]
Open

  def test_port_nums
    assert_match_anchored(:N_1_65535, "0",      :NULL)
    assert_match_anchored(:N_1_65535, "1",      :ENTIRE)
    assert_match_anchored(:N_1_65535, "10",     :ENTIRE)
    assert_match_anchored(:N_1_65535, "100",    :ENTIRE)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Method has too many lines. [18/10]
Open

  def test_defs_ipv6_1
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "11:::22",                           :NULL)
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "11:22::33:44::55:66",               :NULL)
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "dead::beef",                        :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "faded::bee",                        :NULL)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Assignment Branch Condition size for generate_export_button is too high. [23.35/15]
Open

  def generate_export_button
    generate_import_export_button("Export", "untitled") do |filename|
      File.open(filename, 'a') do |file|
        child = get_child_at(1, 0)
        file.puts "*.foreground: #{rgba_to_hex_string(child.rgba)}"
Severity: Minor
Found in lib/color_selector.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Assignment Branch Condition size for test_url_path is too high. [22/15]
Open

  def test_url_path
    assert_match_anchored_added([:DEFS, :URLPATH], "/ab/cd",       :ENTIRE)
    assert_match_anchored_added([:DEFS, :URLPATH], "/ab/cd.html.", "/ab/cd.html")
    assert_match_anchored_added([:DEFS, :URLPATH], "/The_Offspring_(album)", :ENTIRE)
    assert_match_anchored_added([:DEFS, :URLPATH], "/The_Offspring)", "/The_Offspring")
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method has too many lines. [17/10]
Open

  def test_defs_ipv4_1
    assert_match_anchored_extended(:DEFS, "(?&S4)", "0",                :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&S4)", "1",                :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&S4)", "9",                :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&S4)", "10",               :ENTIRE)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Method has too many lines. [17/10]
Open

  def self.handle_ctrl_shift(event, window)
    case event.keyval
    when Gdk::Keyval::KEY_Q # Quit
      window.quit_gracefully
      true
Severity: Minor
Found in lib/shortcuts.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Assignment Branch Condition size for test_defs_ipv4_2 is too high. [21/15]
Open

  def test_defs_ipv4_2
    assert_match_anchored_extended(:DEFS, "(?&IPV4)", "75.150.225.300", :NULL)
    assert_match_anchored_extended(:DEFS, "(?&IPV4)", "1.2.3.4.5",      "1.2.3.4")
    assert_match_anchored_extended(:DEFS, "(?&S4)", "0",    :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&S4)", "1",    :ENTIRE)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Assignment Branch Condition size for test_url_as_is_1 is too high. [21/15]
Open

  def test_url_as_is_1
    assert_match_b(:REGEX_URL_AS_IS, "There's no URL here http:/foo",               :NULL)
    assert_match_b(:REGEX_URL_AS_IS, "Visit http://example.com for details",        "http://example.com")
    assert_match_b(:REGEX_URL_AS_IS, "Trailing dot http://foo/bar.html.",           "http://foo/bar.html")
    assert_match_b(:REGEX_URL_AS_IS, "Trailing ellipsis http://foo/bar.html...",    "http://foo/bar.html")
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method has too many lines. [16/10]
Open

  def test_url_file
    assert_match_b(:REGEX_URL_FILE, "file:",                :NULL)
    assert_match_b(:REGEX_URL_FILE, "file:/",               :ENTIRE)
    assert_match_b(:REGEX_URL_FILE, "file://",              :NULL)
    assert_match_b(:REGEX_URL_FILE, "file:///",             :ENTIRE)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Method has too many lines. [16/10]
Open

  def initialize(window)
    @window = window
    super()

    reset_button = generate_reset_button
Severity: Minor
Found in lib/color_selector.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Method has too many lines. [16/10]
Open

  def generate_export_button
    generate_import_export_button("Export", "untitled") do |filename|
      File.open(filename, 'a') do |file|
        child = get_child_at(1, 0)
        file.puts "*.foreground: #{rgba_to_hex_string(child.rgba)}"
Severity: Minor
Found in lib/color_selector.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Method has too many lines. [15/10]
Open

  def test_defs_ipv6_2
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "11:22:33::44:55:66:77",             :ENTIRE) #/* :: in the middle */
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "11:22:33::44:55:66:77:88",          :NULL)
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "11:22:33:44:55:66:77::",            :ENTIRE) #/* :: at the end */
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "11:22:33:44:55:66:77:88::",         :NULL)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Assignment Branch Condition size for test_port_nums is too high. [19/15]
Open

  def test_port_nums
    assert_match_anchored(:N_1_65535, "0",      :NULL)
    assert_match_anchored(:N_1_65535, "1",      :ENTIRE)
    assert_match_anchored(:N_1_65535, "10",     :ENTIRE)
    assert_match_anchored(:N_1_65535, "100",    :ENTIRE)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method has too many lines. [14/10]
Open

  def generate_reset_button
    button = Gtk::Button.new(:label => "Reset")
    button.signal_connect "clicked" do
      initialize_default_colors
      # foreground
Severity: Minor
Found in lib/color_selector.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Assignment Branch Condition size for test_defs_ipv6_1 is too high. [18/15]
Open

  def test_defs_ipv6_1
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "11:::22",                           :NULL)
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "11:22::33:44::55:66",               :NULL)
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "dead::beef",                        :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&IPV6)", "faded::bee",                        :NULL)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Assignment Branch Condition size for generate_reset_button is too high. [18.68/15]
Open

  def generate_reset_button
    button = Gtk::Button.new(:label => "Reset")
    button.signal_connect "clicked" do
      initialize_default_colors
      # foreground
Severity: Minor
Found in lib/color_selector.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method has too many lines. [13/10]
Open

  def handle_mouse_clic
    signal_connect 'button-press-event' do |widget, event|
      if event.type == Gdk::EventType::BUTTON_PRESS &&
         event.button == Gdk::BUTTON_SECONDARY
        manage_regex_on_right_click(widget, event)
Severity: Minor
Found in lib/terminal.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Assignment Branch Condition size for test_defs_ipv4_1 is too high. [17/15]
Open

  def test_defs_ipv4_1
    assert_match_anchored_extended(:DEFS, "(?&S4)", "0",                :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&S4)", "1",                :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&S4)", "9",                :ENTIRE)
    assert_match_anchored_extended(:DEFS, "(?&S4)", "10",               :ENTIRE)
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Severity
Category
Status
Source
Language