-
- Downloads
fix: Ensure COMMON_TASK_VALIDATIONS_EXCLUDES_REGEXP works for shfmt
The COMMON_TASK_VALIDATIONS_EXCLUDES_REGEXP values in projects expect to filter the output of 'find', which generally will start with a ./ in the way we use it in this project. For example, Instrumentor uses "^\.(/get|/metrics-catalog|/test/lib/shunit2)". But shfmt does *not* have the ./ prefix, so those sorts of expressions will fail to match and exclude necessary files. Because this variable is also still used to filter the output of find in other tasks (e.g. tflint) we can't change the expectations of what it will be filtering. Therefore, this: 1. Inserts the leading ./ on each line from shfmt --find ., so as to maintain the API. 2. Fixes the first filter to not exclude anything starting with ., which is now a problem
Please register or sign in to comment