-
Notifications
You must be signed in to change notification settings - Fork 178
Things to look for in code review
If needed, include the legend for code review comments:
💡 This comment is an idea or recommendation. The PR can be merged without addressing it.
❓ This comment is a question that needs to be answered before I can properly review the PR. The PR cannot be merged until the question is answered.
❌ This comment is a concern that I would like addressed before the PR is merged. Please make a code change addressing the comment, or have a conversation with me to assuage my concerns.
It's not as easy as calling get_settings
if the script can take args which represent other YAML files to load or settings to overwrite. For example, see https://github.com/rpherbig/dr-scripts/pull/2239/files#r157391191
See https://github.com/rpherbig/dr-scripts/pull/2231#issuecomment-352250005
See https://github.com/rpherbig/dr-scripts/pull/2192#issue-280696904
See https://github.com/rpherbig/dr-scripts/pull/2231/commits/74a463e49beec670e4aa4b15af607b3366d4fd9f
See https://github.com/rpherbig/dr-scripts/pull/2292/files#r160014027
TODO: Find example
See https://github.com/rpherbig/dr-scripts/pull/2013
necromancer_healing:
wound_level_threshold: 1 # 1 - 8
was added to base.yaml. but most necromancers already had a necromancer_healing: defined and did not pick up the new subkey causing errors. See https://github.com/rpherbig/dr-scripts/pull/1998
Self explanatory maybe?
If a new setting is created that is an array or hash, it needs a corresponding entry in base-empty.yaml
See https://github.com/rpherbig/dr-scripts/pull/2311#discussion_r160055168
Only reason not to would be if you depend on those flags in multiple scripts, which should only happen in common-* files.