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

Add nuget .editorconfig #528

Merged
merged 2 commits into from Jan 9, 2024
Merged

Conversation

viceroypenguin
Copy link
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
1 check failed
@xoofx
Copy link
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.

None yet

2 participants