Skip to content

Commit 1b1108a

Browse files
authored
New resource FileSystemAccessRule (#1)
- FileSystemDsc - Added resource FileSystemAccessRule
1 parent 694d615 commit 1b1108a

30 files changed

Lines changed: 3746 additions & 1 deletion

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Needed for publishing of examples, build worker defaults to core.autocrlf=input.
2+
* text eol=crlf
3+
4+
# Ensure any exe files are treated as binary
5+
*.exe binary
6+
*.jpg binary
7+
*.xl* binary
8+
*.pfx binary

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
output/
2+
.vs
3+
.vscode

.markdownlint.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"default": true,
3+
"MD029": {
4+
"style": "one"
5+
},
6+
"MD013": true,
7+
"MD024": false,
8+
"MD034": false,
9+
"no-hard-tabs": true
10+
}

.vscode/analyzersettings.psd1

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
@{
2+
CustomRulePath = '.\output\RequiredModules\DscResource.AnalyzerRules'
3+
includeDefaultRules = $true
4+
IncludeRules = @(
5+
# DSC Resource Kit style guideline rules.
6+
'PSAvoidDefaultValueForMandatoryParameter',
7+
'PSAvoidDefaultValueSwitchParameter',
8+
'PSAvoidInvokingEmptyMembers',
9+
'PSAvoidNullOrEmptyHelpMessageAttribute',
10+
'PSAvoidUsingCmdletAliases',
11+
'PSAvoidUsingComputerNameHardcoded',
12+
'PSAvoidUsingDeprecatedManifestFields',
13+
'PSAvoidUsingEmptyCatchBlock',
14+
'PSAvoidUsingInvokeExpression',
15+
'PSAvoidUsingPositionalParameters',
16+
'PSAvoidShouldContinueWithoutForce',
17+
'PSAvoidUsingWMICmdlet',
18+
'PSAvoidUsingWriteHost',
19+
'PSDSCReturnCorrectTypesForDSCFunctions',
20+
'PSDSCStandardDSCFunctionsInResource',
21+
'PSDSCUseIdenticalMandatoryParametersForDSC',
22+
'PSDSCUseIdenticalParametersForDSC',
23+
'PSMisleadingBacktick',
24+
'PSMissingModuleManifestField',
25+
'PSPossibleIncorrectComparisonWithNull',
26+
'PSProvideCommentHelp',
27+
'PSReservedCmdletChar',
28+
'PSReservedParams',
29+
'PSUseApprovedVerbs',
30+
'PSUseCmdletCorrectly',
31+
'PSUseOutputTypeCorrectly',
32+
'PSAvoidGlobalVars',
33+
'PSAvoidUsingConvertToSecureStringWithPlainText',
34+
'PSAvoidUsingPlainTextForPassword',
35+
'PSAvoidUsingUsernameAndPasswordParams',
36+
'PSDSCUseVerboseMessageInDSCResource',
37+
'PSShouldProcess',
38+
'PSUseDeclaredVarsMoreThanAssignments',
39+
'PSUsePSCredentialType',
40+
41+
'Measure-*'
42+
)
43+
44+
}

.vscode/settings.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"powershell.codeFormatting.openBraceOnSameLine": false,
3+
"powershell.codeFormatting.newLineAfterOpenBrace": true,
4+
"powershell.codeFormatting.newLineAfterCloseBrace": true,
5+
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
6+
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
7+
"powershell.codeFormatting.whitespaceAroundOperator": true,
8+
"powershell.codeFormatting.whitespaceAfterSeparator": true,
9+
"powershell.codeFormatting.ignoreOneLineBlock": false,
10+
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",
11+
"powershell.codeFormatting.preset": "Custom",
12+
"powershell.codeFormatting.alignPropertyValuePairs": true,
13+
"files.trimTrailingWhitespace": true,
14+
"files.insertFinalNewline": true,
15+
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1",
16+
"powershell.scriptAnalysis.enable": true,
17+
"files.associations": {
18+
"*.ps1xml": "xml"
19+
},
20+
"cSpell.words": [
21+
"COMPANYNAME",
22+
"ICONURI",
23+
"LICENSEURI",
24+
"PROJECTURI",
25+
"RELEASENOTES",
26+
"buildhelpers",
27+
"endregion",
28+
"gitversion",
29+
"icontains",
30+
"keepachangelog",
31+
"notin",
32+
"pscmdlet",
33+
"steppable"
34+
],
35+
"[markdown]": {
36+
"files.encoding": "utf8"
37+
}
38+
}

.vscode/tasks.json

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"version": "2.0.0",
3+
"_runner": "terminal",
4+
"windows": {
5+
"options": {
6+
"shell": {
7+
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
8+
"args": [
9+
"-NoProfile",
10+
"-ExecutionPolicy",
11+
"Bypass",
12+
"-Command"
13+
]
14+
}
15+
}
16+
},
17+
"linux": {
18+
"options": {
19+
"shell": {
20+
"executable": "/usr/bin/pwsh",
21+
"args": [
22+
"-NoProfile",
23+
"-Command"
24+
]
25+
}
26+
}
27+
},
28+
"osx": {
29+
"options": {
30+
"shell": {
31+
"executable": "/usr/local/bin/pwsh",
32+
"args": [
33+
"-NoProfile",
34+
"-Command"
35+
]
36+
}
37+
}
38+
},
39+
"tasks": [
40+
{
41+
"label": "build",
42+
"type": "shell",
43+
"command": "&${cwd}/build.ps1",
44+
"args": ["-AutoRestore"],
45+
"presentation": {
46+
"echo": true,
47+
"reveal": "always",
48+
"focus": true,
49+
"panel": "new",
50+
"clear": false
51+
},
52+
"runOptions": {
53+
"runOn": "default"
54+
},
55+
"problemMatcher": [
56+
{
57+
"owner": "powershell",
58+
"fileLocation": [
59+
"absolute"
60+
],
61+
"severity": "error",
62+
"pattern": [
63+
{
64+
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$",
65+
"message": 1
66+
},
67+
{
68+
"regexp": "(.*)",
69+
"code": 1
70+
},
71+
{
72+
"regexp": ""
73+
},
74+
{
75+
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*",
76+
"file": 1,
77+
"line": 2
78+
}
79+
]
80+
}
81+
]
82+
},
83+
{
84+
"label": "test",
85+
"type": "shell",
86+
"command": "&${cwd}/build.ps1",
87+
"args": ["-AutoRestore","-Tasks","test"],
88+
"presentation": {
89+
"echo": true,
90+
"reveal": "always",
91+
"focus": true,
92+
"panel": "dedicated",
93+
"showReuseMessage": true,
94+
"clear": false
95+
},
96+
"problemMatcher": [
97+
{
98+
"owner": "powershell",
99+
"fileLocation": [
100+
"absolute"
101+
],
102+
"severity": "error",
103+
"pattern": [
104+
{
105+
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$",
106+
"message": 1
107+
},
108+
{
109+
"regexp": "(.*)",
110+
"code": 1
111+
},
112+
{
113+
"regexp": ""
114+
},
115+
{
116+
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*",
117+
"file": 1,
118+
"line": 2
119+
}
120+
]
121+
}
122+
]
123+
}
124+
]
125+
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Change log for FileSystemDsc
2+
3+
The format is based on and uses the types of changes according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
6+
## [Unreleased]
7+
8+
### Added
9+
10+
- FileSystemDsc
11+
- Added resource FileSystemAccessRule

CODE_OF_CONDUCT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Code of Conduct
2+
3+
This project has adopted the [DSC Community Code of Conduct](https://dsccommunity.org/code_of_conduct).

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing
2+
3+
Please check out common DSC Community [contributing guidelines](https://dsccommunity.org/guidelines/contributing).

GitVersion.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
mode: ContinuousDelivery
2+
next-version: 1.0.0
3+
major-version-bump-message: '\s?(breaking|major|breaking\schange)'
4+
minor-version-bump-message: '\s?(add|feature|minor)'
5+
patch-version-bump-message: '\s?(fix|patch)'
6+
no-bump-message: '\+semver:\s?(none|skip)'
7+
assembly-informational-format: '{NuGetVersionV2}+Sha.{Sha}.Date.{CommitDate}'
8+
branches:
9+
master:
10+
tag: preview
11+
pull-request:
12+
tag: PR
13+
feature:
14+
tag: useBranchName
15+
increment: Minor
16+
regex: f(eature(s)?)?[\/-]
17+
source-branches: ['master']
18+
hotfix:
19+
tag: fix
20+
increment: Patch
21+
regex: (hot)?fix(es)?[\/-]
22+
source-branches: ['master']
23+
24+
ignore:
25+
sha: []
26+
merge-message-formats: {}

0 commit comments

Comments
 (0)