You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
Currently DSCResource.Tests ignores any PSSA required or flagged rules because:
| Automatically passing this test since it may break several resource modules at the moment. Automatic pass to be removed Jan-Feb 2017.
This was obviously meant to be removed in Jan-Feb 2017 but has not been.
What I propose is that we add some more Opt in settings:
Common Tests - Required Script Analyzer Rules
Common Tests - Flagged Script Analyzer Rules
I noticed this when implementing #86 (custom PSSA rules for validating style guidelines). We'll need the ability to opt in to these custom PSSA rules as many resources will contain lots of violations - and we'll want these to be just notifications until a resource opts-in.
The text was updated successfully, but these errors were encountered:
I'm happy they were not changed so they started to fail, because there is still a backlog in xSQLServer to fix these. :) It feels like we have fixed technical debt for more than half a year in that module.
@johlju , @kwirkykat - do you have any objections to me progressing this one? Now that all the style rules are passing in the repos I support I'd like to be able to "enforce" this in all future PR's.
This would only be a year late 😆
I think the name of the following flags need to be implemented:
@PlagueHO I'm all for this. I'm ready to opt-in for this in SqlServerDsc now as well. The default will be opt-out so this change wouldn't effect the current behavior.
Currently DSCResource.Tests ignores any PSSA required or flagged rules because:
| Automatically passing this test since it may break several resource modules at the moment. Automatic pass to be removed Jan-Feb 2017.
This was obviously meant to be removed in Jan-Feb 2017 but has not been.
What I propose is that we add some more Opt in settings:
Common Tests - Required Script Analyzer Rules
Common Tests - Flagged Script Analyzer Rules
If these are set then we skip this line:
https://github.com/PowerShell/DscResource.Tests/blob/dev/Meta.Tests.ps1#L377
or this line:
https://github.com/PowerShell/DscResource.Tests/blob/dev/Meta.Tests.ps1#L401
I noticed this when implementing #86 (custom PSSA rules for validating style guidelines). We'll need the ability to opt in to these custom PSSA rules as many resources will contain lots of violations - and we'll want these to be just notifications until a resource opts-in.
The text was updated successfully, but these errors were encountered: