Showing 351 of 351 total issues
Class has too many lines. [216/100] Open
class MiGA::GUI::View < Shoes
# Class-level
url "/", :index
url "/blank", :blank
- 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.
Assignment Branch Condition size for report is too high. [53.24/15] Open
def report
header("\xC2\xBB " + c.project.name.unmiga_name)
stack(margin:40) do
@done_para = subtitle "Dataset tasks advance: "
@done = 0.0
- 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 dataset is too high. [39.2/15] Open
def dataset(name)
header("\xC2\xBB " + c.project.name.unmiga_name +
" \xC2\xBB " + name.unmiga_name)
stack(margin:40) do
ds = c.project.dataset(name)
- 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 graphic_advance is too high. [35.75/15] Open
def graphic_advance(ds, h=10)
ds_adv = ds.profile_advance
flow(width:30*MiGA::Dataset.PREPROCESSING_TASKS.size) do
nostroke
col = ["#CCC", rgb(119,130,61), rgb(160,41,50)]
- 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 report
header("\xC2\xBB " + c.project.name.unmiga_name)
stack(margin:40) do
@done_para = subtitle "Dataset tasks advance: "
@done = 0.0
- 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 project is too high. [29.02/15] Open
def project
header "\xC2\xBB #{c.project.name.unmiga_name}"
stack(margin:40) do
menu_bar [:list_datasets, :new_dataset, :progress_report, :help]
stack(margin_top:10) do
- 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. [23/10] Open
def graphic_advance(ds, h=10)
ds_adv = ds.profile_advance
flow(width:30*MiGA::Dataset.PREPROCESSING_TASKS.size) do
nostroke
col = ["#CCC", rgb(119,130,61), rgb(160,41,50)]
- 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. [23/10] Open
def dataset(name)
header("\xC2\xBB " + c.project.name.unmiga_name +
" \xC2\xBB " + name.unmiga_name)
stack(margin:40) do
ds = c.project.dataset(name)
- 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 datasets is too high. [27/15] Open
def datasets
header "\xC2\xBB #{c.project.name.unmiga_name}"
stack(margin:40, margin_top:10) do
subtitle "#{c.project.metadata[:datasets].size} datasets:"
para ""
- 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 box is too high. [27.46/15] Open
def box(opts={}, &blk)
flow(margin_bottom:5) do
opts[:alpha] ||= 0.2
opts[:side_line] ||= miga_blue
opts[:background] ||= miga_blue(opts[:alpha])
- 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. [19/10] Open
def box(opts={}, &blk)
flow(margin_bottom:5) do
opts[:alpha] ||= 0.2
opts[:side_line] ||= miga_blue
opts[:background] ||= miga_blue(opts[:alpha])
- 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. [17/10] Open
def menu_bar actions
box do
flow do
img = {
open_project: "iconmonstr-archive-5-icon-40",
- 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. [15/10] Open
def new_project
v.new_window do |app, nv|
if MiGA::MiGA.initialized?
folder = app.ask_save_folder
if folder.nil? or MiGA::Project.exist?(folder)
- 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. [14/10] Open
def datasets
header "\xC2\xBB #{c.project.name.unmiga_name}"
stack(margin:40, margin_top:10) do
subtitle "#{c.project.metadata[:datasets].size} datasets:"
para ""
- 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. [13/10] Open
def status_bar(*msg)
stack(bottom:0) do
flow bottom:0, height:20, margin:0 do
background "#CCC"
stack(width:-300, height:1.0, margin_left:45) do
- 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. [11/10] Open
def project
header "\xC2\xBB #{c.project.name.unmiga_name}"
stack(margin:40) do
menu_bar [:list_datasets, :new_dataset, :progress_report, :help]
stack(margin_top:10) do
- 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. [11/10] Open
def set_shortcuts
key_shortcuts = {
:control_o => :open_project, :super_o => :open_project,
:control_n => :new_project, :super_n => :new_project,
:control_l => :list_datasets, :super_l => :list_datasets,
- 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 new_project
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
def new_project
v.new_window do |app, nv|
if MiGA::MiGA.initialized?
folder = app.ask_save_folder
if folder.nil? or MiGA::Project.exist?(folder)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method report
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
def report
header("\xC2\xBB " + c.project.name.unmiga_name)
stack(margin:40) do
@done_para = subtitle "Dataset tasks advance: "
@done = 0.0
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method box
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
def box(opts={}, &blk)
flow(margin_bottom:5) do
opts[:alpha] ||= 0.2
opts[:side_line] ||= miga_blue
opts[:background] ||= miga_blue(opts[:alpha])
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"