Skip to content
This repository was archived by the owner on Mar 26, 2019. It is now read-only.

Commit b2475ee

Browse files
committed
adding configuration and di packages
0 parents  commit b2475ee

Some content is hidden

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

42 files changed

+2855
-0
lines changed

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
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
14+
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
37+
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
46+
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

.gitignore

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
#OS junk files
2+
[Tt]humbs.db
3+
*.DS_Store
4+
*.orig
5+
6+
#Visual Studio files
7+
*.[Oo]bj
8+
*.user
9+
*.aps
10+
*.pch
11+
*.vspscc
12+
*.vssscc
13+
*_i.c
14+
*_p.c
15+
*.ncb
16+
*.suo
17+
*.tlb
18+
*.tlh
19+
*.bak
20+
*.[Cc]ache
21+
*.ilk
22+
*.log
23+
*.lib
24+
*.sbr
25+
*.sdf
26+
*.opensdf
27+
*.unsuccessfulbuild
28+
ipch/
29+
[Oo]bj/
30+
[Bb]in
31+
Ankh.NoLoad
32+
*.vsmdi
33+
*.lock.json
34+
35+
#Tooling
36+
.idea
37+
_ReSharper*/
38+
*.resharper
39+
[Tt]est[Rr]esult*
40+
*.sass-cache
41+
42+
#Subversion files
43+
.svn
44+
45+
# Office Temp Files
46+
~$*
47+
48+
#ncrunch
49+
*ncrunch*
50+
*crunch*.local.xml
51+
52+
#Test files
53+
*.testsettings
54+
55+
#Build
56+
BuildOutput
57+
BuildOutput/*
58+
WebPublish
59+
WebPublish/*
60+
61+
#Cake
62+
tools/*
63+
!tools/packages.config
64+
65+
.vs
66+
67+
# visual studio database projects
68+
*.dbmdl
69+
logs/*
70+
.vs/*
71+
*.project.lock.json
72+
73+
#Temp folders
74+
temp/
75+
76+
#Tools and packages
77+
.nuget
78+
.nuget/*
79+
artifacts
80+
artifacts/*
81+
packages
82+
packages/*
83+
*.lock.json
84+
85+
#BenchMarkDotNet
86+
BDN.Generated
87+
BDN.Generated/*
88+
scripts/BenchMarkDotNet.Artifacts
89+
scripts/BenchMarkDotNet.Artifacts/*
90+
**/BenchMarkDotNet.Artifacts/*
91+
!/benchmarks/App.Metrics.Benchmarks.Runner/BenchMarkDotNet.Artifacts/*
92+
/benchmarks/App.Metrics.Benchmarks.Runner/BenchMarkDotNet.Artifacts/*.log
93+
/benchmarks/App.Metrics.Benchmarks.Runner/BenchMarkDotNet.Artifacts/results/*.csv
94+
/benchmarks/App.Metrics.Benchmarks.Runner/BenchMarkDotNet.Artifacts/results/*.html
95+
96+
#NDepend
97+
*.ndproj
98+
NDependOut/*
99+
100+
#DotCover
101+
Session/*
102+
Session.html

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
notifications:
2+
email:
3+
recipients:
4+
5+
6+
language: csharp
7+
dotnet: 2.0.0-preview1-005977
8+
os:
9+
# - osx
10+
- linux
11+
before_script:
12+
- chmod a+x ./build.sh
13+
script:
14+
- ./build.sh
15+
16+
# .NET CLI require Ubuntu 14.04
17+
sudo: required
18+
dist: trusty
19+
env:
20+
global:
21+
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
22+
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
23+
addons:
24+
apt:
25+
packages:
26+
- gettext
27+
- libcurl4-openssl-dev
28+
- libicu-dev
29+
- libssl-dev
30+
- libunwind8
31+
32+
# .NET CLI require OSX 10.10
33+
# osx_image: xcode7.1
34+
# before_install:
35+
# - if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
36+
37+
mono:
38+
- 4.6.0
39+
40+
cache:
41+
directories:
42+
- src/packages
43+
- tools

AppMetrics.ruleset

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RuleSet Name="Rules for StyleCop.Analyzers" Description="Code analysis rules for StyleCop.Analyzers.csproj." ToolsVersion="14.0">
3+
<Rules AnalyzerId="AsyncUsageAnalyzers" RuleNamespace="AsyncUsageAnalyzers">
4+
<Rule Id="AvoidAsyncSuffix" Action="Error" />
5+
<Rule Id="AvoidAsyncVoid" Action="Error" />
6+
<Rule Id="UseAsyncSuffix" Action="Error" />
7+
<Rule Id="UseConfigureAwait" Action="Error" />
8+
</Rules>
9+
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
10+
<Rule Id="AD0001" Action="None" />
11+
<Rule Id="CA1001" Action="Warning" />
12+
<Rule Id="CA1009" Action="Warning" />
13+
<Rule Id="CA1016" Action="Warning" />
14+
<Rule Id="CA1033" Action="Warning" />
15+
<Rule Id="CA1049" Action="Warning" />
16+
<Rule Id="CA1060" Action="Warning" />
17+
<Rule Id="CA1061" Action="Warning" />
18+
<Rule Id="CA1063" Action="Warning" />
19+
<Rule Id="CA1065" Action="Warning" />
20+
<Rule Id="CA1301" Action="Warning" />
21+
<Rule Id="CA1400" Action="Warning" />
22+
<Rule Id="CA1401" Action="Warning" />
23+
<Rule Id="CA1403" Action="Warning" />
24+
<Rule Id="CA1404" Action="Warning" />
25+
<Rule Id="CA1405" Action="Warning" />
26+
<Rule Id="CA1410" Action="Warning" />
27+
<Rule Id="CA1415" Action="Warning" />
28+
<Rule Id="CA1821" Action="Warning" />
29+
<Rule Id="CA1900" Action="Warning" />
30+
<Rule Id="CA1901" Action="Warning" />
31+
<Rule Id="CA2002" Action="Warning" />
32+
<Rule Id="CA2100" Action="Warning" />
33+
<Rule Id="CA2101" Action="Warning" />
34+
<Rule Id="CA2108" Action="Warning" />
35+
<Rule Id="CA2111" Action="Warning" />
36+
<Rule Id="CA2112" Action="Warning" />
37+
<Rule Id="CA2114" Action="Warning" />
38+
<Rule Id="CA2116" Action="Warning" />
39+
<Rule Id="CA2117" Action="Warning" />
40+
<Rule Id="CA2122" Action="Warning" />
41+
<Rule Id="CA2123" Action="Warning" />
42+
<Rule Id="CA2124" Action="Warning" />
43+
<Rule Id="CA2126" Action="Warning" />
44+
<Rule Id="CA2131" Action="Warning" />
45+
<Rule Id="CA2132" Action="Warning" />
46+
<Rule Id="CA2133" Action="Warning" />
47+
<Rule Id="CA2134" Action="Warning" />
48+
<Rule Id="CA2137" Action="Warning" />
49+
<Rule Id="CA2138" Action="Warning" />
50+
<Rule Id="CA2140" Action="Warning" />
51+
<Rule Id="CA2141" Action="Warning" />
52+
<Rule Id="CA2146" Action="Warning" />
53+
<Rule Id="CA2147" Action="Warning" />
54+
<Rule Id="CA2149" Action="Warning" />
55+
<Rule Id="CA2200" Action="Warning" />
56+
<Rule Id="CA2202" Action="Warning" />
57+
<Rule Id="CA2207" Action="Warning" />
58+
<Rule Id="CA2212" Action="Warning" />
59+
<Rule Id="CA2213" Action="Warning" />
60+
<Rule Id="CA2214" Action="Warning" />
61+
<Rule Id="CA2216" Action="Warning" />
62+
<Rule Id="CA2220" Action="Warning" />
63+
<Rule Id="CA2229" Action="Warning" />
64+
<Rule Id="CA2231" Action="Warning" />
65+
<Rule Id="CA2232" Action="Warning" />
66+
<Rule Id="CA2235" Action="Warning" />
67+
<Rule Id="CA2236" Action="Warning" />
68+
<Rule Id="CA2237" Action="Warning" />
69+
<Rule Id="CA2238" Action="Warning" />
70+
<Rule Id="CA2240" Action="Warning" />
71+
<Rule Id="CA2241" Action="Warning" />
72+
<Rule Id="CA2242" Action="Warning" />
73+
</Rules>
74+
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp.Features" RuleNamespace="Microsoft.CodeAnalysis.CSharp.Features">
75+
<Rule Id="IDE0003" Action="None" />
76+
</Rules>
77+
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
78+
<Rule Id="SA1000" Action="Error" />
79+
<Rule Id="SA1001" Action="None" />
80+
<Rule Id="SA1021" Action="Error" />
81+
<Rule Id="SA1022" Action="Error" />
82+
<Rule Id="SA1100" Action="Error" />
83+
<Rule Id="SA1101" Action="None" />
84+
<Rule Id="SA1106" Action="Error" />
85+
<Rule Id="SA1111" Action="Error" />
86+
<Rule Id="SA1112" Action="Error" />
87+
<Rule Id="SA1119" Action="Error" />
88+
<Rule Id="SA1120" Action="None" />
89+
<Rule Id="SA1121" Action="Error" />
90+
<Rule Id="SA1122" Action="Error" />
91+
<Rule Id="SA1133" Action="Error" />
92+
<Rule Id="SA1137" Action="None" />
93+
<Rule Id="SA1200" Action="None" />
94+
<Rule Id="SA1201" Action="None" />
95+
<Rule Id="SA1300" Action="Error" />
96+
<Rule Id="SA1302" Action="Error" />
97+
<Rule Id="SA1303" Action="Error" />
98+
<Rule Id="SA1304" Action="Error" />
99+
<Rule Id="SA1305" Action="Warning" />
100+
<Rule Id="SA1309" Action="None" />
101+
<Rule Id="SA1311" Action="Error" />
102+
<Rule Id="SA1400" Action="Error" />
103+
<Rule Id="SA1401" Action="Error" />
104+
<Rule Id="SA1402" Action="Error" />
105+
<Rule Id="SA1403" Action="Error" />
106+
<Rule Id="SA1404" Action="Error" />
107+
<Rule Id="SA1405" Action="Error" />
108+
<Rule Id="SA1406" Action="Error" />
109+
<Rule Id="SA1407" Action="Error" />
110+
<Rule Id="SA1408" Action="Error" />
111+
<Rule Id="SA1410" Action="Error" />
112+
<Rule Id="SA1411" Action="Error" />
113+
<Rule Id="SA1412" Action="None" />
114+
<Rule Id="SA1413" Action="None" />
115+
<Rule Id="SA1502" Action="None" />
116+
<Rule Id="SA1503" Action="Error" />
117+
<Rule Id="SA1512" Action="None" />
118+
<Rule Id="SA1515" Action="None" />
119+
<Rule Id="SA1518" Action="None" />
120+
<Rule Id="SA1600" Action="None" />
121+
<Rule Id="SA1602" Action="None" />
122+
<Rule Id="SA1603" Action="Error" />
123+
<Rule Id="SA1609" Action="None" />
124+
<Rule Id="SA1623" Action="None" />
125+
<Rule Id="SA1633" Action="Error" />
126+
<Rule Id="SA1636" Action="Error" />
127+
<Rule Id="SA1642" Action="Error" />
128+
<Rule Id="SA1643" Action="Error" />
129+
</Rules>
130+
</RuleSet>

CONTRIBUTING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## How to contribute to App Metrics
2+
3+
Thanks for taking the time to contribute to App Metrics :+1:
4+
5+
### **Coding Style**
6+
7+
Coding style is enforced using StyleCop. To automate the clean up of most rules, the solution includes a "team-shared" [ReSharper DotSettings](AppMetrics.sln.DotSettings), the ReSharper Code Cleanup profile is named `AppMetrics`.
8+
9+
If your not familiar with ReSharper Code Cleanup, see the [code cleanup docs](https://www.jetbrains.com/help/resharper/2016.3/Code_Cleanup__Running_Code_Cleanup.html) and [settings layer docs](https://www.jetbrains.com/help/resharper/2016.3/Reference__Settings_Layers.html).
10+
11+
### **Have you found a bug?**
12+
13+
**Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/alhardy/AppMetrics/issues).
14+
15+
If you're unable to find an open issue related to the bug you've found go ahead and [open a new issue](https://github.com/alhardy/AppMetrics/issues/new). Be sure to include:
16+
17+
1. A **title and clear description**
18+
2. As much relevant information as possible including the exact steps to reproduce the bug.
19+
3. If possible provide a **code sample** or **unit test** demonstrating the bug.
20+
21+
### **Did you write a patch that fixes a bug?**
22+
23+
* Open a new [GitHub pull request](https://help.github.com/articles/about-pull-requests/) on the `dev` branch.
24+
25+
* Ensure the pull request description clearly describes the problem and solution. Include the relevant issue number in the commit message e.g. `git commit -m '#1 {message}`
26+
27+
### **Requesting a new feature?**
28+
29+
* Suggest your feature as a [new issue](https://github.com/alhardy/AppMetrics/issues/new) to start a discussion.
30+
31+
### **Contributing to the documentation**
32+
33+
App Metrics documentation is built using [docfx](https://dotnet.github.io/docfx/), you can find the github repo [here](https://github.com/alhardy/AppMetrics.DocFx) and create a new pull request on the `master` branch.

0 commit comments

Comments
 (0)