Skip to content

Commit

Permalink
sampler setup 2
Browse files Browse the repository at this point in the history
  • Loading branch information
SQLDBAWithABeard committed Nov 26, 2022
1 parent f622e6f commit dac6977
Show file tree
Hide file tree
Showing 17 changed files with 1,992 additions and 7 deletions.
116 changes: 115 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"TylerLeonhardt.vscode-inline-values-powershell",
"cschleiden.vscode-github-actions",
"ms-mssql.mssql",
"Gruntfuggly.todo-tree"
"Gruntfuggly.todo-tree"
],
"settings": {
"editor.renderWhitespace": "all",
Expand All @@ -40,15 +40,129 @@
"editor.wordWrap": "bounded",
"files.defaultLanguage": "powershell",
"git.autofetch": true,
"powershell.developer.bundledModulesPath": "${cwd}/output/RequiredModules",
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1",
"powershell.integratedConsole.focusConsoleOnExecute": true,
"powershell.codeFormatting.preset": "OTBS",
"powershell.codeFormatting.trimWhitespaceAroundPipe": true,
"powershell.codeFormatting.useCorrectCasing": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
"powershell.codeFormatting.openBraceOnSameLine": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.codeFormatting.blankLinesAroundCommentHelpBlock": true,
"powershell.codeFormatting.blankLinesAroundFunctionDefinitionBody": true,
"powershell.codeFormatting.blankLinesAroundPipeline": true,
"powershell.codeFormatting.blankLinesAroundRegion": true,
"powershell.codeFormatting.blankLinesBeforeCloseBrace": true,
"powershell.codeFormatting.blankLinesBeforeFirstLine": true,
"powershell.codeFormatting.blankLinesBeforeOpenBrace": true,
"powershell.codeFormatting.blankLinesBetweenMemberDefinition": true,
"powershell.codeFormatting.blankLinesBetweenUsings": true,
"powershell.codeFormatting.collapseBracesToIndentation": true,
"powershell.codeFormatting.collapsePipeline": true,
"powershell.codeFormatting.newLineAfterCloseBraceInBlock": true,
"powershell.codeFormatting.newLineAfterCloseBraceInElse": true,
"powershell.codeFormatting.newLineAfterCloseBraceInFunction": true,
"powershell.codeFormatting.newLineAfterCloseBraceInIf": true,
"powershell.codeFormatting.newLineAfterCloseBraceInSwitch": true,
"powershell.codeFormatting.newLineAfterCloseBraceInTry": true,
"powershell.codeFormatting.newLineAfterCloseBraceInWhile": true,
"powershell.codeFormatting.newLineAfterColonInHashtable": true,
"powershell.codeFormatting.newLineAfterComma": true,
"powershell.codeFormatting.newLineAfterDoWhile": true,
"powershell.codeFormatting.newLineAfterFor": true,
"powershell.codeFormatting.newLineAfterForEach": true,
"powershell.codeFormatting.newLineAfterIf": true,
"powershell.codeFormatting.newLineAfterOpenBraceInBlock": true,
"powershell.codeFormatting.newLineAfterOpenBraceInElse": true,
"powershell.codeFormatting.newLineAfterOpenBraceInFunction": true,
"powershell.codeFormatting.newLineAfterOpenBraceInIf": true,
"powershell.codeFormatting.newLineAfterOpenBraceInSwitch": true,
"powershell.codeFormatting.newLineAfterOpenBraceInTry": true,
"powershell.codeFormatting.newLineAfterOpenBraceInWhile": true,
"powershell.codeFormatting.newLineAfterSwitch": true,
"powershell.codeFormatting.newLineAfterTry": true,
"powershell.codeFormatting.newLineAfterWhile": true,
"powershell.codeFormatting.newLineBeforeCloseBrace": true,
"powershell.codeFormatting.newLineBeforeElse": true,
"powershell.codeFormatting.newLineBeforeElseIf": true,
"powershell.codeFormatting.newLineBeforeCatch": true,
"powershell.codeFormatting.newLineBeforeFinally": true,
"powershell.codeFormatting.newLineBetweenTypeDefinitionMembers": true,
"powershell.codeFormatting.pipelineIndentation": 4,
"powershell.codeFormatting.spaceAfterComma": true,
"powershell.codeFormatting.spaceAfterSemicolon": true,
"powershell.codeFormatting.spaceAroundOperator": true,
"powershell.codeFormatting.spaceBeforeComma": true,
"powershell.codeFormatting.spaceBeforeSemicolon": true,
"powershell.codeFormatting.spaceBetweenEmptyBraces": true,
"powershell.codeFormatting.spaceBetweenEmptyParenthesis": true,
"powershell.codeFormatting.useConsistentIndentation": true,
"powershell.codeFormatting.useCorrectCasingForCommand": true,
"powershell.codeFormatting.useCorrectCasingForParameter": true,
"powershell.codeFormatting.useCorrectCasingForKeyword": true,
"powershell.codeFormatting.useCorrectCasingForType": true,
"powershell.codeFormatting.useCorrectCasingForVariable": true,
"powershell.codeFormatting.useConsistentWhitespace": true,
"powershell.codeFormatting.useCorrectCasingForAttribute": true,
"powershell.codeFormatting.useCorrectCasingForProperty": true,
"powershell.codeFormatting.useCorrectCasingForEnum": true,
"powershell.codeFormatting.useCorrectCasingForMethod": true,
"powershell.codeFormatting.useCorrectCasingForFunction": true,
"powershell.codeFormatting.useCorrectCasingForClass": true,
"powershell.codeFormatting.useCorrectCasingForInterface": true,
"powershell.codeFormatting.useCorrectCasingForNamespace": true,
"powershell.codeFormatting.useCorrectCasingForModule": true,
"powershell.codeFormatting.useCorrectCasingForWorkflow": true,
"powershell.codeFormatting.useCorrectCasingForParameterSet": true,
"powershell.codeFormatting.useCorrectCasingForVariableInForLoop": true,
"powershell.codeFormatting.useCorrectCasingForDSCResource": true,
"powershell.codeFormatting.useCorrectCasingForDSCResourceParameter": true,
"powershell.codeFormatting.useCorrectCasingForEnumMember": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelp": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpParameter": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpKeyword": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpParameterSet": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpType": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpFunction": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpWorkflow": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpModule": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpClass": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpInterface": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpEnum": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpDSCResource": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpExample": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpInputs": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpOutputs": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpNotes": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpLink": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpComponent": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpRole": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpFunctionality": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpForwardHelpCategory": true,
"powershell.codeFormatting.useCorrectCasingForCommentHelpForwardHelpTargetName": true,
"powershell.codeFormatting.autoCorrectAliases": true,
"powershell.codeFormatting.avoidSemicolonsAsLineTerminators": true,
"powershell.codeFormatting.useConstantStrings": true,
"powershell.codeFormatting.whitespaceBetweenParameters": true,
"powershell.codeFormatting.whitespaceInsideBrace": true,
"powershell.codeFolding.enable": true,
"powershell.codeFolding.showLastLine": false,
"powershell.enableReferencesCodeLens": true,
"powershell.powerShellDefaultVersion": "PowerShell Core 7 (x64)",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.autoClosingBrackets": "always",
"#terminal.integrated.profiles.linux#": {
"pwsh": {
"path": "pwsh",
Expand Down
23 changes: 17 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@
dbachecks.psprojs
config.json

# ignore files for VS and VS Code and PowerShell Studio
.vs/*
.vscode/*
*.pssproj
*.sln
*.TempPoint.*
output/

**.bak
*.local.*
!**/README.md
.kitchen/

*.nupkg
*.suo
*.user
*.coverage
.vs
.psproj
.sln
markdownissues.txt
node_modules
package-lock.json
10 changes: 10 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"default": true,
"MD029": {
"style": "one"
},
"MD013": true,
"MD024": false,
"MD034": false,
"no-hard-tabs": true
}
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell: Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": "${file}",
"cwd": "${file}"
}
]
}
37 changes: 37 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"cSpell.words": [
"Boggiano",
"HADR",
"Imenes",
"Olas",
"Remoting",
"SOZDBA",
"Schenk",
"auto",
"autogrowth",
"checkdb",
"count",
"cpu",
"datafile",
"djfcc",
"dstrait",
"failover",
"filegroup",
"fkck",
"growth",
"kerberos",
"logfile",
"longrunningjob",
"longrunningjobs",
"niphod",
"pingable",
"prioritisation",
"prioritised",
"spns",
"synchronised",
"tboggiano",
"trusted",
"type",
"whoisactive"
]
}
125 changes: 125 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"version": "2.0.0",
"_runner": "terminal",
"windows": {
"options": {
"shell": {
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"args": [
"-NoProfile",
"-ExecutionPolicy",
"Bypass",
"-Command"
]
}
}
},
"linux": {
"options": {
"shell": {
"executable": "/usr/bin/pwsh",
"args": [
"-NoProfile",
"-Command"
]
}
}
},
"osx": {
"options": {
"shell": {
"executable": "/usr/local/bin/pwsh",
"args": [
"-NoProfile",
"-Command"
]
}
}
},
"tasks": [
{
"label": "build",
"type": "shell",
"command": "&${cwd}/build.ps1",
"args": [],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "new",
"clear": false
},
"runOptions": {
"runOn": "default"
},
"problemMatcher": [
{
"owner": "powershell",
"fileLocation": [
"absolute"
],
"severity": "error",
"pattern": [
{
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$",
"message": 1
},
{
"regexp": "(.*)",
"code": 1
},
{
"regexp": ""
},
{
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*",
"file": 1,
"line": 2
}
]
}
]
},
{
"label": "test",
"type": "shell",
"command": "&${cwd}/build.ps1",
"args": ["-AutoRestore","-Tasks","test"],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": false
},
"problemMatcher": [
{
"owner": "powershell",
"fileLocation": [
"absolute"
],
"severity": "error",
"pattern": [
{
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$",
"message": 1
},
{
"regexp": "(.*)",
"code": 1
},
{
"regexp": ""
},
{
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*",
"file": 1,
"line": 2
}
]
}
]
}
]
}
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Changelog for workspace

The format is based on and uses the types of changes according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- For new features.

### Changed

- For changes in existing functionality.

### Deprecated

- For soon-to-be removed features.

### Removed

- For now removed features.

### Fixed

- For any bug fix.

### Security

- In case of vulnerabilities.

7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Contributing

## TODO

## Running the Tests

If want to know how to run this module's tests you can look at the [Testing Guidelines](https://dsccommunity.org/guidelines/testing-guidelines/#running-tests)
Loading

0 comments on commit dac6977

Please sign in to comment.