Skip to content

Commit 57eb30c

Browse files
authored
Merge pull request #6 from martijn00/template
Add github templates
2 parents c801269 + bfc4d22 commit 57eb30c

8 files changed

+231
-0
lines changed

.editorconfig

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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

.gitattributes

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file is understood by git 1.7.2+.
2+
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
7+
8+
# Check out the following as ln always for osx/linux/cygwin
9+
*.sh text eol=lf
10+
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
26+
27+
# Binary files
28+
*.bmp binary
29+
*.jpeg binary
30+
*.jpg binary
31+
*.nupkg binary
32+
*.png binary
33+
*.sdf binary
34+
35+
*.java linguist-language=Dart
36+
*.swift linguist-language=Dart
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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

.github/ISSUE_TEMPLATE/e-question.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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 [Flutter tag in Stack Overflow](https://stackoverflow.com/questions/tagged/flutter)

.github/PULL_REQUEST_TEMPLATE.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
### :sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)
2+
3+
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 ([code style guide](https://github.com/BaseflowIT/flutter-geolocator/blob/develop/CONTRIBUTING.md))
23+
- [ ] Relevant documentation was updated
24+
- [ ] Rebased onto current develop

0 commit comments

Comments
 (0)