new check: LICENSE should not contain variables#368
new check: LICENSE should not contain variables#368laumann wants to merge 1 commit intopkgcore:masterfrom laumann:check-license
Conversation
|
@laumann |
|
Hmm, seems i broke some other tests.
I'll add it. I really doubt that it would be allowed though :-) |
Extend MetadataVarCheck with a new method checking the LICENSE variable
for other variables. The only exception is LICENSE itself. The check
accepts occurrences of $LICENSE and ${LICENSE}.
Closes: #366
Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Codecov Report
@@ Coverage Diff @@
## master #368 +/- ##
=======================================
Coverage 95.50% 95.51%
=======================================
Files 54 54
Lines 7366 7376 +10
Branches 1785 1788 +3
=======================================
+ Hits 7035 7045 +10
Misses 204 204
Partials 127 127
Continue to review full report at Codecov.
|
mgorny
left a comment
There was a problem hiding this comment.
Thanks for doing this!
Could you also paste the current matches as a comment on this PR?
There aren't any! I think @ulm fixed them not too long ago. |
|
but if I check out for example d07e7ff26348a277be0d4d18fc63f6bdfea94038 and run the scan I get the following hits: |
arthurzam
left a comment
There was a problem hiding this comment.
Asking for last blocker from QA team or other devs before merging it.
Extend MetadataVarCheck with a new method checking the LICENSE variable$LICENSE and $ {LICENSE}.
for other variables. The only exception is LICENSE itself. The check
accepts occurrences of
Closes: #366
Signed-off-by: Thomas Bracht Laumann Jespersen t@laumann.xyz