Showing 1,432 of 2,096 total issues
Function c04e
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("861d");
// `ToPrimitive` abstract operation
- 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 TaintedIconvue_type_template_id_6df35c90_render
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
function TaintedIconvue_type_template_id_6df35c90_render(_ctx, _cache, $props, $setup, $data, $options) {
Function StatementsChanger
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
api,
revisionStore,
statementsChangerState,
statementSerializer,
statementDeserializer,
Function d066
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
/***/ (function(module, exports, __webpack_require__) {
var path = __webpack_require__("428f");
var global = __webpack_require__("da84");
- 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
Avoid deeply nested control flow statements. Open
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
} catch (error) {
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
}
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
SiteLinkLookup $siteLinkLookup,
LoggerInterface $logger,
ClientDomainDb $clientDb,
UserIdentity $user,
$siteId,
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Language $language,
SiteLinkCommentCreator $siteLinkCommentCreator,
EntitySourceDefinitions $entitySourceDefinitions,
ClientDomainDb $clientDomainDb,
CentralIdLookup $centralIdLookup = null,
Method factory
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
JobQueueGroupFactory $jobQueueGroupFactory,
ClientDomainDbFactory $clientDomainDbFactory,
DatabaseEntitySource $entitySource,
NamespaceChecker $namespaceChecker,
SettingsArray $clientSettings,
Method formatDataForEnhancedBlockLine
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
array &$data,
ExternalChange $externalChange,
Title $title,
int $count,
Language $lang,
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
LanguageFallbackChainFactory $languageFallbackChainFactory,
OutputFormatSnakFormatterFactory $snakFormatterFactory,
PropertyDataTypeLookup $propertyDataTypeLookup,
EntityIdParser $repoItemUriParser,
FallbackLabelDescriptionLookupFactory $fallbackLabelDescriptionLookupFactory,
Function needsTargetSpecificSummary
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public function needsTargetSpecificSummary( Diff $siteLinkDiff, Title $title ) {
if ( $siteLinkDiff->isEmpty() ) {
return false;
}
- 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
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
UsageLookup $usageLookup,
TitleFactory $titleFactory,
PageStore $pageStore,
LinkBatchFactory $linkBatchFactory,
string $siteId,
Method format
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
ExternalChange $externalChange,
Title $title,
int $count,
string $flag,
Language $lang,
Function addDataToResponse
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
private function addDataToResponse(
array $pageIds,
array $descriptionsByPageId,
array $sourcesByPageId,
$continue
- 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
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
ApiQuery $query,
string $moduleName,
AliasTermBuffer $aliasTermBuffer,
EntityIdLookup $idLookup,
TermBuffer $termBuffer,
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
SiteLinkLookup $siteLinkLookup,
EntityLookup $entityLookup,
UsageAccumulator $usageAccumulator,
HookContainer $hookContainer,
LoggerInterface $logger,
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Language $language,
PropertyIdResolver $propertyIdResolver,
SnaksFinder $snaksFinder,
SnakFormatter $snakFormatter,
EntityLookup $entityLookup,
Method onEnhancedChangesListModifyLineData
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
$changesList,
&$data,
$block,
$rc,
&$classes = [],
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
StatsdDataFactoryInterface $statsdDataFactory,
$siteId,
$siteGroup,
$trackLuaFunctionCallsPerSiteGroup,
$trackLuaFunctionCallsPerWiki,
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
StatementTransclusionInteractor $plainTextTransclusionInteractor,
StatementTransclusionInteractor $richWikitextTransclusionInteractor,
EntityIdParser $entityIdParser,
ContentLanguages $termsLanguages,
UsageAccumulator $usageAccumulator,