cedlemo/topinambour

View on GitHub

Showing 1,024 of 1,024 total issues

Class has too many lines. [181/100]
Open

class TestTerminalRegexBasics < MiniTest::Test
  def test_scheme
    assert_match_anchored(:SCHEME, "http", :ENTIRE)
    assert_match_anchored(:SCHEME,"HTTPS",:ENTIRE)
  end
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

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

Class has too many lines. [162/100]
Open

class TopinambourPreferences < Gtk::Window
  type_register
  class << self
    def init
      resource_file = "/com/github/cedlemo/topinambour/prefs-dialog.ui"
Severity: Minor
Found in lib/preferences.rb by rubocop

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

Class has too many lines. [149/100]
Open

class TopinambourTerminal < Vte::Terminal
  attr_reader :pid, :menu, :last_match
  REGEXES = [:REGEX_URL_AS_IS, :REGEX_URL_FILE, :REGEX_URL_HTTP,
             :REGEX_URL_VOIP, :REGEX_EMAIL, :REGEX_NEWS_MAN, :CSS_COLORS]

Severity: Minor
Found in lib/terminal.rb by rubocop

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

Class has too many lines. [140/100]
Open

class TopinambourColorSelector < Gtk::Grid
  attr_reader :colors
  def initialize(window)
    @window = window
    super()
Severity: Minor
Found in lib/color_selector.rb by rubocop

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

Class has too many lines. [133/100]
Open

class TopinambourApplication < Gtk::Application
  attr_accessor :settings
  def initialize
    @options = {}
    @exit_status = 0
Severity: Minor
Found in lib/application.rb by rubocop

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

Class has too many lines. [104/100]
Open

class TestTerminalRegexComplex < MiniTest::Test
  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")
Severity: Minor
Found in tests/terminal_regex_test.rb by rubocop

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

Class has too many lines. [103/100]
Open

class TestCssHandlerModule < MiniTest::Test
  include TestFilesRef

  def test_CssHandler_css_file?
    assert(CssHandler.css_file?(SIMPLE_CSS))
Severity: Minor
Found in tests/css_handler_tests.rb by rubocop

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

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

  def initialize
    @options = {}
    @exit_status = 0
    @app_id = 'com.github.cedlemo.topinambour'
    @app_path = '/com/github/cedlemo/topinambour'
Severity: Minor
Found in lib/application.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.

File terminal_regex_test.rb has 411 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require "minitest/autorun"
require "fileutils"
require "gtk3"

PATH = File.expand_path(File.dirname(__FILE__))
Severity: Minor
Found in tests/terminal_regex_test.rb - About 5 hrs to fix

    Assignment Branch Condition size for test_CssHandler_props_with_name is too high. [42.72/15]
    Open

      def test_CssHandler_props_with_name
        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

    Assignment Branch Condition size for initialize is too high. [35.17/15]
    Open

      def initialize
        @options = {}
        @exit_status = 0
        @app_id = 'com.github.cedlemo.topinambour'
        @app_path = '/com/github/cedlemo/topinambour'
    Severity: Minor
    Found in lib/application.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_import_button is too high. [34.71/15]
    Open

      def generate_import_button
        generate_import_export_button("Import") do |filename|
          file = File.read(filename)
    
          foreground = file[/\*\.?foreground:\s*(.*)/, 1]
    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. [27/10]
    Open

      def test_url_as_is_2
        assert_match_b(:REGEX_URL_AS_IS, "HtTp://déjà-vu.com:10000/déjà/vu",    :ENTIRE)
        assert_match_b(:REGEX_URL_AS_IS, "HTTP://joe:sEcReT@➡.ws:1080",         :ENTIRE)
        assert_match_b(:REGEX_URL_AS_IS, "https://cömbining-áccents",           :ENTIRE)
        assert_match_b(:REGEX_URL_AS_IS, "http://111.222.33.44",                :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 reload_css_config is too high. [31.84/15]
    Open

      def reload_css_config
        bad_css = nil
        css_file = check_css_file_path
        return unless css_file
    
    
    Severity: Minor
    Found in lib/application.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. [25/10]
    Open

      def test_CssHandler_props_with_name
        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 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. [24/10]
    Open

      def generate_import_button
        generate_import_export_button("Import") do |filename|
          file = File.read(filename)
    
          foreground = file[/\*\.?foreground:\s*(.*)/, 1]
    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. [24/10]
    Open

      def reload_css_config
        bad_css = nil
        css_file = check_css_file_path
        return unless css_file
    
    
    Severity: Minor
    Found in lib/application.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_url_as_is_2 is too high. [27/15]
    Open

      def test_url_as_is_2
        assert_match_b(:REGEX_URL_AS_IS, "HtTp://déjà-vu.com:10000/déjà/vu",    :ENTIRE)
        assert_match_b(:REGEX_URL_AS_IS, "HTTP://joe:sEcReT@➡.ws:1080",         :ENTIRE)
        assert_match_b(:REGEX_URL_AS_IS, "https://cömbining-áccents",           :ENTIRE)
        assert_match_b(:REGEX_URL_AS_IS, "http://111.222.33.44",                :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. [22/10]
    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 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. [21/10]
    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 if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

    Severity
    Category
    Status
    Source
    Language