wtetsu/mouse-dictionary

View on GitHub

Showing 2 of 2 total issues

Draggable has 22 functions (exceeds 20 allowed). Consider refactoring.
Open

export default class Draggable {
  constructor(normalStyles, movingStyles) {
    this.normalStyles = normalStyles;
    this.movingStyles = movingStyles;
    this.mainElement = null;
Severity: Minor
Found in src/main/lib/draggable.js - About 2 hrs to fix

    Function Main has 155 lines of code (exceeds 150 allowed). Consider refactoring.
    Open

    export const Main: React.FC = () => {
      const refPreview = useRef<Preview>();
    
      const [state, dispatch] = useReducer(reducer, {
        ...initialState,
    Severity: Major
    Found in src/options/page/Main.tsx - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language