SecretStore icon indicating copy to clipboard operation
SecretStore copied to clipboard

Linter issues when used as a module in Function App repos

Open MariusStorhaug opened this issue 11 months ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] Search the existing issues.

Steps to reproduce

  1. Make a repo holding a function app project (using the VSCode extension)
  2. Use local module and download this module to the 'Modules' folder.
  3. Run super-linter (using PSScriptAnalyzer) on the repo.

Expected behavior

Linter should not fail on a published module.

Actual behavior

Linter fails saying that there are trailing whitespaces

Error details

RuleName                            Severity     ScriptName Line  Message
--------                            --------     ---------- ----  -------
PSAvoidTrailingWhitespace           Information  Microsoft. 10    Line has trai
                                                 PowerShell       ling whitespa
                                                 .SecretSto       ce
                                                 re.Extensi
                                                 on.psd1


RuleName                            Severity     ScriptName Line  Message
--------                            --------     ---------- ----  -------
PSAvoidTrailingWhitespace           Information  Microsoft. 79    Line has trai
                                                 PowerShell       ling whitespa
                                                 .SecretSto       ce
                                                 re.Extensi
                                                 on.psm1
PSAvoidTrailingWhitespace           Information  Microsoft. 281   Line has trai
                                                 PowerShell       ling whitespa
                                                 .SecretSto       ce
                                                 re.Extensi
                                                 on.psm1

Environment data

Irrelevant

Version

Irrelevant

Visuals

image

MariusStorhaug avatar Jan 06 '25 08:01 MariusStorhaug