Showing 7 of 30 total issues
File app.ts
has 562 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// NPM Modules
import {
addYears,
closestIndexTo,
compareDesc,
Function initialize
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initialize() {
driver = new Driver({
animate: true,
opacity: 0.6,
stageBackground: "white",
Function bootstrap
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function bootstrap() {
Raven.config("https://9d2a2a92d6d84dc08743bfb197a5cb65@sentry.io/296434").install();
addBackToTop({
backgroundColor: "#002c5f",
diameter: 56,
Function loadData
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function loadData() {
const API = new SOLAPI();
const today = new Date();
let dateToDisplay = today;
Function renderDozory
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function renderDozory(dozorRecords: DozorRecord[], hide = false) {
const dozoryRow = Selectors.DozoryRow;
if (hide) {
dozoryRow.html("");
return;
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) => {
Function loadData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function loadData() {
const API = new SOLAPI();
const today = new Date();
let dateToDisplay = today;