What types of changes does your code introduce to quinn?
Put an x in the boxes that apply
[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)
Further comments
Added dictionary result of {path: {keyword: count}}. Can change schema if needed.
During testing, I noticed the counts of the keywords weren't accurate because of the break command after the first keyword was found per line. For example, this test returned an "rdd" count of 4 because of the multiple matches on line 8
I assumed this was to prevent printing the same line more than once, so I removed break and added a check to only print the line the first time with line_printed starting at False and updating to True after a keyword match.
Proposed changes
Adds feature described in #214
Types of changes
What types of changes does your code introduce to quinn? Put an
x
in the boxes that applyFurther comments
Added dictionary result of {path: {keyword: count}}. Can change schema if needed.
During testing, I noticed the counts of the keywords weren't accurate because of the![image](https://github.com/MrPowers/quinn/assets/42007840/3fd80600-d577-41f0-a473-9059b352d71b)
break
command after the first keyword was found per line. For example, this test returned an "rdd" count of 4 because of the multiple matches on line 8I assumed this was to prevent printing the same line more than once, so I removed
break
and added a check to only print the line the first time withline_printed
starting at False and updating to True after a keyword match.