abundant-leather-17386
08/22/2022, 1:52 PM./pants lint path/to/file.sql both the formatter and the linter run, while I would like to only run the linter when using the lint goal. Any tips on how to achieve this?bitter-ability-32190
08/22/2022, 2:38 PMlint implementation do anything extra above formatting?bitter-ability-32190
08/22/2022, 2:39 PMlint but in a "see if the file changed" mode.
If the tool also has extra ability to lint, that's something we're aware of, but looking for some ideas/feedback on good UI/UX on how to best support that.abundant-leather-17386
08/22/2022, 2:50 PMlint and a fix command and lint behaves differently than running fix in this mode that you describe, so therefore my preference to separate these two.bitter-ability-32190
08/22/2022, 2:51 PMbitter-ability-32190
08/22/2022, 2:52 PM--no-formatters by the way... I think that's the flag. Depending on the name attribute, that may/may not work)abundant-leather-17386
08/22/2022, 2:53 PMlint , it just takes extra processing and generates confusing output for the userabundant-leather-17386
08/22/2022, 2:53 PMbitter-ability-32190
08/22/2022, 2:54 PM--skip-formattersbitter-ability-32190
08/22/2022, 2:56 PMlint after fmt, because under-the-hood, Pants runs the formatter the exact same way in both goals (and therefore the results are memoized/cached).
Just in fmt we write results back, and in lint we simply report.abundant-leather-17386
08/22/2022, 2:56 PM./pants lint :: --skip-formattersbitter-ability-32190
08/22/2022, 2:56 PMbitter-ability-32190
08/22/2022, 2:57 PMSQLfluff lint command also checks for formatting?abundant-leather-17386
08/22/2022, 2:58 PMabundant-leather-17386
08/22/2022, 2:59 PMsqlfluff lint path/to/file.sql and sqlfluff fix path/to/file.sqlabundant-leather-17386
08/22/2022, 3:00 PMsqlfluff_lint and sqlfluff_fmt according to the documentation for adding a linter and a formatterabundant-leather-17386
08/22/2022, 3:01 PMVenvPexProcess but with different arguments used in argv.abundant-leather-17386
08/22/2022, 3:02 PM./pants lint …abundant-leather-17386
08/22/2022, 3:03 PMsqlfluff_lint.
sorry lots of messages but hope this was clearer.bitter-ability-32190
08/22/2022, 3:06 PMfix goal which acts similar to fmt, but is for semantic changes. It'll still be running in lint, so just more of an FYI)bitter-ability-32190
08/22/2022, 3:07 PMabundant-leather-17386
08/22/2022, 3:10 PMabundant-leather-17386
08/22/2022, 3:12 PMabundant-leather-17386
08/22/2022, 3:12 PMbitter-ability-32190
08/22/2022, 3:16 PMlint on your code. Also there's some things that can be fixed with fix." Also, the fact that we cache and re-use the results of running the process between fmt and lint. Means we shouldn't really be imposing much of a cost between running fmt-then-lint, or between lint-then`-fmt`
IMO lint really shines in CI, where we can check a bunch of stuff in parallel with one command.hundreds-father-404
08/22/2022, 4:53 PMfmt in your CI