Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Interactive ruleset selection (including multi inputs)#4

Merged
dastrong-codiga merged 7 commits intomainfrom
feat/interactive-rulesets
Jan 17, 2023
Merged

Interactive ruleset selection (including multi inputs)#4
dastrong-codiga merged 7 commits intomainfrom
feat/interactive-rulesets

Conversation

@dastrong-codiga
Copy link
Copy Markdown
Contributor

Changes

  • added interactive selection for rulesets when no rulesets are specified in the ruleset-add command
    • codiga ruleset-add - this brings up an interactive menu to filter and select rulesets
    • codiga ruleset-add [...rulesetNames] will bypass the interactive menu and just create/add valid rulesets to a codiga.yml file
  • added tests for new functionality

Notes

  • we filter duplicates before querying
    • codiga ruleset-add jsx-react jsx-react
  • we show custom messaging:
    • if a ruleset doesn't exist
    • if a ruleset is already used in their codiga.yml
    • if no rulesets are selected in interactive mode
    • if we are creating or adding to a codiga.yml file
    • indicating how many rulesets have been added to their codiga.yml file

@dastrong-codiga dastrong-codiga merged commit 148d575 into main Jan 17, 2023
@dastrong-codiga dastrong-codiga deleted the feat/interactive-rulesets branch January 17, 2023 19:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant