Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlServerDsc: Add workflow that run PSScriptAnalyzer #1866

Merged

Conversation

johlju
Copy link
Member

@johlju johlju commented Mar 4, 2023

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry to the change log under the Unreleased section of the
    file CHANGELOG.md. Entry should say what was changed and how that
    affects users (if applicable), and reference the issue being resolved
    (if applicable).
  • Resource documentation updated in the resource's README.md.
  • Resource parameter descriptions updated in schema.mof.
  • Comment-based help updated, including parameter descriptions.
  • Localization strings updated.
  • Examples updated.
  • Unit tests updated. See DSC Community Testing Guidelines.
  • Integration tests updated (where possible). See DSC Community Testing Guidelines.
  • Code changes adheres to DSC Community Style Guidelines.

This change is Reviewable

@codecov
Copy link

codecov bot commented Mar 4, 2023

Codecov Report

Merging #1866 (77a4fdd) into main (e65a410) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@         Coverage Diff          @@
##           main   #1866   +/-   ##
====================================
  Coverage    92%     92%           
====================================
  Files        85      85           
  Lines      7614    7614           
====================================
  Hits       7012    7012           
  Misses      602     602           
Flag Coverage Δ
unit 92% <ø> (ø)

@johlju johlju added the needs review The pull request needs a code review. label Mar 5, 2023
@johlju
Copy link
Member Author

johlju commented Mar 5, 2023

There is a problem with Invoke-ScriptAnalyzer not excluding rules. Not from the settings file nor from the parameter ExcludeRule. This make it finding two rules that we cannot handle in the source files, in this case we cannot test the built module.

Need to repro this and look for help in the community.

@johlju
Copy link
Member Author

johlju commented Mar 5, 2023

Worked around it by filtering out the rules that could not be excluded.

Copy link
Member Author

@johlju johlju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 2 files at r1, 1 of 3 files at r2, 3 of 3 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @johlju)

@johlju johlju merged commit 9d51436 into dsccommunity:main Mar 5, 2023
@johlju johlju deleted the fix/github-action-workflow-psscriptanalyzer branch March 5, 2023 11:56
@johlju johlju removed the needs review The pull request needs a code review. label Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SqlServerDsc: Use the GitHub Actions to scan with PSScriptAanlyzer
1 participant