Skip to content

Commit 595be41

Browse files
committed
Update everything to the latest standards
1 parent 60569d3 commit 595be41

144 files changed

Lines changed: 1286 additions & 13542 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# EditorConfig is awesome:http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Don't use tabs for indentation.
7+
[*]
8+
indent_style = space
9+
# (Please don't specify an indent_size here; that has too many unintended consequences.)
10+
11+
# Code files
12+
[*.{cs,csx,vb,vbx}]
13+
indent_size = 4
14+
insert_final_newline = true
15+
charset = utf-8-bom
16+
17+
# Xml project files
18+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
19+
indent_size = 2
20+
21+
# Xml config files
22+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
23+
indent_size = 2
24+
25+
# JSON files
26+
[*.json]
27+
indent_size = 2
28+
29+
# Dotnet code style settings:
30+
[*.{cs,vb}]
31+
# Sort using and Import directives with System.* appearing first
32+
dotnet_sort_system_directives_first = true
33+
# Avoid "this." and "Me." if not necessary
34+
dotnet_style_qualification_for_field = false:suggestion
35+
dotnet_style_qualification_for_property = false:suggestion
36+
dotnet_style_qualification_for_method = false:suggestion
37+
dotnet_style_qualification_for_event = false:suggestion
38+
39+
# Use language keywords instead of framework type names for type references
40+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
41+
dotnet_style_predefined_type_for_member_access = true:suggestion
42+
43+
# Suggest more modern language features when available
44+
dotnet_style_object_initializer = true:suggestion
45+
dotnet_style_collection_initializer = true:suggestion
46+
dotnet_style_coalesce_expression = true:suggestion
47+
dotnet_style_null_propagation = true:suggestion
48+
dotnet_style_explicit_tuple_names = true:suggestion
49+
50+
# CSharp code style settings:
51+
[*.cs]
52+
# Prefer "var" everywhere
53+
csharp_style_var_for_built_in_types = true:suggestion
54+
csharp_style_var_when_type_is_apparent = true:suggestion
55+
csharp_style_var_elsewhere = true:suggestion
56+
57+
# Prefer method-like constructs to have a block body
58+
csharp_style_expression_bodied_methods = false:none
59+
csharp_style_expression_bodied_constructors = false:none
60+
csharp_style_expression_bodied_operators = false:none
61+
62+
# Prefer property-like constructs to have an expression-body
63+
csharp_style_expression_bodied_properties = true:none
64+
csharp_style_expression_bodied_indexers = true:none
65+
csharp_style_expression_bodied_accessors = true:none
66+
67+
# Suggest more modern language features when available
68+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
69+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
70+
csharp_style_inlined_variable_declaration = true:suggestion
71+
csharp_style_throw_expression = true:suggestion
72+
csharp_style_conditional_delegate_call = true:suggestion
73+
74+
# Newline settings
75+
csharp_new_line_before_open_brace = all
76+
csharp_new_line_before_else = true
77+
csharp_new_line_before_catch = true
78+
csharp_new_line_before_finally = true
79+
csharp_new_line_before_members_in_object_initializers = true
80+
csharp_new_line_before_members_in_anonymous_types = true
81+
82+
# Braces after if
83+
csharp_prefer_braces = false

.gitattributes

Lines changed: 29 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,33 @@
1-
###############################################################################
2-
# Set default behavior to automatically normalize line endings.
3-
###############################################################################
4-
* text=auto
1+
# This file is understood by git 1.7.2+.
52

6-
###############################################################################
7-
# Set default behavior for command prompt diff.
8-
#
9-
# This is need for earlier builds of msysgit that does not have it on by
10-
# default for csharp files.
11-
# Note: This is only used by command line
12-
###############################################################################
13-
#*.cs diff=csharp
3+
# Windows specific files should always be crlf on checkout
4+
*.bat text eol=crlf
5+
*.cmd text eol=crlf
6+
*.ps1 text eol=crlf
147

15-
###############################################################################
16-
# Set the merge driver for project and solution files
17-
#
18-
# Merging from the command prompt will add diff markers to the files if there
19-
# are conflicts (Merging from VS is not affected by the settings below, in VS
20-
# the diff markers are never inserted). Diff markers may cause the following
21-
# file extensions to fail to load in VS. An alternative would be to treat
22-
# these files as binary and thus will always conflict and require user
23-
# intervention with every merge. To do so, just uncomment the entries below
24-
###############################################################################
25-
#*.sln merge=binary
26-
#*.csproj merge=binary
27-
#*.vbproj merge=binary
28-
#*.vcxproj merge=binary
29-
#*.vcproj merge=binary
30-
#*.dbproj merge=binary
31-
#*.fsproj merge=binary
32-
#*.lsproj merge=binary
33-
#*.wixproj merge=binary
34-
#*.modelproj merge=binary
35-
#*.sqlproj merge=binary
36-
#*.wwaproj merge=binary
8+
# Check out the following as ln always for osx/linux/cygwin
9+
*.sh text eol=lf
3710

38-
###############################################################################
39-
# behavior for image files
40-
#
41-
# image files are treated as binary by default.
42-
###############################################################################
43-
#*.jpg binary
44-
#*.png binary
45-
#*.gif binary
11+
# Opt in the following types to always normalize line endings
12+
# on checkin and always use native endings on checkout.
13+
*.config text
14+
*.cs text diff=csharp
15+
*.csproj text
16+
*.md text
17+
*.msbuild text
18+
*.nuspec text
19+
*.pp text
20+
*.ps1 text
21+
*.sln text
22+
*.tt text
23+
*.txt text
24+
*.xaml text
25+
*.xml text
4626

47-
###############################################################################
48-
# diff behavior for common document formats
49-
#
50-
# Convert binary document formats to text before diffing them. This feature
51-
# is only available from the command line. Turn it on by uncommenting the
52-
# entries below.
53-
###############################################################################
54-
#*.doc diff=astextplain
55-
#*.DOC diff=astextplain
56-
#*.docx diff=astextplain
57-
#*.DOCX diff=astextplain
58-
#*.dot diff=astextplain
59-
#*.DOT diff=astextplain
60-
#*.pdf diff=astextplain
61-
#*.PDF diff=astextplain
62-
#*.rtf diff=astextplain
63-
#*.RTF diff=astextplain
27+
# Binary files
28+
*.bmp binary
29+
*.jpeg binary
30+
*.jpg binary
31+
*.nupkg binary
32+
*.png binary
33+
*.sdf binary
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
3+
name: 🔙 Regression
4+
about: Report unexpected behavior that worked previously
5+
---
6+
7+
## 🔙 Regression
8+
9+
<!--- Summary description of the regression --->
10+
11+
### Old (and correct) behavior
12+
13+
### Current behavior
14+
15+
### Reproduction steps
16+
17+
### Configuration
18+
19+
**Version:** 1.x
20+
21+
**Platform:**
22+
- [ ] :iphone: iOS
23+
- [ ] :robot: Android
24+
- [ ] :checkered_flag: WPF
25+
- [ ] :earth_americas: UWP
26+
- [ ] :apple: MacOS
27+
- [ ] :tv: tvOS
28+
- [ ] :monkey: Xamarin.Forms
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
3+
name: 🐛 Bug Report
4+
about: Create a report to help us fix bugs and make improvements
5+
---
6+
7+
## 🐛 Bug Report
8+
9+
<!--- Summary description of the bug --->
10+
11+
### Expected behavior
12+
13+
### Reproduction steps
14+
15+
### Configuration
16+
17+
**Version:** 1.x
18+
19+
**Platform:**
20+
- [ ] :iphone: iOS
21+
- [ ] :robot: Android
22+
- [ ] :checkered_flag: WPF
23+
- [ ] :earth_americas: UWP
24+
- [ ] :apple: MacOS
25+
- [ ] :tv: tvOS
26+
- [ ] :monkey: Xamarin.Forms
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
3+
name: 🚀 Feature Request
4+
about: Want to see something new included in the Framework? Submit it!
5+
---
6+
7+
## 🚀 Feature Requests
8+
9+
<!--- Summary description of the feature --->
10+
11+
### Contextualize the feature
12+
<!--- Where does it fit in the framework and why it's being included there. --->
13+
14+
### Describe the feature
15+
<!--- Use as much detail as possible here! --->
16+
17+
### Platforms affected (mark all that apply)
18+
- [ ] :iphone: iOS
19+
- [ ] :robot: Android
20+
- [ ] :checkered_flag: WPF
21+
- [ ] :earth_americas: UWP
22+
- [ ] :apple: MacOS
23+
- [ ] :tv: tvOS
24+
- [ ] :monkey: Xamarin.Forms
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
3+
name: 🏗 Enhancement Proposal
4+
about: Proposals for code cleanup, refactor and improvements in general
5+
---
6+
7+
## 🏗 Enhancement Proposal
8+
9+
<!--- A clear and concise description for your idea --->
10+
11+
### Pitch
12+
13+
<!--- How will this refactor improve contributors' lives? Input as many details as possible! --->
14+
15+
### Platforms affected (mark all that apply)
16+
- [ ] :iphone: iOS
17+
- [ ] :robot: Android
18+
- [ ] :checkered_flag: WPF
19+
- [ ] :earth_americas: UWP
20+
- [ ] :apple: MacOS
21+
- [ ] :tv: tvOS
22+
- [ ] :monkey: Xamarin.Forms
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
3+
name: 💬 Questions and Help
4+
about: If you have questions, please use this for support
5+
---
6+
7+
## 💬 Questions and Help
8+
9+
For questions or help we recommend checking:
10+
11+
- The [Xamarin tag in Stack Overflow](https://stackoverflow.com/questions/tagged/xamarin)
12+
- The [General slack channel in the Xamarin Slack](https://xamarinchat.herokuapp.com/)
13+
- Ask your question in the [Xamarin Forums](https://forums.xamarin.com/)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
Please take a moment to fill out the following:
1+
### :sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)
22

3-
Fixes # .
43

5-
Changes Proposed in this pull request:
6-
-
7-
-
8-
-
4+
### :arrow_heading_down: What is the current behavior?
5+
6+
7+
### :new: What is the new behavior (if this is a feature change)?
8+
9+
10+
### :boom: Does this PR introduce a breaking change?
11+
12+
13+
### :bug: Recommendations for testing
14+
15+
16+
### :memo: Links to relevant issues/docs
17+
18+
19+
### :thinking: Checklist before submitting
20+
21+
- [ ] All projects build
22+
- [ ] Follows style guide lines
23+
- [ ] Relevant documentation was updated
24+
- [ ] Rebased onto current develop

0 commit comments

Comments
 (0)