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
Turn IgnoredMatch into a dataclass #252
Comments
Can I help with this one? |
Sure, you are more than welcome to work on this! It's better if you wait until #247 is merged though: turning IgnoredMatch into a dataclass is the continuation of the work started with the rework of the configuration file. It should be merged today hopefully 🤞🏻. |
Can I start working on it now? |
Yes, you can 👍🏻 |
Should I create branch from main? |
No, it's better if you start from the |
Should IgnoredMatch support loading from config file with list of secrets? Like this:
|
No, the v2 configuration file format only supports the syntax where a match is declared as an object with # correct
secret:
ignored-matches:
- name: some secret
match: 530e5a4a7ea00814db8845dd0cae5efaa4b974a3ce1c76d0384ba715248a5dc1
- name: another secret
match: 559583106f3b760810fcb41d7cb99da6e7d118912cdeca19a57358c4b6a6a627 But this should not: # incorrect
secret:
ignored-matches:
- 530e5a4a7ea00814db8845dd0cae5efaa4b974a3ce1c76d0384ba715248a5dc1
- 559583106f3b760810fcb41d7cb99da6e7d118912cdeca19a57358c4b6a6a627 |
…aclass-#252 refactor: turn IgnoredMatch into a dataclass (#252)
IgnoredMatch is currently defined as a
Dict[str, str]
with two entries:name
andmatch
.It should be turned into a dataclass to improve type-safety and make code more expressive. The Cache code must be updated as well, since it also uses the IgnoredMatch dict.
The text was updated successfully, but these errors were encountered: