Snowflake-Labs / schemachange

A Database Change Management tool for Snowflake
Apache License 2.0
482 stars 219 forks source link

Option to output a list of files that will be run during a dry run. #156

Open drew-hansen opened 1 year ago

drew-hansen commented 1 year ago

I would love to be able to easily connect SQLFluff or another linting tool that only checks for files that are about to be deployed (rather than scanning an entire codebase).

It technically would be possible to parse the dry-run output and look for "Applying change script..." However, it only outputs the file name, not the entire path to the file which would be beneficial to use in other actions (linting, etc.).

Not sure if others have tried something similar, but I would be willing to take a stab at the code if others think this is a good idea.

sfc-gh-tmathew commented 9 months ago

Hello @drew-hansen

Thank you for reaching out.

Would a standard logging feature in issue #104 be able to help here.

Thoughts?