A custom checker for Falco rules files that can be loaded using the Flycheck syntax checker for GNU Emacs.
The default configuration for this integration relies on running Falco via docker.
- Install and enable Flycheck if not already installed.
- Copy
flycheck-falco-rules.el
locally (for example,~/elisp/flycheck-falco-rules.el
) - Add the following to your
.emacs
file:
(load "~/elisp/flycheck-falco-rules.el")
(with-eval-after-load 'flycheck
(add-hook 'flycheck-mode-hook #'flycheck-falco-rules-setup))
If you wish to use a local instance of falco instead, you can override the flycheck-falco-rules-validate-command
variable using the standard emacs customization feature. For example M-x set-variable RET flycheck-falco-rules-validate-command RET falco -o json_output=True -V RET
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
See COPYING for more details.