admin管理员组文章数量:1418380
It's not clear to me what is the difference between these two commands available in SQLFluff:
fix Fix SQL files.
format Autoformat SQL files.
What is the difference between the two commands?
It's not clear to me what is the difference between these two commands available in SQLFluff:
fix Fix SQL files.
format Autoformat SQL files.
What is the difference between the two commands?
Share Improve this question edited Jan 29 at 18:07 jarlh 44.8k8 gold badges50 silver badges67 bronze badges asked Jan 29 at 17:05 Paul Razvan BergPaul Razvan Berg 21.7k13 gold badges88 silver badges133 bronze badges 1- I removed the <sql> tag since this isn't really an ISO/ANSI SQL related question. – jarlh Commented Jan 29 at 18:08
1 Answer
Reset to default 1From the docs:
format
Autoformat SQL files.
This effectively force applies sqlfluff fix with a known subset of fairly stable rules. Enabled rules are ignored, but rule exclusions (via CLI) or config are still respected.
So we see format
is a reduced/simplified or less-aggressive version of fix
. Though it's also possible the "effectively" weasel word here carries a lot of water.
版权声明:本文标题:formatting - What is the difference between the 'fix' and the 'format' commands in SQLFluff? - S 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745288011a2651618.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论