-
Notifications
You must be signed in to change notification settings - Fork 235
Fix 463 introduce yamllint to improve code consistency #470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5a2bdaf
feat-463 implement yamllint config
350b1d3
Fixing yamllint warnings and errors
93a1ff8
Merge branch 'awslabs:master' into fix-463
javydekoning 40123cd
Enabling yamllint in tox
c2fd339
Merge branch 'master' into fix-463
sbkok 5159fda
enable octal-values.
javydekoning e0b2045
Making the suggested changes
javydekoning 484ee33
Fixing two more yamllint findings
javydekoning 228227e
Bumping yamllint to 1.27.1
javydekoning c019fc7
Merge branch 'master' into fix-463
javydekoning File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| --- | ||
| yaml-files: | ||
| - '*.yaml' | ||
| - '*.yml' | ||
| - '.yamllint' | ||
|
|
||
| rules: | ||
| braces: | ||
| forbid: non-empty | ||
| min-spaces-inside-empty: 0 | ||
| max-spaces-inside-empty: 0 | ||
| brackets: enable | ||
| colons: enable | ||
| commas: enable | ||
| comments: | ||
| level: warning | ||
| comments-indentation: | ||
| level: warning | ||
| document-end: disable | ||
| document-start: disable | ||
| empty-lines: enable | ||
| empty-values: disable | ||
| empty-values: disable | ||
| float-values: | ||
| forbid-inf: true | ||
| forbid-nan: true | ||
| forbid-scientific-notation: true | ||
| require-numeral-before-decimal: true | ||
| hyphens: enable | ||
| indentation: enable | ||
| key-duplicates: enable | ||
| key-ordering: disable | ||
| line-length: disable | ||
| new-line-at-end-of-file: disable | ||
| new-lines: enable | ||
| octal-values: enable | ||
| quoted-strings: disable | ||
| trailing-spaces: enable | ||
| truthy: | ||
| level: error | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,5 +8,6 @@ pytest~=6.2.5 | |
| pyyaml>=5.4.1 | ||
| schema~=0.7.5 | ||
| tox==3.24.4 | ||
| yamllint~=1.27.1 | ||
| cfn-lint~=0.60.1 | ||
| docutils~=0.15.2 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| # // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| # // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| AWSTemplateFormatVersion: '2010-09-09' | ||
| AWSTemplateFormatVersion: "2010-09-09" | ||
| Description: ADF CloudFormation Sample Template (Service Catalog Product) | ||
| Metadata: | ||
| License: Apache-2.0 | ||
|
|
@@ -36,7 +36,8 @@ Resources: | |
| Name: Cloud9 Development Environment | ||
| Owner: Company | ||
| ProvisioningArtifactParameters: | ||
| - Info: { "LoadTemplateFromURL": !Ref ProductXTemplateURL } | ||
| - Info: | ||
| LoadTemplateFromURL: !Ref ProductXTemplateURL | ||
| SupportDescription: For help with Cloud9 Dev Environment contact us | ||
| SupportEmail: [email protected] | ||
| SupportUrl: http://example.com | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.