Lint messages reported from porter should not mention mixins #2526
Labels
bug
Oops, sorry!
good first issue
Good for new contributors
hacktoberfest
Issues chosen for Hacktoberfest 2023
When porter generates a lint message directly, instead of the message coming from a mixin, we should change the message so that it doesn't print out extra "empty" text about mixins that isn't relevant.
Once #2434 is merged, you can do the following to reproduce:
expected output
actual output
You can tell that a lint result was generated by porter because Location.Mixin is an empty string. The relevant code to change is
porter/pkg/linter/linter.go
Lines 113 to 116 in 6df2790
Please update the unit tests in linter_test.go to validate that lint results generated by porter do not print out that extra text ": 0th step in the mixin ()"
See our Contributing Tutorial and New Contributor Guide for help getting started contributing to Porter.
The text was updated successfully, but these errors were encountered: