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

ruleset-add command #3

Merged
merged 12 commits into from
Jan 13, 2023
Merged

ruleset-add command #3

merged 12 commits into from
Jan 13, 2023

Conversation

dastrong-codiga
Copy link
Contributor

Changes:

  • added a new command ruleset-add <ruleset-name>, which when invoked:
    • verifies the ruleset exists
    • checks for a codiga.yml file
      • if a git repository is detached, we look at that directory level
      • if not, we look at the current directory
    • if a codiga.yml was not found
      • we create one and add the ruleset to it
    • if a codiga.yml was found
      • we parse it and check it the ruleset is in it
        • if it is, we exit
        • if it isn't, we'll add it
  • added tests for
    • the ruleset-add command
    • YAML parsing/writing
  • improved some error messages for readability and clearer issue reporting
    • changed some utils to handle these better

@dastrong-codiga dastrong-codiga changed the title Feat/rule command ruleset-add command Jan 13, 2023
@dastrong-codiga dastrong-codiga merged commit 59f3b3a into main Jan 13, 2023
@dastrong-codiga dastrong-codiga deleted the feat/rule-command branch January 13, 2023 20:17
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