Skip to content

Add nuget .editorconfig#528

Merged
xoofx merged 2 commits intoscriban:masterfrom
viceroypenguin:editorconfig
Jan 9, 2024
Merged

Add nuget .editorconfig#528
xoofx merged 2 commits intoscriban:masterfrom
viceroypenguin:editorconfig

Conversation

@viceroypenguin
Copy link
Copy Markdown
Contributor

Problem

When using <PackageScribanIncludeSource>true</PackageScribanIncludeSource>, the imported .cs files are analyzed according to the analyzer rules of the local project. This is a problem when consumers have different style settings, or even custom analyzers, for which Scriban code is not valid.

Solution

This PR adds a .editorconfig to the Nuget package and links it via the Scriban.targets. When done this way, the Scriban files are still included for compiling, but are excluded from analysis.

@xoofx xoofx merged commit 7b6ac1c into scriban:master Jan 9, 2024
@xoofx
Copy link
Copy Markdown
Member

xoofx commented Jan 9, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants