Skip to content

Commit 555311d

Browse files
author
Chuck Meyer
authored
Merge pull request #13 from kddejong/Fix/ParameterPrep
Fix/parameter prep
2 parents 9544014 + fed42b6 commit 555311d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ VS Code CloudFormation Linter uses cfn-lint to lint your CloudFormation template
44

55
## Features
66

7-
Uses cfn-lint to parse and show issues with CloudFormation templates
7+
Uses [cfn-lint](https://github.com/awslabs/cfn-python-lint) to parse and show issues with CloudFormation templates
88

99
For example if there is an image subfolder under your extension project workspace:
1010

@@ -22,3 +22,7 @@ More information about cfn-lint can be found [here](https://github.com/awslabs/c
2222
* `cfnLint.appendRules`: Array of paths containing additional Rules
2323
* `cfnLint.ignoreRules`: Array of Rule Ids to be ignored
2424
* `cfnLint.overrideSpecPath`: Path to an Specification overrule file
25+
26+
## Contribute
27+
28+
The code for this plugin can be found on GitHub at [awslabs/aws-cfn-lint-visual-studio-code](https://github.com/awslabs/aws-cfn-lint-visual-studio-code)

server/src/server.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,15 @@ function validateCloudFormationFile(document: TextDocument): void {
130130
let args = ['--format', 'json', '--template', file_to_lint];
131131

132132
if (IgnoreRules.length > 0) {
133-
args.push('--ignore-checks')
134-
135133
for (var ignoreRule of IgnoreRules) {
134+
args.push('--ignore-checks')
136135
args.push(ignoreRule)
137136
}
138137
}
139138

140139
if (AppendRules.length > 0) {
141-
args.push('--append-rules')
142-
143140
for (var appendRule of AppendRules) {
141+
args.push('--append-rules')
144142
args.push(appendRule)
145143
}
146144
}

0 commit comments

Comments
 (0)