dsccommunity / ActiveDirectoryDsc

This module contains DSC resources for deployment and configuration of Active Directory Domain Services.
MIT License
345 stars 142 forks source link

Expected requirements for contribution should be included in VSCode settings to make it easier #622

Closed jeremyciak closed 7 months ago

jeremyciak commented 4 years ago

Requirements like line length and other similar settings that can be added to the settings.json file under the .vscode folder should be so that contributors automatically benefit from those settings.

jeremyciak commented 4 years ago
"files.defaultLanguage": "powershell",
"[powershell]": {
  "editor.rulers": [ 120 ]
},
"[markdown]": {
  "editor.rulers": [ 120 ]
}
johlju commented 4 years ago

We could also add a extensions.json that suggest adding the extension markdownlint that is used for validating markdown in HQRM tests.

dan-hughes commented 7 months ago

@johlju, I can pick this up.

Looking at the style guide is the line limit 120 or 80 chars?

Also is there anything else that needs adding as this is pretty old...

johlju commented 7 months ago

The style guidelines can be found at dsccommunity.org. We removed the hard line length limit a while back. We today also have a dsccommunity Plaster template in the Sampler project that have most of these settings already I think 🤔 This repo should have gotten those settings when the template was used on this template.

Maybe this issue could just be closed if it already fixed?

dan-hughes commented 7 months ago

Looks like it matches. The only thing that might be beneficial is any recommended extensions? e.g.

johlju commented 7 months ago

That sounds good. In SqlServerDsc these are used. YAML could be a good addition.

The Pester Test Adapter in the link below is a test I did in SqlServerDsc as it requires Pester 5 tests and specific settings, so that should not be a default in other repos until that extension becomes more stable I think 🤔

https://github.com/dsccommunity/SqlServerDsc/blob/main/.vscode/extensions.json

dan-hughes commented 7 months ago

Shall I also add into the Sampler template?

johlju commented 7 months ago

Yes please, if you have time. Ping me in a PR there and I can review.

dan-hughes commented 7 months ago

Done.

Same extensions.json for both.