Skip to content

Commit ca577d1

Browse files
committed
Merge branch 'dev' into gh-pages
2 parents 43fc9f3 + 29284a5 commit ca577d1

16 files changed

+17652
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = tab
6+
end_of_line = crlf
7+
charset = utf-8
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
insert_final_newline = false

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Force this repository to use Windows line endings
2+
* text=crlf
3+
4+
# Custom for Visual Studio
5+
*.ascx text
6+
*.cmd text
7+
*.coffee text
8+
*.config text
9+
*.cs text diff=csharp
10+
*.csproj text merge=union
11+
*.css text
12+
*.cshtml text
13+
*.htm text
14+
*.html text
15+
*.js text
16+
*.msbuild text
17+
*.resx text merge=union
18+
*.ruleset text
19+
*.Stylecop text
20+
*.targets text
21+
*.tt text
22+
*.txt text
23+
*.vb text
24+
*.vbhtml text
25+
*.vbproj text merge=union
26+
*.xml text
27+
*.xunit text
28+
*.sln text eol=crlf merge=union
29+
30+
# STANDARD TO MSYSGIT
31+
*.DOC DIFF=ASTEXTPLAIN
32+
*.DOC DIFF=ASTEXTPLAIN
33+
*.DOCX DIFF=ASTEXTPLAIN
34+
*.DOCX DIFF=ASTEXTPLAIN
35+
*.XLS binary
36+
*.XLS binary
37+
*.XLSX binary
38+
*.XLSX binary
39+
*.PPT binary
40+
*.PPTX binary
41+
*.DOT DIFF=ASTEXTPLAIN
42+
*.DOT DIFF=ASTEXTPLAIN
43+
*.PDF DIFF=ASTEXTPLAIN
44+
*.PDF DIFF=ASTEXTPLAIN
45+
*.RTF DIFF=ASTEXTPLAIN
46+
*.RTF DIFF=ASTEXTPLAIN
47+
48+
*.JPG BINARY
49+
*.PNG BINARY
50+
*.GIF BINARY
51+
*.ICO BINARY
52+
*.BMP BINARY
53+
*.MDF BINARY
54+
*.LDF BINARY
55+
56+
# T-SQL files
57+
*.sql eol=crlf merge=union
58+
59+
# prevent unwanted files from bloating the zip distribution package
60+
BlitzBuilder/ export-ignore
61+
sp_AskBrent/ export-ignore
62+
sp_Blitz/ export-ignore
63+
sp_BlitzIndex/ export-ignore

.github/ISSUE_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**Do you want to request a *feature* or report a *bug*?**
2+
3+
**What is the current behavior?**
4+
5+
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net
6+
7+
**What is the expected behavior?**
8+
9+
**Which versions of SQL Server and which OS are affected by this issue? Did this work in previous versions of our procedures?**

.github/PULL_REQUEST_TEMPLATE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Fixes # .
2+
3+
Changes proposed in this pull request:
4+
-
5+
-
6+
-
7+
8+
How to test this code:
9+
-
10+
-
11+
-
12+
13+
Has been tested on (remove any that don't apply):
14+
- Case-sensitive SQL Server instance
15+
- SQL Server 2008
16+
- SQL Server 2008 R2
17+
- SQL Server 2012
18+
- SQL Server 2014
19+
- SQL Server 2016
20+
- Amazon RDS
21+
- Azure SQL DB

.gitignore

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
!packages/build/
2+
$tf/
3+
*.*~
4+
*.Cache
5+
*.DotSettings.user
6+
*.VisualState.xml
7+
*.[Pp]ublish.xml
8+
*.[Rr]e[Ss]harper
9+
*.aps
10+
*.azurePubxml
11+
*.bim.layout
12+
*.bim_*.settings
13+
*.build.csdef
14+
*.cachefile
15+
*.dbmdl
16+
*.dbproj.schemaview
17+
*.dotCover
18+
*.gpState
19+
*.ilk
20+
*.ldf
21+
*.log
22+
*.mdf
23+
*.meta
24+
*.mm.*
25+
*.ncb
26+
*.ncrunch*
27+
*.ncrunchproject
28+
*.ncrunchsolution
29+
*.nupkg
30+
*.obj
31+
*.opensdf
32+
*.orig
33+
*.pch
34+
*.pdb
35+
*.pfx
36+
*.pgc
37+
*.pgd
38+
*.pidb
39+
*.psess
40+
*.publishsettings
41+
*.rdl.data
42+
*.rsp
43+
*.sbr
44+
*.scc
45+
*.sdf
46+
*.sln.docstates
47+
*.suo
48+
*.svclog
49+
*.swp
50+
*.tlb
51+
*.tlh
52+
*.tli
53+
*.tmp
54+
*.tmp_proj
55+
*.user
56+
*.userprefs
57+
*.vsp
58+
*.vspscc
59+
*.vspx
60+
*.vssscc
61+
*.zip
62+
*_i.c
63+
*_i.h
64+
*_p.c
65+
*~
66+
.*crunch*.local.xml
67+
.DS_Store
68+
.JustCode
69+
.builds
70+
.sass-cache/
71+
AppPackages/
72+
AutoTest.Net/
73+
BIN
74+
Backup*/
75+
Bin
76+
ClientBin/
77+
DEBUG
78+
Debug
79+
DocProject/Help/*.HxC
80+
DocProject/Help/*.HxT
81+
DocProject/Help/*.hhc
82+
DocProject/Help/*.hhk
83+
DocProject/Help/*.hhp
84+
DocProject/Help/Html2
85+
DocProject/Help/html
86+
DocProject/buildhelp/
87+
FakesAssemblies/
88+
Generated_Code/
89+
OBJ
90+
Obj
91+
RELEASE
92+
Release
93+
TestResult.xml
94+
Thumbs.db
95+
UpgradeLog*.XML
96+
UpgradeLog*.htm
97+
[Bb]in/
98+
[Bb]uild[Ll]og.*
99+
[Dd]ebug/
100+
[Dd]ebugPS/
101+
[Dd]ebugPublic/
102+
[Ee]xpress/
103+
[Oo]bj/
104+
[Rr]elease/
105+
[Rr]eleasePS/
106+
[Ss]tyle[Cc]op.*
107+
[Tt]est[Rr]esult*/
108+
\.DS_Store
109+
_Chutzpah*
110+
_NCrunch_*
111+
_Re*
112+
_ReSharper*/
113+
_TeamCity*
114+
_UpgradeReport_Files/
115+
bin
116+
bld/
117+
build/
118+
csx/
119+
debug
120+
dlldata.c
121+
ipch/
122+
node_modules/
123+
obj
124+
output.rtf
125+
packages/
126+
publish/
127+
release
128+
sql/
129+
test-results
130+
test-results/*
131+
x64/
132+
~$*
133+
~*.*

CONTRIBUTING.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Contributing to the SQL Server First Responder Kit
2+
3+
First of all, welcome! We're excited that you'd like to contribute. How would you like to help?
4+
5+
* [I'd like to report a bug or request an enhancement](#how-to-report-bugs-or-request-enhancements)
6+
* [I'd like to write new T-SQL checks](#how-to-write-new-t-sql-checks)
7+
* [I'd like to fix bugs in T-SQL checks](#how-to-fix-bugs-in-existing-t-sql-checks)
8+
* [I'd like to test checks written by someone else](#how-to-test-checks-written-by-someone-else)
9+
* [I'd like to write or update documentation](#how-to-write-or-update-documentation)
10+
11+
Everyone here is expected to abide by the [Contributor Covenant Code of Conduct](#the-contributor-covenant-code-of-conduct).
12+
13+
Wanna do something else, or have a question not answered here? Hop into Slack and ask us questions before you get started. [Get an invite to SQLCommunity.slack.com](https://sqlps.io/slack/), and we're in the [#FirstResponderKit channel](https://sqlcommunity.slack.com/messages/firstresponderkit/). We welcome newcomers, and there's always a way you can help.
14+
15+
## How to Report Bugs or Request Enhancements
16+
17+
Check out the [Github issues list]. Search for what you're interested in - there may already be an issue for it. Make sure to search through closed issues, too, because we often decline things that aren't a good fit for these tools.
18+
19+
If you can't find a similar issue, go ahead and open your own. Include as much detail as you can - what you're seeing now, and what you'd like to see.
20+
21+
When requesting new checks, keep in mind that we want to focus on:
22+
23+
* Actionable warnings - SQL Server folks are usually overwhelmed with data, and we only want to report on things they can actually do something about
24+
* Performance issues or reliability risks - if it's just a setting we don't agree with, let's set that aside
25+
* Things that end users or managers will notice - if we're going to have someone change a setting on their system, we want it to be worth their time
26+
27+
Now head on over to the [Github issues list] and get started.
28+
29+
## How to Write New T-SQL Checks
30+
31+
Before you code, check the [Github issues list] for what you're trying to do - there may already be an issue for it. Make sure to search through closed issues, too, because we often decline things that aren't a good fit for these tools.
32+
33+
If you've got a new idea that isn't covered in an existing issue, open a Github issue for it. Outline what you'd like to do, and how you'd like to code it. This just helps make sure other users agree that it's a good idea to add to these tools.
34+
35+
After a discussion, to start coding, [open a new Github branch.](https://www.brentozar.com/archive/2015/07/pull-request-101-for-dbas-using-github/) This lets you code in your own area without impacting anyone else. When your code is ready, test it on a case-sensitive instance of the oldest supported version of SQL Server (2008), and the newest version (2016).
36+
37+
When it's ready for review, make a pull request, and one of the core contributors can check your work.
38+
39+
## How to Fix Bugs in Existing T-SQL Checks
40+
41+
(stub)
42+
43+
## How to Test Checks Written by Someone Else
44+
45+
(stub)
46+
47+
* Test only on case-sensitive instances. A surprising number of folks out there run on these.
48+
* Test on as many currently-supported versions of SQL Server as possible. At minimum, test on the oldest version (currently 2008), and the newest version (currently 2016).
49+
50+
## How to Write or Update Documentation
51+
52+
(stub)
53+
54+
## The Contributor Covenant Code of Conduct
55+
56+
### Our Pledge
57+
58+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
59+
60+
### Our Standards
61+
62+
Examples of behavior that contributes to creating a positive environment
63+
include:
64+
65+
* Using welcoming and inclusive language
66+
* Being respectful of differing viewpoints and experiences
67+
* Gracefully accepting constructive criticism
68+
* Focusing on what is best for the community
69+
* Showing empathy towards other community members
70+
71+
Examples of unacceptable behavior by participants include:
72+
73+
* The use of sexualized language or imagery and unwelcome sexual attention or
74+
advances
75+
* Trolling, insulting/derogatory comments, and personal or political attacks
76+
* Public or private harassment
77+
* Publishing others' private information, such as a physical or electronic
78+
address, without explicit permission
79+
* Other conduct which could reasonably be considered inappropriate in a
80+
professional setting
81+
82+
### Our Responsibilities
83+
84+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
85+
86+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
87+
88+
### Scope
89+
90+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
91+
92+
### Enforcement
93+
94+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
95+
96+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
97+
98+
### Attribution
99+
100+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
101+
available at [http://contributor-covenant.org/version/1/4][version]
102+
103+
[homepage]: http://contributor-covenant.org
104+
[version]: http://contributor-covenant.org/version/1/4/
105+
[Github issues list]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues

0 commit comments

Comments
 (0)