Showing 889 of 1,485 total issues
Function initializeConversionCache
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initializeConversionCache(
nodes: RegisteredNodes,
additionalConversions?: DOMConversionMap,
): DOMConversionCache {
const conversionCache = new Map();
Function $handleIndentAndOutdent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $handleIndentAndOutdent(
indentOrOutdent: (block: ElementNode) => void,
): boolean {
const selection = $getSelection();
if (!$isRangeSelection(selection)) {
Method validateTokenClaims
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function validateTokenClaims(string $clientId): void
{
// 1. The Issuer Identifier for the OpenID Provider (which is typically obtained during Discovery)
// MUST exactly match the value of the iss (issuer) Claim.
// Already done in parent.
Function setupListeners
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setupListeners() {
const navHandler = new KeyboardNavigationHandler(
this.list,
() => {
this.input.focus();
Function saveComment
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveComment(event) {
event.preventDefault();
event.stopPropagation();
const loading = getLoading();
Method store
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function store(Request $request)
{
$this->checkPermission('users-manage');
$authMethod = config('auth.method');
Function createDomForFile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createDomForFile(file) {
const image = elem('img', {src: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.224 7.373a.924.924 0 0 0-.92.925l-.006 7.404c0 .509.412.925.921.925h5.557a.928.928 0 0 0 .926-.925v-5.553l-2.777-2.776Zm3.239 3.239V8.067l2.545 2.545z' style='fill:%23000;fill-opacity:.75'/%3E%3C/svg%3E"});
const status = elem('div', {class: 'dropzone-file-item-status'}, []);
const progress = elem('div', {class: 'dropzone-file-item-progress'});
const imageWrap = elem('div', {class: 'dropzone-file-item-image-wrap'}, [image]);
Function paste
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function paste(editor, options, event) {
const clipboard = new Clipboard(event.clipboardData || event.dataTransfer);
// Don't handle the event ourselves if no items exist of contains table-looking data
if (!clipboard.hasItems() || clipboard.containsTabularData()) {
Method createManyJointPermissions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function createManyJointPermissions(array $originalEntities, array $roles)
{
$entities = $this->entitiesToSimpleEntities($originalEntities);
$jointPermissions = [];
Function setup
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setup() {
// Options
this.uploadedTo = this.$opts.uploadedTo;
// Element References
Method attempt
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function attempt(array $credentials = [], $remember = false)
{
$username = $credentials['username'];
$userDetails = $this->ldapService->getUserDetails($username);
Function wrapContinuousInlines
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wrapContinuousInlines(
domNode: Node,
nodes: Array<LexicalNode>,
createWrapperFn: () => ElementNode,
): Array<LexicalNode> {
Function importDOM
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static importDOM(): DOMConversionMap | null {
return {
h1: (node: Node) => ({
conversion: $convertHeadingElement,
priority: 0,
Function action
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async action(formData, context: EditorUiContext) {
context.editor.update(() => {
const table = $getTableFromSelection($getSelection());
if (!table) {
return;
Method show
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show(Request $request, ActivityQueries $activities, string $slug)
{
$shelf = $this->queries->findVisibleBySlugOrFail($slug);
$this->checkOwnablePermission('bookshelf-view', $shelf);
Function forChild
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
forChild: (lexicalNode, parentLexicalNode) => {
if ($isTableCellNode(parentLexicalNode) && !$isElementNode(lexicalNode)) {
const paragraphNode = $createParagraphNode();
if (
$isLineBreakNode(lexicalNode) &&
Function getLastTextNode
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getLastTextNode(startingNode: Node) {
let node = startingNode;
mainLoop: while (node !== null) {
if (node !== startingNode && node.nodeType === 3) {
Function getNextTextNode
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getNextTextNode(startingNode: Node) {
let node = startingNode;
mainLoop: while (node !== null) {
if (node !== startingNode && node.nodeType === 3) {
Function forChild
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
forChild: (lexicalNode, parentLexicalNode) => {
if ($isTableCellNode(parentLexicalNode) && !$isElementNode(lexicalNode)) {
const paragraphNode = $createParagraphNode();
if (
$isLineBreakNode(lexicalNode) &&
Function choice
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
choice(translation: string, count: number, replacements: Record<string, string> = {}): string {
const splitText = translation.split('|');
const exactCountRegex = /^{([0-9]+)}/;
const rangeRegex = /^\[([0-9]+),([0-9*]+)]/;
let result = null;