SublimeLinter / SublimeLinter-shellcheck

This linter plugin for SublimeLinter provides an interface to shellcheck.
MIT License
210 stars 20 forks source link

ignore all violations in a file #23

Closed ConorSheehan1 closed 5 years ago

ConorSheehan1 commented 5 years ago

Feature request

As of shellcheck 0.4.4 it's possible to disable warnings for a given file. It'd be nice to see that feature here too.

https://github.com/koalaman/shellcheck/wiki/Ignore#ignoring-all-instances-in-a-file-044

Ignoring all instances in a file (0.4.4+) Add a directive at the top of the file:

  #!/bin/sh
  # shellcheck disable=SC2059

Current behaviour

shellcheck_file_level_ignore

braver commented 5 years ago

This plugin simply calls the command line utility, so you should be able to use any feature supported by shellcheck. Have you got the correct version installed?

cixtor commented 5 years ago

I can confirm, this already works as is (using ShellCheck v0.6.0).

2019-04-25 11 25 24

ConorSheehan1 commented 5 years ago

Sorry my bad. I thought I had shellcheck 0.5.0 (the latest apt packaged version), but the latest ubuntu 16.04 compatible version is 0.3.7