]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/doc/ale-cloudformation.txt

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit '76265755a1add77121c8f9dabb3e9bb70fe9a972' as '.vim/bundle/ale'
[etc/vim.git] / .vim / bundle / ale / doc / ale-cloudformation.txt
1 ===============================================================================
2 ALE CloudFormation Integration                     *ale-cloudformation-options*
3
4
5 ===============================================================================
6 cfn-python-lint                            *ale-cloudformation-cfn-python-lint*
7
8 cfn-python-lint is a linter for AWS CloudFormation template file.
9
10 Website: https://github.com/awslabs/cfn-python-lint
11
12
13 -------------------------------------------------------------------------------
14 Installation
15
16 Install cfn-python-lint using either pip or brew: >
17
18   pip install cfn-lint
19 <
20 If pip is not available use setuptools. >
21
22   python setup.py clean --all
23   python setup.py install
24 <
25 You can install the linter via brew on macOS. >
26
27   brew install cfn-lint
28 <
29
30 -------------------------------------------------------------------------------
31 Configuration
32
33 To get cloudformation linter to work on only CloudFormation files we must set
34 the buffer |filetype| to `yaml.cloudformation`.  This causes ALE to lint the
35 file with linters configured for cloudformation and YAML files.
36
37 Just put the following in `ftdetect/cloudformation.vim`: >
38
39   au BufRead,BufNewFile *.template.yaml set filetype=yaml.cloudformation
40
41 This will get both cloudformation and yaml linters to work on any file with
42 `.template.yaml` extension.
43
44 ===============================================================================
45   vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: