diff options
author | Bartek thindil Jasicki <thindil@laeran.pl> | 2020-07-02 10:11:30 +0200 |
---|---|---|
committer | Bartek thindil Jasicki <thindil@laeran.pl> | 2020-07-02 10:11:30 +0200 |
commit | 0f45d3d01d2f91d5b9ce3f01de6c288c6f2ca441 (patch) | |
tree | 675851401f8b15866ee8e3b190cfc0159a47bdde /doc | |
parent | a5e7f2c8bb61f3e882bc26ce1773b130d1fbc32b (diff) | |
parent | b3c6db173a019c37c83d4600c0c68872e91086dd (diff) | |
download | ale-0f45d3d01d2f91d5b9ce3f01de6c288c6f2ca441.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale-cloudformation.txt | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/doc/ale-cloudformation.txt b/doc/ale-cloudformation.txt index 59c6af06..9724403b 100644 --- a/doc/ale-cloudformation.txt +++ b/doc/ale-cloudformation.txt @@ -7,8 +7,40 @@ cfn-python-lint *ale-cloudformation-cfn-python-lint* cfn-python-lint is a linter for AWS CloudFormation template file. -https://github.com/awslabs/cfn-python-lint +Website: https://github.com/awslabs/cfn-python-lint +Installation +------------------------------------------------------------------------------- + + +Install cfn-python-lint using either pip or brew: > + +`pip install cfn-lint`. If pip is not available, run +`python setup.py clean --all` then `python setup.py install`. + + Homebrew (macOS): + +`brew install cfn-lint` + +< +Configuration +------------------------------------------------------------------------------- + +To get cloudformation linter to work on only CloudFormation files we must set +the buffer |filetype| to yaml.cloudformation. +This causes ALE to lint the file with linters configured for cloudformation and +yaml files. + +Just put: + +> + + au BufRead,BufNewFile *.template.yaml set filetype=yaml.cloudformation + +< + +on `ftdetect/cloudformation.vim` + +This will get both cloudformation and yaml linters to work on any file with `.template.yaml` ext. =============================================================================== vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: - |