Showing 2,015 of 18,390 total issues
Method peca_get_all
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def peca_get_all(what, get_view)
@no_checkboxes = true
@showlinks = true
@lastaction = "#{what}_get_all"
@force_no_grid_xml = true
- Create a ticketCreate a ticket
Method validate_snmp_options
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def validate_snmp_options(options)
if options[:host].nil? || options[:host] == ""
add_flash(_("Host is required"), :error)
end
- Create a ticketCreate a ticket
Method reconfigure_handle_submit_button
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def reconfigure_handle_submit_button
options = {:src_ids => params[:objectIds]}
if params[:cb_memory] == 'true' && role_allows?(:feature => 'vm_reconfigure_memory')
options[:vm_memory] = params[:memory_type] == "MB" ? params[:memory] : params[:memory].to_i * 1024
end
- Create a ticketCreate a ticket
Method render_or_redirect_partial
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def render_or_redirect_partial(pfx)
if @redirect_controller
if ["#{pfx}_clone", "#{pfx}_migrate", "#{pfx}_publish"].include?(params[:pressed])
if flash_errors?
javascript_flash
- Create a ticketCreate a ticket
Method set_right_cell_vars
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def set_right_cell_vars(action)
case action
when "dialog_provision"
partial = "shared/dialogs/dialog_provision"
header = @right_cell_text
- Create a ticketCreate a ticket
Method show
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def show
super
@alert = @record
@email_to = []
if @alert.responds_to_events == "_hourly_timer_"
- Create a ticketCreate a ticket
Method build_expression_vars
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def build_expression_vars
@edit[:new][:expression] = @condition.expression.kind_of?(MiqExpression) ? @condition.expression.exp : nil
@edit[:new][:applies_to_exp] = @condition.applies_to_exp.kind_of?(MiqExpression) ? @condition.applies_to_exp.exp : nil
# Populate exp editor fields for the expression column
- Create a ticketCreate a ticket
Method button
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def button
case params[:pressed]
when 'embedded_configuration_script_source_refresh' # refresh repositories
repository_refresh
when "embedded_configuration_script_source_edit" # edit repository
- Create a ticketCreate a ticket
Method status
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def status
{
:images => {
:count => @project.container_images.count,
:errorCount => 0,
- Create a ticketCreate a ticket
Function createSchema
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createSchema(recordId, promise, inheritTags, evaluateAlert, tags, ansibleInventory, snapshotAge, parentType, inventoryType) {
- Create a ticketCreate a ticket
Method initialize
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(an_id, a_name, features, rbac_feature, href, type = :default, parent_id = nil, defaults = nil, icon = nil)
- Create a ticketCreate a ticket
Function link
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, _elem, attrs, ctrl) {
scope.$watch(attrs.ngModel, function() {
if ((ctrl.$modelValue != undefined)) {
setValidityForModelValue(scope, ctrl, ctrl.$modelValue, attrs.requiredIfExists);
}
- Create a ticketCreate a ticket
Function elapsed_time_human
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
elapsed_time_human: function(val, _options) {
val = ~~val;
var names = [__('Day'), __('Hour'), __('Minute'), __('Second')];
- Create a ticketCreate a ticket
Function miqBuildChartMenuEx
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.miqBuildChartMenuEx = function(col, row, _value, category, series, chart_set, chart_index) {
const chart_data = ManageIQ.charts.chartData[chart_set];
const chart_el = $(`#miq_chart_parent_${chart_set}_${chart_index}`);
const chartmenu_el = $(`#miq_chartmenu_${chart_set}_${chart_index}`);
chartmenu_el.empty();
- Create a ticketCreate a ticket
Function simpleData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const simpleData = () => {
const miqHeaders = [
{
key: 'name',
header: 'Name',
- Create a ticketCreate a ticket
Function settingsLabelTagMappingData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const settingsLabelTagMappingData = () => {
const headers = [
{ header: __('Resource Entity'), key: 'resource_entity' },
{ header: __('Resource Label'), key: 'resource_label' },
{ header: __('Tag Category'), key: 'tag_category' },
- Create a ticketCreate a ticket
Function timeProfileReportsData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const timeProfileReportsData = () => {
const miqHeaders = [
{
key: 'name',
header: 'Name',
- Create a ticketCreate a ticket
Function TableListView
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function TableListView(props) {
const { headers, values, title } = props;
/** Function to generate heders/rows for the default structured list. */
const miqListDefaultTable = () => {
- Create a ticketCreate a ticket
Method request_details_summary
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def request_details_summary(miq_request, user)
rows = [
row_data(_('Request ID'), miq_request.id),
row_data(_('Status'), _(miq_request.status)),
row_data(_('Request State'), _(miq_request.state.titleize))
- Create a ticketCreate a ticket
Method build_select_button
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def build_select_button(bgi, index)
bs_children = false
props = toolbar_button(bgi, :id => bgi[:id], :type => :buttonSelect)
return nil if props.nil?
- Create a ticketCreate a ticket