DataDog / guarddog

:snake: :mag: GuardDog is a CLI tool to Identify malicious PyPI and npm packages
https://securitylabs.datadoghq.com/articles/guarddog-identify-malicious-pypi-packages/
Apache License 2.0
611 stars 44 forks source link

shady-links comment false positive #357

Closed sobregosodd closed 5 months ago

sobregosodd commented 5 months ago
import React from 'react';
import './style';
/**
 * react-lazy-load-image-component
 *
 * @link https://cdn.hocgin.top/icons/image.rect.loading.gif
 * @link https://cdn.hocgin.top/icons/image.rect.error.gif
 * @link https://github.com/Aljullu/react-lazy-load-image-component
 * @param className
 * @param shape
 * @param size
 * @param props
 * @constructor
 */
export declare const LazyImage: React.ForwardRefExoticComponent<Omit<LazyImageProps, "ref"> & React.RefAttributes<any>>;
declare type LazyImageProps = {
    className?: string;
    size?: number;
    src?: string;
    shape?: 'square' | 'circle';
    [key: string]: any;
};
export {};
sobregosodd commented 5 months ago

the following pattern should fix it

- pattern-not-regex: \/\*(.|\n)*?\*\/