Skip to content

Commit

Permalink
Introduce simple editorconfig (microsoft#1994)
Browse files Browse the repository at this point in the history
Add a simple `.editorconfig` to set indenting and charset standards across the codebase. Also, apply rules to existing files.
  • Loading branch information
paulcam206 authored Oct 5, 2018
1 parent beb592c commit f915e02
Show file tree
Hide file tree
Showing 658 changed files with 50,379 additions and 50,365 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[**.{cpp,h,java,mm,cs,ts,js}]
indent_style = spaces
indent_size = 4
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[**.json]
indent_style = tab
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
2 changes: 1 addition & 1 deletion samples/Tests/Action.NoBody.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"url": "http://adaptivecards.io"
}
]
}
}
56 changes: 28 additions & 28 deletions samples/Tests/Action.Title.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Action.Title is highly recommended, but for the time being not enforced",
"wrap": true
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Good"
},
{
"type": "Action.Submit"
},
{
"type": "Action.Submit",
"title": ""
},
{
"type": "Action.Submit",
"title": " "
}
]
}
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Action.Title is highly recommended, but for the time being not enforced",
"wrap": true
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Good"
},
{
"type": "Action.Submit"
},
{
"type": "Action.Submit",
"title": ""
},
{
"type": "Action.Submit",
"title": " "
}
]
}
26 changes: 13 additions & 13 deletions samples/Tests/AdaptiveCard.MinVersion.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "99.0",
"minVersion": "99.0",
"fallbackText": "This card requires Adaptive Cards version 99.0, which probably doesn't exist",
"body": [
{
"type": "TextBlock",
"text": "THIS SHOULD NOT APPEAR! It should show the fallback text",
"wrap": true
}
]
}
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "99.0",
"minVersion": "99.0",
"fallbackText": "This card requires Adaptive Cards version 99.0, which probably doesn't exist",
"body": [
{
"type": "TextBlock",
"text": "THIS SHOULD NOT APPEAR! It should show the fallback text",
"wrap": true
}
]
}
18 changes: 9 additions & 9 deletions samples/Tests/AdaptiveCard.MissingVersion.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "THIS CARD SHOULD NOT RENDER. The required `version` property is missing.",
"wrap": true
}
]
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "THIS CARD SHOULD NOT RENDER. The required `version` property is missing.",
"wrap": true
}
]
}
30 changes: 15 additions & 15 deletions samples/Tests/AdaptiveCard.UnknownElements.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "This tests that unknown elements are OK",
"isSubtle": true
},
{
"type": "AmazingFeature",
"isAwesome": true
}
]
}
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "This tests that unknown elements are OK",
"isSubtle": true
},
{
"type": "AmazingFeature",
"isAwesome": true
}
]
}
22 changes: 11 additions & 11 deletions samples/Tests/AdaptiveCard.Version1.1.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.1",
"fallbackText": "This card requires Adaptive Cards version 1.1.",
"body": [
{
"type": "TextBlock",
"text": "This should not appear if renderer version < card version.",
"wrap": true
}
]
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.1",
"fallbackText": "This card requires Adaptive Cards version 1.1.",
"body": [
{
"type": "TextBlock",
"text": "This should not appear if renderer version < card version.",
"wrap": true
}
]
}
22 changes: 11 additions & 11 deletions samples/Tests/AdaptiveCard.Version1.2.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"fallbackText": "This card requires Adaptive Cards version 1.2.",
"body": [
{
"type": "TextBlock",
"text": "This should not appear if renderer version < card version.",
"wrap": true
}
]
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"fallbackText": "This card requires Adaptive Cards version 1.2.",
"body": [
{
"type": "TextBlock",
"text": "This should not appear if renderer version < card version.",
"wrap": true
}
]
}
22 changes: 11 additions & 11 deletions samples/Tests/AdaptiveCard.Version1.3.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"fallbackText": "This card requires Adaptive Cards version 1.3.",
"body": [
{
"type": "TextBlock",
"text": "This should not appear if renderer version < card version.",
"wrap": true
}
]
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"fallbackText": "This card requires Adaptive Cards version 1.3.",
"body": [
{
"type": "TextBlock",
"text": "This should not appear if renderer version < card version.",
"wrap": true
}
]
}
36 changes: 18 additions & 18 deletions samples/Tests/AdditionalProperty.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"wrap":true,
"text": "Action.OpenUrl of this card has custom property that will render button green"
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "Action.OpenUrl",
"url": "http://adaptivecards.io",
"color": "green"
}
]
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"wrap":true,
"text": "Action.OpenUrl of this card has custom property that will render button green"
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "Action.OpenUrl",
"url": "http://adaptivecards.io",
"color": "green"
}
]
}
2 changes: 1 addition & 1 deletion samples/Tests/AutoImageSet.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion samples/Tests/Column.Explicit.Size.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion samples/Tests/ColumnSet.FactSet.VerticalStretch.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion samples/Tests/ColumnSet.Image.VerticalStretch.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion samples/Tests/ColumnSet.ImageSet.VerticalStretch.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
]
}
]
}
}
70 changes: 35 additions & 35 deletions samples/Tests/ColumnSet.ImplicitColumnType.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"items": [
{
"type": "TextBlock",
"text": "Column 1"
}
]
},
{
"items": [
{
"type": "TextBlock",
"text": "Column 2"
}
]
},
{
"items": [
{
"type": "TextBlock",
"text": "Column 3"
}
]
}
]
}
]
}
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"items": [
{
"type": "TextBlock",
"text": "Column 1"
}
]
},
{
"items": [
{
"type": "TextBlock",
"text": "Column 2"
}
]
},
{
"items": [
{
"type": "TextBlock",
"text": "Column 3"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion samples/Tests/ColumnSet.Input.Date.VerticalStretch.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
]
}
]
}
}
Loading

0 comments on commit f915e02

Please sign in to comment.