Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New linter request: squawk #857

Closed
fnimick opened this issue Aug 28, 2024 · 1 comment · Fixed by #858
Closed

New linter request: squawk #857

fnimick opened this issue Aug 28, 2024 · 1 comment · Fixed by #858

Comments

@fnimick
Copy link

fnimick commented Aug 28, 2024

This is a new linter in development for postgres migrations.

I have a local custom config set up, as an example:

    - name: squawk
      files:
        - sql
      commands:
        - name: lint
          run: npx squawk --reporter Gcc ${target}
          output: regex
          success_codes: [0, 1]
          parse_regex: "(?P<path>.*):(?P<line>\\d+):(?P<col>\\d+): (?P<severity>\\S*) (?P<code>\\S*) (?P<message>.*)"

NOTE: the line number output is currently not working, tracked at sbdchd/squawk#373

@TylerJang27
Copy link
Collaborator

Thanks for the feature request and for providing a starter setup! We'll take a look at getting this fully implemented and productionized!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants