JouzaLoL/better-zastupovani

View on GitHub

Showing 7 of 30 total issues

File app.ts has 562 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// NPM Modules
import {
    addYears,
    closestIndexTo,
    compareDesc,
Severity: Major
Found in src/script/app.ts - About 1 day to fix

    Function initialize has 112 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function initialize() {
            driver = new Driver({
                animate: true,
                opacity: 0.6,
                stageBackground: "white",
    Severity: Major
    Found in src/script/app.ts - About 4 hrs to fix

      Function bootstrap has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export default function bootstrap() {
          Raven.config("https://9d2a2a92d6d84dc08743bfb197a5cb65@sentry.io/296434").install();
          addBackToTop({
              backgroundColor: "#002c5f",
              diameter: 56,
      Severity: Minor
      Found in src/script/app.ts - About 1 hr to fix

        Function loadData has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        async function loadData() {
            const API = new SOLAPI();
            const today = new Date();
        
            let dateToDisplay = today;
        Severity: Minor
        Found in src/tv.ts - About 1 hr to fix

          Function renderDozory has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              export function renderDozory(dozorRecords: DozorRecord[], hide = false) {
                  const dozoryRow = Selectors.DozoryRow;
                  if (hide) {
                      dozoryRow.html("");
                      return;
          Severity: Minor
          Found in src/script/app.ts - About 1 hr to fix

            Function render has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                export function render(suplovaniPage: SuplovaniPage | undefined, filter?: string) {
                    // Filter only - load records from state
                    if (filter) {
                        // Function for filtering records by string
                        const filterRecords = <T>(records: T[], filterString: string) => {
            Severity: Minor
            Found in src/script/app.ts - About 1 hr to fix

              Function loadData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              async function loadData() {
                  const API = new SOLAPI();
                  const today = new Date();
              
                  let dateToDisplay = today;
              Severity: Minor
              Found in src/index.ts - About 1 hr to fix
                Severity
                Category
                Status
                Source
                Language