Showing 428 of 1,426 total issues
Function __column_selector
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var __column_selector = function ( settings, selector, opts )
{
var
columns = settings.aoColumns,
names = _pluck( columns, 'sName' ),
Function superMatcher
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
superMatcher = function( seed, context, xml, results, outermost ) {
var elem, j, matcher,
matchedCount = 0,
i = "0",
unmatched = seed && [],
Function _fnDrawHead
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
{
var i, iLen, j, jLen, k, kLen, n, nLocalTr;
var aoLocal = [];
var aApplied = [];
Function fitHeader
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.fitHeader = function () {
var that = this,
fixedBody,
scrollWidth,
focused,
Function execute
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function execute(
InputInterface $input,
OutputInterface $output
): void {
$output->writeln('Start searching the event store...');
- 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 attach
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var attach = function( container, buttons ) {
var i, ien, node, button;
var clickHandler = function ( e ) {
_fnPageChange( settings, e.data.action, true );
};
Method buildForm
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildForm(FormBuilderInterface $builder, array $options)
{
/** @var Company $company */
$company = $options['company'];
/** @var TranslatorInterface $translator */
Function _fnLoadState
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnLoadState ( settings, oInit, callback )
{
var i, ien;
var columns = settings.aoColumns;
var loaded = function ( s ) {
Function _slide
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_proto._slide = function _slide(direction, element) {
var _this3 = this;
var activeElement = $$$1(this._element).find(Selector.ACTIVE_ITEM)[0];
Function loadedInit
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var loadedInit = function () {
/*
* Sorting
* @todo For modularisation (1.11) this needs to do into a sort start up handler
*/
Function Button
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function () {
function Button(element) {
this._element = element;
} // Getters
Method execute
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(
InputInterface $input,
OutputInterface $output
): void {
$output->writeln('Start searching the event store...');
Function _fnFeatureHtmlFilter
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFeatureHtmlFilter ( settings )
{
var classes = settings.oClasses;
var tableId = settings.sTableId;
var language = settings.oLanguage;
Method contest
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function contest(Request $request, string $quizId): Response
{
try {
$quiz = $this->quizRepository->getById(Uuid::fromString($quizId));
Function ajaxConvert
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxConvert( s, response, jqXHR, isSuccess ) {
var conv2, current, conv, tmp, prev,
converters = {},
// Work with a copy of dataTypes in case we need to modify it for conversion
Function run
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var run = function ( s ) {
var selInt = _intVal( s );
// Selector - all
if ( s === '' ) {
Method dashboard
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function dashboard(?string $companyId): Response
{
$activeCompany = $this->getCompany($companyId);
$companies = $this->getCompaniesForUser();
Function domManip
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function domManip( collection, args, callback, ignored ) {
// Flatten any nested arrays
args = concat.apply( [], args );
Function initSearch
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BootstrapTable.prototype.initSearch = function () {
var that = this;
if (this.options.sidePagination !== 'server') {
if (this.options.customSearch !== $.noop) {
Function __cell_selector
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var __cell_selector = function ( settings, selector, opts )
{
var data = settings.aoData;
var rows = _selector_row_indexes( settings, opts );
var cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );