Skip to content

Conversation

@GrimFunction
Copy link
Collaborator

No description provided.

AlteaDown and others added 11 commits October 22, 2020 15:59
…irectory-selection-block-runner

� Conflicts:
�	package.json
…ality from AdvancedSelectOnePrompt, pending further discussion.
…irectory-selection-block-runner

� Conflicts:
�	package.json
- Updated AdvancedSelectOne to be an object with an index signature to each column value
validate(selectedRow?: IAdvancedSelectOne[], choiceRows?: string[][]): boolean {
const {choiceRowFields, isResponseRequired} = this.config
validate(): boolean {
// TODO: Decide what to do with this after discussing with Brett
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a revert of Roan's changes since the interface is now different.

Not sure what should happen from here on @AlteaDown

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, so this is commented out, due to this data existing in a downloaded CSV file, that the flowRunner does not have access to, as it's on whatever downloaded the file. If we wanted to make this work, we would need to provide the Prompt with an interface it can use to use file.

Don't fail build on EsLint.
package.json Outdated
{
"name": "@floip/flow-runner",
"version": "0.0.94",
"version": "0.0.95",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once this merges, remember to up the version in flow-block-runners project.

…expression-improvements"

This reverts commit b79dce8, reversing
changes made to 83c612f.
}
constructor() {}

public setProperty(name: string, value: any): IContactProperty {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/explicit-module-boundary-types
Severity: WARN
File: src/flow-spec/Contact.ts L30

Argument 'value' should be typed with a non-any type. (@typescript-eslint/explicit-module-boundary-types)

}
constructor() {}

public setProperty(name: string, value: any): IContactProperty {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-explicit-any
Severity: WARN
File: src/flow-spec/Contact.ts L30

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)


export class Contact implements IContact {
[key: string]: IContactPropertyType
[key: string]: IContactProperty | ((...args: any[]) => IContactProperty | undefined) | string | undefined

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-explicit-any
Severity: WARN
File: src/flow-spec/Contact.ts L24

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)


import {IContactProperty} from '..'
import {createFormattedDate} from '../domain/DateFormat'
import { createFormattedDate } from '../domain/DateFormat'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reporter: ESLint
Rule: eslint.rules.prettier/prettier
Severity: ERROR
File: src/flow-spec/ContactProperty.ts L21

Replace `·createFormattedDate·` with `createFormattedDate` (prettier/prettier)


import {IContactProperty} from '..'
import {createFormattedDate} from '../domain/DateFormat'
import { createFormattedDate } from '../domain/DateFormat'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reporter: ESLint
Rule: eslint.rules.object-curly-spacing
Severity: ERROR
File: src/flow-spec/ContactProperty.ts L21

There should be no space after '{'. (object-curly-spacing)


import {IContactProperty} from '..'
import {createFormattedDate} from '../domain/DateFormat'
import { createFormattedDate } from '../domain/DateFormat'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reporter: ESLint
Rule: eslint.rules.object-curly-spacing
Severity: ERROR
File: src/flow-spec/ContactProperty.ts L21

There should be no space before '}'. (object-curly-spacing)

@github-actions
Copy link

Found 38 violations:

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L249

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L245

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L240

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L235

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L230

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L219

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L215

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L211

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L207

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L203

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L199

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L195

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L171

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L167

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.lodash/prop-shorthand
Severity: WARN
File: src/tests/FlowRunner.spec.ts L154

Do not use property shorthand syntax (lodash/prop-shorthand)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L145

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-non-null-assertion
Severity: WARN
File: src/tests/FlowRunner.spec.ts L141

Forbidden non-null assertion. (@typescript-eslint/no-non-null-assertion)

Reporter: ESLint
Rule: eslint.rules.lodash/prop-shorthand
Severity: WARN
File: src/tests/FlowRunner.spec.ts L128

Do not use property shorthand syntax (lodash/prop-shorthand)

Reporter: ESLint
Rule: eslint.rules.jest/no-disabled-tests
Severity: WARN
File: src/tests/FlowRunner.spec.ts L112

Skipped test suite (jest/no-disabled-tests)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/unbound-method
Severity: ERROR
File: src/tests/FlowRunner.spec.ts L35

Avoid referencing unbound methods which may cause unintentional scoping of `this`. (@typescript-eslint/unbound-method)

Reporter: ESLint
Rule: eslint.rules.max-len
Severity: WARN
File: src/tests/ResourceResolver.spec.ts L112

This line has a length of 146. Maximum allowed is 140. (max-len)

Reporter: ESLint
Rule: eslint.rules.max-len
Severity: WARN
File: src/tests/ResourceResolver.spec.ts L111

This line has a length of 166. Maximum allowed is 140. (max-len)

Reporter: ESLint
Rule: eslint.rules.max-len
Severity: WARN
File: src/tests/ResourceResolver.spec.ts L109

This line has a length of 157. Maximum allowed is 140. (max-len)

Reporter: ESLint
Rule: eslint.rules.max-len
Severity: WARN
File: src/tests/ResourceResolver.spec.ts L108

This line has a length of 181. Maximum allowed is 140. (max-len)

Reporter: ESLint
Rule: eslint.rules.jest/no-disabled-tests
Severity: WARN
File: src/tests/behaviours/BacktrackingBehaviour/BacktrackingBehaviourIntegration.spec.ts L15

Skipped test suite (jest/no-disabled-tests)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/ban-ts-comment
Severity: ERROR
File: src/tests/flow-spec/IBlock.spec.ts L88

Do not use "// @ts-ignore" because it alters compilation errors. (@typescript-eslint/ban-ts-comment)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/explicit-module-boundary-types
Severity: WARN
File: src/flow-spec/Contact.ts L30

Argument 'value' should be typed with a non-any type. (@typescript-eslint/explicit-module-boundary-types)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-explicit-any
Severity: WARN
File: src/flow-spec/Contact.ts L30

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-explicit-any
Severity: WARN
File: src/flow-spec/Contact.ts L24

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)

Reporter: ESLint
Rule: eslint.rules.prettier/prettier
Severity: ERROR
File: src/flow-spec/ContactProperty.ts L21

Replace `·createFormattedDate·` with `createFormattedDate` (prettier/prettier)

Reporter: ESLint
Rule: eslint.rules.object-curly-spacing
Severity: ERROR
File: src/flow-spec/ContactProperty.ts L21

There should be no space after '{'. (object-curly-spacing)

Reporter: ESLint
Rule: eslint.rules.object-curly-spacing
Severity: ERROR
File: src/flow-spec/ContactProperty.ts L21

There should be no space before '}'. (object-curly-spacing)

Reporter: ESLint
Rule: eslint.rules.line-comment-position
Severity: WARN
File: src/flow-spec/IBlock.ts L156

Expected comment to be above code. (line-comment-position)

Reporter: ESLint
Rule: eslint.rules.line-comment-position
Severity: WARN
File: src/flow-spec/IBlock.ts L151

Expected comment to be above code. (line-comment-position)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-explicit-any
Severity: WARN
File: src/flow-spec/IBlock.ts L90

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-explicit-any
Severity: WARN
File: src/flow-spec/IBlock.ts L87

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-explicit-any
Severity: WARN
File: src/flow-spec/IContext.ts L80

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)

Reporter: ESLint
Rule: eslint.rules.@typescript-eslint/no-explicit-any
Severity: WARN
File: src/flow-spec/IContext.ts L75

Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any)

validate(selectedRow?: IAdvancedSelectOne[], choiceRows?: string[][]): boolean {
const {choiceRowFields, isResponseRequired} = this.config
validate(): boolean {
// TODO: Decide what to do with this after discussing with Brett
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, so this is commented out, due to this data existing in a downloaded CSV file, that the flowRunner does not have access to, as it's on whatever downloaded the file. If we wanted to make this work, we would need to provide the Prompt with an interface it can use to use file.

@bulatgab bulatgab removed their request for review August 17, 2022 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants