Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use structs as a container for Action inputs #17

Merged
merged 17 commits into from
Jan 2, 2023

Conversation

timorthi
Copy link
Owner

@timorthi timorthi commented Jan 2, 2023

No description provided.

// validateActionInputs validates input combinations that cannot be checked at the action-level.
// In particular, ensures that the destination is valid and any other inputs required for that destination are present.
func validateActionInputs() error {
func validateActionInputs() (ActionInputs, error) {
Copy link

Choose a reason for hiding this comment

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

Function validateActionInputs has 67 lines of code (exceeds 50 allowed). Consider refactoring.

s3.go Outdated Show resolved Hide resolved
// validateActionInputs validates input combinations that cannot be checked at the action-level.
// In particular, ensures that the destination is valid and any other inputs required for that destination are present.
func validateActionInputs() error {
func validateActionInputs() (ActionInputs, error) {
Copy link

Choose a reason for hiding this comment

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

Function validateActionInputs has 68 lines of code (exceeds 50 allowed). Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Jan 2, 2023

Code Climate has analyzed commit 54111c9 and detected 0 issues on this pull request.

View more on Code Climate.

@timorthi timorthi merged commit f20873a into main Jan 2, 2023
@timorthi timorthi deleted the timorthi/pass-action-inputs-in-struct branch January 2, 2023 21:32
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.

1 participant