Showing 1,432 of 2,096 total issues
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $propertyId,
string $languageCode,
string $description,
array $editTags,
bool $isBot,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $itemId,
string $languageCode,
array $aliases,
array $editTags,
bool $isBot,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $itemId,
string $languageCode,
string $label,
array $editTags,
bool $isBot,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $itemId,
string $statementId,
array $statement,
array $editTags,
bool $isBot,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $itemId,
string $siteId,
array $sitelink,
array $editTags,
bool $isBot,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PropertyId $id,
array $requestedFields,
?string $dataType,
?Labels $labels,
?Descriptions $descriptions,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
LabelsSyntaxValidator $labelsSyntaxValidator,
ItemLabelsContentsValidator $labelsContentsValidator,
DescriptionsSyntaxValidator $descriptionsSyntaxValidator,
ItemDescriptionsContentsValidator $descriptionsContentsValidator,
AliasesValidator $aliasesValidator,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $propertyId,
string $statementId,
array $statement,
array $editTags,
bool $isBot,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
?NumericPropertyId $referenceUrlPropertyId,
?NumericPropertyId $titlePropertyId,
?NumericPropertyId $statedInPropertyId,
?NumericPropertyId $authorPropertyId,
?NumericPropertyId $publisherPropertyId,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$cacheType,
LoggerInterface $logger,
IBufferingStatsdDataFactory $statsdDataFactory,
string $cacheSecret,
TermFallbackCacheServiceFactory $serviceFactory,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$name,
$databaseName,
array $entityNamespaceIdsAndSlots,
$conceptBaseUri,
$rdfNodeNamespacePrefix,
Function getSnakView
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
SELF.prototype.getSnakView = function ( startEditingCallback, drawProperty, options, snak, $snakview, removeCallback ) {
Function _getController
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
SELF.prototype._getController = function ( $container, view, model, onRemove, value, startEditingCallback ) {
Function render
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function render(_ctx, _cache, $props, $setup, $data, $options) {
Function getStatementView
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
SELF.prototype.getStatementView = function ( startEditingCallback, entityId, propertyId, removeCallback, value, $dom ) {
Function Poppervue_type_template_id_177cf74e_render
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Poppervue_type_template_id_177cf74e_render(_ctx, _cache, $props, $setup, $data, $options) {
Function getStatementListView
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
SELF.prototype.getStatementListView = function ( startEditingCallback, entityId, propertyId, getStatementForGuid, value, $statementlistview ) {
Function getStatementView
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
SELF.prototype.getStatementView = function ( startEditingCallback, entityId, propertyId, removeCallback, value, $dom ) {
Function TaintedPoppervue_type_template_id_1cf80a67_render
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function TaintedPoppervue_type_template_id_1cf80a67_render(_ctx, _cache, $props, $setup, $data, $options) {
Function abc5
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDevtoolsGlobalHook; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getTarget; });
- 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"