Showing 2,015 of 18,390 total issues
Method drift_add_record_field
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def drift_add_record_field(view, section, record, field, ridx)
- Create a ticketCreate a ticket
Method process_changed_expression
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def process_changed_expression(params, chosen_key, exp_key, exp_value, exp_valx)
- Create a ticketCreate a ticket
Method render_sync_page
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def render_sync_page(ems, selected_admin_role, selected_member_role, selected_password, selected_verify)
- Create a ticketCreate a ticket
Method handle_selection_buttons_sync_async
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def handle_selection_buttons_sync_async(members, members_chosen, _choices, _choices_chosen, sync)
- Create a ticketCreate a ticket
Method handle_selection_buttons_up_down
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def handle_selection_buttons_up_down(members, members_chosen, _choices, _choices_chosen, up)
- Create a ticketCreate a ticket
Method format_server_utilization_data
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def format_server_utilization_data(total_servers, valid_servers, warning_servers, critical_servers, servers_with_host)
- Create a ticketCreate a ticket
Method format_data
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def format_data(resource, attributes, attr_icon, attr_url, attr_hsh)
- Create a ticketCreate a ticket
Method count_only_or_objects_filtered
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def count_only_or_objects_filtered(count_only, objects, sort_by = nil, options = {}, &block)
- Create a ticketCreate a ticket
Method format_data
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def format_data(resource, attributes, attr_icon, attr_url, attr_hsh)
- Create a ticketCreate a ticket
Function getSubmitData
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
export const getSubmitData = (values) => {
let customIdentifier = '';
let description = '';
let parentResource = null;
const childResources = [];
- Read upRead up
- Create a ticketCreate a ticket
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
Function miqQsEnterEscape
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
window.miqQsEnterEscape = function(e) {
let keycode;
if (window.event) {
keycode = window.event.keyCode;
- Read upRead up
- Create a ticketCreate a ticket
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
Function asyncValidator
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
export const asyncValidator = (value, dashboardId, name) =>
http.get(`/report/dashboard_get/${dashboardId}?name=${value}`)
.then((json) => {
if (value === name) {
throw __('Use different name');
- Read upRead up
- Create a ticketCreate a ticket
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
Function textualSummaryGenericClick
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
export default function textualSummaryGenericClick(item, event) {
if (event) {
event.preventDefault();
}
- Read upRead up
- Create a ticketCreate a ticket
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
Function EmbeddedTerraformCredentialsForm
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
const EmbeddedTerraformCredentialsForm = ({ recordId }) => {
const [{ fields, initialValues, isLoading }, setState] = useState({ fields: [], isLoading: !!recordId });
const promise = useMemo(() => API.options('/api/authentications'), []);
const submitLabel = !!recordId ? __('Save') : __('Add');
- Read upRead up
- Create a ticketCreate a ticket
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
Function HostAggregateForm
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
const HostAggregateForm = ({ recordId }) => {
const [{ initialValues, isLoading, emsId }, setState] = useState({ isLoading: !!recordId });
useEffect(() => {
if (recordId) {
- Read upRead up
- Create a ticketCreate a ticket
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
Function asyncValidator
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
export const asyncValidator = (value, catalogId) =>
API.get(`/api/service_catalogs?expand=resources&filter[]=name='${value ? value.replace('%', '%25') : ''}'`)
.then((json) => {
if (json.resources.find(({ id, name }) => name === value && id !== catalogId)) {
throw __('Name has already been taken');
- Read upRead up
- Create a ticketCreate a ticket
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
Function asyncValidator
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
export const asyncValidator = (value, serverId) =>
API.get(`/api/pxe_servers?expand=resources&filter[]=name='${value ? value.replace('%', '%25') : ''}'`)
.then((json) => {
if (json.resources.find(({ id, name }) => name === value && id !== serverId)) {
throw __('Name has already been taken');
- Read upRead up
- Create a ticketCreate a ticket
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
Function CloudObjectStoreContainerForm
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
const CloudObjectStoreContainerForm = () => {
const [{
initialValues, fields, isLoading,
}, setState] = useState({});
- Read upRead up
- Create a ticketCreate a ticket
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
Function ZoneForm
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
const ZoneForm = ({ recordId }) => {
const [{ initialValues, isLoading }, setState] = useState({
isLoading: !!recordId,
});
- Read upRead up
- Create a ticketCreate a ticket
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
Function AnsibleCredentialsForm
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
const AnsibleCredentialsForm = ({ recordId }) => {
const [{ fields, initialValues, isLoading }, setState] = useState({ fields: [], isLoading: !!recordId });
const promise = useMemo(() => API.options('/api/authentications'), []);
const submitLabel = !!recordId ? __('Save') : __('Add');
- Read upRead up
- Create a ticketCreate a ticket
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"