Skip to content

fix: refactor to latest asdf best practices#62

Open
jthegedus wants to merge 31 commits into
mainfrom
fix/refactor-as-per-asdf-best-practices
Open

fix: refactor to latest asdf best practices#62
jthegedus wants to merge 31 commits into
mainfrom
fix/refactor-as-per-asdf-best-practices

Conversation

@jthegedus

@jthegedus jthegedus commented Jun 30, 2022

Copy link
Copy Markdown
Owner

Description

  • add Bats testing
  • add banned_commands.bats from asdf core to enforce POSIX and cross platform functionality as best as possible
  • refactor lib/* dir
  • write tests for utils/helpers

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Usage examples

How Has This Been Tested?

Checklist:

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

Comment thread test/banned_commands.bats Outdated
# followed by an underscore (indicating it's a variable and not a
# command).
for cmd in "${banned_commands[@]}"; do
run bash -c "grep -nHR --include \*.bash --include \*.sh '$cmd' . \

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

The listed dirs to check does not seem to be working as expected. It is not capturing banned commands in some of the bin/ commands. Need to fix.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

it is because of the --include as the files in bin and lib do not have extensions being grepped for

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