Showing 1,432 of 2,096 total issues
Function _createWidgets
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createWidgets: function () {
var self = this;
[ 'label', 'description', 'aliases' ].forEach( function ( subjectName ) {
var widgetName = subjectName + 'view';
Function _create
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function () {
var self = this;
$.ui.suggester.prototype._create.apply( this, arguments );
Function wbTemplate
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mw.wbTemplate = function ( key, parameter1 /* [, parameter2[, ...]] */ ) {
var i,
params = [],
template,
$wrappedTemplate,
Function _create
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function () {
var self = this;
PARENT.prototype._create.call( this );
Function _create
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function () {
var self = this;
$.ui.suggester.prototype._create.apply( this, arguments );
Method rebuildPropertyInfo
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function rebuildPropertyInfo(): int {
$propertyNamespace = $this->entityNamespaceLookup->getEntityNamespace(
Property::ENTITY_TYPE
);
if ( $propertyNamespace === null ) {
Method saveRedirect
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function saveRedirect(
EntityRedirect $redirect,
FormatableSummary $summary,
IContextSource $context,
bool $bot,
Method getChangeOps
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getChangeOps( Fingerprint $fingerprint ) {
$changeOpFactory = $this->changeOpFactory;
$changeOps = [];
if ( $this->label !== '' ) {
Function save
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save: function ( newSiteLinkSet, oldSiteLinkSet ) {
function getRemovedSiteLinkIds() {
var currentSiteIds = newSiteLinkSet.getKeys();
var removedSiteLinkIds = [];
Method showData
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function showData( WebRequest $request, OutputPage $output, $format, EntityId $id, $revision ) {
$flavor = $request->getRawVal( 'flavor' );
/** @var EntityRevision $entityRevision */
/** @var RedirectRevision $followedRedirectRevision */
Method acquireTermInLangIdsInner
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function acquireTermInLangIdsInner(
array $typeTextInLangIds,
ReplicaPrimaryAwareRecordIdsAcquirer $termInLangIdsAcquirer,
array $idsToRestore = []
) {
Function mergeParams
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private mergeParams<action1 extends ApiAction, action2 extends ApiAction>(
params1: ApiParams<action1>,
params2: ApiParams<action2>,
): ApiParams<action1&action2>|false {
const paramNames = new Set( [
Function _initDefaultSource
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initDefaultSource: function () {
var self = this;
return function ( term ) {
var deferred = $.Deferred(),
Function exports
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-stylelint' );
Function highlightSubstring
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var highlightSubstring = function ( substring, string, options ) {
if ( substring === '' || string === '' ) {
return string;
}
Method getAllowedParams
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams(): array {
return [
'prop' => [
ParamValidator::PARAM_ISMULTI => true,
ParamValidator::PARAM_TYPE => [
Function createLogger
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createLogger (ref) {
if ( ref === void 0 ) ref = {};
var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
Method saveEntityContent
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function saveEntityContent(
EntityContent $entityContent,
User $user,
$summary = '',
$flags = 0,
Method getExamplesMessages
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getExamplesMessages(): array {
$id = $this->sandboxEntityIds[ 'mainItem' ];
return [
// Creating new entities
Method getAllowedParams
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getAllowedParams(): array {
$siteIds = $this->siteLinkGlobalIdentifiersProvider->getList( $this->siteLinkGroups );
return array_merge( parent::getAllowedParams(), [
'ids' => [