Showing 146 of 406 total issues
Function create_execution
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_execution( # pylint: disable=too-many-arguments
Function initAddPlan
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function initAddPlan (caseId, plansTable) {
// + button
$('#btn-add-plan').click(function () {
addTestPlanToTestCase(caseId, plansTable)
})
- 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
Function update
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def update(execution_id, values, **kwargs):
"""
.. function:: RPC TestExecution.update(execution_id, values)
Update the selected TestExecution
- 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
Function mailto
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def mailto( # pylint: disable=invalid-name
Function advancedSearchAndAddTestCases
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
export function advancedSearchAndAddTestCases (objId, rpcMethod, href, errorMessage) {
window.addTestCases = function (testCaseIDs, sender) {
let rpcErrors = 0
// close the popup
- 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
Function quickSearchAndAddTestCase
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
export function quickSearchAndAddTestCase (objId, pageCallback, cache, initialQuery = {}) {
// + button
$('#btn-add-case').click(function () {
pageCallback(objId)
- 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
Function post
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def post(self, request):
if not self._is_request_data_valid(request):
return HttpResponseRedirect(request.META.get("HTTP_REFERER", "/"))
# Do the clone action
- 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
Function post
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def post(self, request):
form = NewRunForm(data=request.POST)
form.populate(request.POST.get("plan"))
if form.is_valid():
- 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
Function render_change_form
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def render_change_form(
Function create_permissions
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_permissions(
Function _url_view_mapping
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def _url_view_mapping(cls, root_urlpatterns):
def flatten(urlpatterns, prefix="^", result=None):
"""
Flattens the url graph
- 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
Function save_model
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def save_model(self, request, obj, form, change):
super().save_model(request, obj, form, change)
# try health check
bug_url = form.cleaned_data["hc_bug_url"]
if bug_url:
- 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
Function addPropertyValue
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
export function addPropertyValue (objectId, objectAttrName, viewMethod, addMethod, removeMethod) {
Function renderCommentsForObject
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
export function renderCommentsForObject (objId, getMethod, deleteMethod, canDelete, parentNode) {
Function add_attachment
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def add_attachment(obj_id, app_model, user, filename, b64content):
Function assign_default_group_permissions
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def assign_default_group_permissions(
Function updateSelect
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
export function updateSelect (data, selector, idAttr, valueAttr, groupAttr) {
Function propertiesCard
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
export function propertiesCard (objectId, objectAttrName, viewMethod, addMethod, removeMethod) {
Function drawChart
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
export function drawChart () {
const query = {}
const productIds = $('#id_product').val()
if (productIds.length) {
- 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
Function clone
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def clone( # pylint: disable=too-many-arguments
self,
name=None,
product=None,
version=None,
- 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"