Showing 67 of 109 total issues
File select-list.tsx
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import styled from "styled-components";import {useSelect, SelectOptionDefinition, SelectProvider, SelectValue} from '@mui/base/useSelect';import {useOption} from '@mui/base/useOption';import {ChevronDownIcon} from "@heroicons/react/20/solid";import {useEffect, useState, useRef, useId, useLayoutEffect, RefObject, ReactNode} from "preact/compat";
Method formElement
has 58 lines of code (exceeds 40 allowed). Consider refactoring. Open
Open
public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state): array { $element = parent::formElement($items, $delta, $element, $form, $form_state); $options = $this->getOptions($items->getEntity()); $selected_items = $this->getSelectedOptions($items);
Expected 1 space before "="; 0 found Open
Open
declare(strict_types=1);
- Exclude checks
Expected 1 space after "="; 0 found Open
Open
declare(strict_types=1);
- Exclude checks
Unused use statement Open
Open
use Drupal\views\Attribute\ViewsDisplay;
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 2 Open
Open
id: 'entity_title_heading',
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[FieldWidget(
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[FieldWidget(
- Exclude checks
Missing class doc comment Open
Open
final class TaxonomyLabelHierarchyWidget extends OptionsWidgetBase {
- Exclude checks
Missing class doc comment Open
Open
class RelativeLinkFieldItemConstraint extends SymfonyConstraint {
- Exclude checks
Expected 1 space before "="; 0 found Open
Open
declare(strict_types=1);
- Exclude checks
Unused use statement Open
Open
use Drupal\better_exposed_filters\BetterExposedFiltersHelper;
- Exclude checks
Doc comment short description must end with a full stop Open
Open
* {@inheritDoc}
- Exclude checks
Expected 1 space after "="; 0 found Open
Open
declare(strict_types=1);
- Exclude checks
Doc comment short description must end with a full stop Open
Open
* {@inheritDoc}
- Exclude checks
Expected 1 space after "|"; 0 found Open
Open
public function getLinkDefaults(int|string $nid): array {
- Exclude checks
Doc comment short description must start with a capital letter Open
Open
* {@inheritDoc}
- Exclude checks
Unused use statement Open
Open
use Drupal\Core\Validation\Attribute\Constraint;
- Exclude checks
Doc comment short description must start with a capital letter Open
Open
* {@inheritDoc}
- Exclude checks
Expected 1 space before "?"; 0 found Open
Open
$link_uri = $value->get(0)?->get('uri')?->getString();
- Exclude checks