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

Make it possible to override awk --lint option #4114

Merged
merged 1 commit into from
Mar 20, 2022

Conversation

agostonbarna
Copy link
Contributor

Currently, it's not possible to override the awk --lint option with

let g:ale_awk_gawk_options = '--lint=no-ext'

altough this could be useful for those who only use gawk and don't want to get these lint errors:

FEATURE X is a gawk extension

The idea is to move the default --lint option before the awk_gawk_options in the gawk.vim code to give the custom --lint=... option a higher precedence.

Updated & ran the tests.

Currently, it's not possible to override the awk `--lint` option with
```viml
let g:ale_awk_gawk_options = '--lint=no-ext'
```
altough this could be useful for those who only use gawk and don't want to get these lint errors:
> FEATURE X is a gawk extension

The idea is to move the default `--lint` option before the `awk_gawk_options` in the gawk.vim code to give the custom `--lint=...` option a higher precedence.
@w0rp w0rp enabled auto-merge (squash) March 20, 2022 13:50
@w0rp w0rp merged commit 5c7019f into dense-analysis:master Mar 20, 2022
@agostonbarna
Copy link
Contributor Author

Thanks @w0rp !

cyyever pushed a commit to cyyever/ale that referenced this pull request Jul 11, 2022
Currently, it's not possible to override the awk `--lint` option with

```viml
let g:ale_awk_gawk_options = '--lint=no-ext'
```

although this could be useful for those who only use gawk and don't want to get these lint errors:
> FEATURE X is a gawk extension

The idea is to move the default `--lint` option before the `awk_gawk_options` in the gawk.vim code to give the custom `--lint=...` option a higher precedence.

Co-authored-by: Barnabás Ágoston <barna@agoston.dev>
cyyever pushed a commit to cyyever/ale that referenced this pull request Jul 11, 2022
Currently, it's not possible to override the awk `--lint` option with

```viml
let g:ale_awk_gawk_options = '--lint=no-ext'
```

although this could be useful for those who only use gawk and don't want to get these lint errors:
> FEATURE X is a gawk extension

The idea is to move the default `--lint` option before the `awk_gawk_options` in the gawk.vim code to give the custom `--lint=...` option a higher precedence.

Co-authored-by: Barnabás Ágoston <barna@agoston.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants