Showing 21 of 406 total issues
File get.js
has 743 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { fetchBugDetails } from '../../../../static/js/bugs'import { jsonRPC } from '../../../../static/js/jsonrpc'import { propertiesCard } from '../../../../static/js/properties'import { tagsCard } from '../../../../static/js/tags'import {
File get.js
has 520 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { jsonRPC } from '../../../../static/js/jsonrpc'import { tagsCard } from '../../../../static/js/tags'import { animate, advancedSearchAndAddTestCases,
Function pageTestrunsGetReadyHandler
has 162 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function pageTestrunsGetReadyHandler () { permissions.removeTag = $('#test_run_pk').data('perm-remove-tag') === 'True' permissions.addComment = $('#test_run_pk').data('perm-add-comment') === 'True' permissions.removeComment = $('#test_run_pk').data('perm-remove-comment') === 'True' permissions.viewHistoricalTestExecution = $('#test_run_pk').data('perm-view-historical-testexecution') === 'True'
Function toolbarEvents
has 154 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toolbarEvents (testPlanId, permissions) { $('.js-checkbox-toolbar').click(function (ev) { const isChecked = ev.target.checked const testCaseRows = $('.js-testcase-row').find('input')
Function pageTestcasesSearchReadyHandler
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function pageTestcasesSearchReadyHandler () { initializeDateTimePicker('#id_before') initializeDateTimePicker('#id_after') const table = $('#resultsTable').DataTable({
Function pageTestplansSearchReadyHandler
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function pageTestplansSearchReadyHandler () { initializeDateTimePicker('#id_before') initializeDateTimePicker('#id_after') const rowsNotShownMessage = $('#main-element').data('trans-some-rows-not-shown')
Function pageTestcasesGetReadyHandler
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function pageTestcasesGetReadyHandler () { const caseId = $('#test_case_pk').data('pk') const productId = $('#product_pk').data('pk') const permRemoveTag = $('#test_case_pk').data('perm-remove-tag') === 'True' const permRemoveComponent = $('#test_case_pk').data('perm-remove-component') === 'True'
Function pageTestrunsSearchReadyHandler
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function pageTestrunsSearchReadyHandler () { initializeDateTimePicker('#id_before_start_date') initializeDateTimePicker('#id_after_start_date') initializeDateTimePicker('#id_before_stop_date') initializeDateTimePicker('#id_after_stop_date')
Function drawTable
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function drawTable () { $('#resultsTable').DataTable({ pageLength: $('#navbar').data('defaultpagesize'), ajax: function (data, callbackF, settings) { const query = {}
Function renderAdditionalInformation
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderAdditionalInformation (testRunId, execution) { let linksQuery = { execution__run: testRunId } let casesQuery = { executions__run: testRunId } let componentQ = { cases__executions__run: testRunId } let tagsQ = { case__executions__run: testRunId }
Function getExpandArea
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getExpandArea (testExecution) { const container = $(`.test-execution-${testExecution.id}`) container.find('.test-execution-information .run-date').html(testExecution.stop_date || '-') container.find('.test-execution-information .build').html(testExecution.build__name)
Function pageBugsSearchReadyHandler
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function pageBugsSearchReadyHandler () { initializeDateTimePicker('#id_before') initializeDateTimePicker('#id_after') const table = $('#resultsTable').DataTable({
Function drawTable
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function drawTable () { $('.js-spinner').show() if (table) { table.destroy()
Function getTestCaseExpandArea
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTestCaseExpandArea (row, testCase, permissions) { markdown2HTML(testCase.text, row.find('.js-test-case-expand-text')) if (testCase.notes.trim().length > 0) { row.find('.js-test-case-expand-notes').html(testCase.notes) }
Function drawChart
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function drawChart () { const query = {} const productIds = $('#id_product').val() if (productIds.length) {
Function initSimpleMDE
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function initSimpleMDE (textArea, fileUploadElement, autoSaveId = window.location.toString()) { if (!textArea || !fileUploadElement) { return null }
Function attachEvents
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function attachEvents (testPlanId, permissions) { treeViewBind('#testcases-list') if (permissions['perm-change-testcase']) { // update default tester
Function tagsCard
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function tagsCard (model, objectId, displayFilter, permRemove) { // load the tags table const tagsTable = $('#tags').DataTable({ ajax: function (data, callbackF, settings) { dataTableJsonRPC('Tag.filter', displayFilter, callbackF, function (data, callback) {
Function initializePage
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function initializePage () { table = $('#test-case-health-table').DataTable({ ajax: function (data, callback, settings) { const query = {}
Function clone
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def clone( # pylint: disable=too-many-arguments,too-many-positional-arguments