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
- Read upRead up
- Exclude checks
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"
- Read upRead up
- Exclude checks
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]
- Read upRead up
- Exclude checks
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()
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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")
- Read upRead up
- Exclude checks
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))
- Read upRead up
- Exclude checks
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'
- Read upRead up
- Exclude checks
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__))
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)
- Read upRead up
- Exclude checks
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'
- Read upRead up
- Exclude checks
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]
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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]
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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")
- Read upRead up
- Exclude checks
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")
- Read upRead up
- Exclude checks
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.