seagull-js/seagull

View on GitHub

Showing 11 of 54 total issues

File Hangman.tsx has 475 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import * as React from 'react'
import { style } from 'typestyle'
import { Page } from '@seagull/pages'

class HangmanPage extends Page {
Severity: Minor
Found in examples/helloworld/src/pages/Hangman.tsx - About 7 hrs to fix

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

      render() {
        return (
          <div>
            {this.props.fails === 0 && (
              <div>
    Severity: Major
    Found in examples/helloworld/src/pages/Hangman.tsx - About 7 hrs to fix

      File seagull_stack.ts has 367 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import {
        App,
        RemovalPolicy as RemPolicy,
        SecretParameter,
        Stack,
      Severity: Minor
      Found in packages/deploy-aws/src/seagull_stack.ts - About 4 hrs to fix

        SeagullStack has 25 functions (exceeds 20 allowed). Consider refactoring.
        Open

        export class SeagullStack extends Stack {
          constructor(app: App, projectName: string, stackProps?: StackProps) {
            super(app, projectName, stackProps)
          }
        
        
        Severity: Minor
        Found in packages/deploy-aws/src/seagull_stack.ts - About 2 hrs to fix

          Function createSeagullApp has 55 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            async createSeagullApp() {
              // preparations for deployment
              const name = this.getAppName()
              const globalProps = {
                accountId: (await aws.getAccountId(this.sts)) || '',
          Severity: Major
          Found in packages/deploy-aws/src/templates/seagull_project.ts - About 2 hrs to fix

            Function createPipeline has 48 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              async createPipeline() {
                setCredsByProfile(this.profile)
                // preparations for deployment
                const isTest = this.stage === 'test'
                const suffix = `${isTest ? `-${this.branch}-test` : ''}-ci`
            Severity: Minor
            Found in packages/deploy-aws/src/templates/seagull_pipeline.ts - About 1 hr to fix

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

                html() {
                  return (
                    <div>
                      <Helmet>
                        <script src="/instantclick.min.js" data-no-instant />
              Severity: Minor
              Found in examples/helloworld/src/pages/crud/Listing.tsx - About 1 hr to fix

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

                  render() {
                    const html = this.html.bind(this)
                    const rendered = html()
                
                    const prop = (p: any): string => (isString(p) ? p : p.bind(this)())
                Severity: Minor
                Found in packages/pages/src/Page.tsx - About 1 hr to fix

                  Function checkForWinner has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    checkForWinner() {
                      if (this.state.currentGameIsFinished) {
                        return
                      }
                      const fields = this.state.fields
                  Severity: Minor
                  Found in examples/helloworld/src/pages/TicTacToe.tsx - About 1 hr to fix

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

                      render() {
                        return (
                          <div>
                            {this.state.step !== 'start' && (
                              <HangmanAscii fails={this.state.fails} />
                    Severity: Minor
                    Found in examples/helloworld/src/pages/Hangman.tsx - About 1 hr to fix

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

                        constructor(props: SeagullPipelineProps) {
                          this.appPath = props.appPath
                          this.branch = props.branch
                          this.computeTypeSize = props.computeTypeSize
                          this.stage = props.stage
                      Severity: Minor
                      Found in packages/deploy-aws/src/templates/seagull_pipeline.ts - About 1 hr to fix
                        Severity
                        Category
                        Status
                        Source
                        Language