Showing 11 of 54 total issues
File Hangman.tsx
has 475 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import * as React from 'react'
import { style } from 'typestyle'
import { Page } from '@seagull/pages'
class HangmanPage extends Page {
Function render
has 176 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div>
{this.props.fails === 0 && (
<div>
File seagull_stack.ts
has 367 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
App,
RemovalPolicy as RemPolicy,
SecretParameter,
Stack,
SeagullStack
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export class SeagullStack extends Stack {
constructor(app: App, projectName: string, stackProps?: StackProps) {
super(app, projectName, stackProps)
}
Function createSeagullApp
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async createSeagullApp() {
// preparations for deployment
const name = this.getAppName()
const globalProps = {
accountId: (await aws.getAccountId(this.sts)) || '',
Function createPipeline
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async createPipeline() {
setCredsByProfile(this.profile)
// preparations for deployment
const isTest = this.stage === 'test'
const suffix = `${isTest ? `-${this.branch}-test` : ''}-ci`
Function html
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
html() {
return (
<div>
<Helmet>
<script src="/instantclick.min.js" data-no-instant />
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const html = this.html.bind(this)
const rendered = html()
const prop = (p: any): string => (isString(p) ? p : p.bind(this)())
Function checkForWinner
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
checkForWinner() {
if (this.state.currentGameIsFinished) {
return
}
const fields = this.state.fields
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div>
{this.state.step !== 'start' && (
<HangmanAscii fails={this.state.fails} />
Function constructor
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props: SeagullPipelineProps) {
this.appPath = props.appPath
this.branch = props.branch
this.computeTypeSize = props.computeTypeSize
this.stage = props.stage