Skip to content

Linter issues when used as a module in Function App repos #109

@MariusStorhaug

Description

@MariusStorhaug

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions