sourcegraph / batch-change-examples

A collection of examples for Batch Changes
Apache License 2.0
23 stars 2 forks source link

Add linter examples #25

Open malomarrec opened 3 years ago

malomarrec commented 3 years ago

Add linter examples for:

mrnugget commented 3 years ago

@malomarrec just a note: most linters only report errors, they don't actually change or rewrite code. So running linters in a batch change might not make sense for all linters.

malomarrec commented 3 years ago

I was thinking of this in the line of: le'ts take eslint (--fix) and tflint, and run them (and assumed we could find linters with the equivalent of the --fix command in most languages). But if we don't find a linter that create fixes for a language we should definitely ignore it.