Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch does not seem to support editorconfig inheritance
ClausAppel3Shape
#1 Posted : Tuesday, April 21, 2020 8:12:08 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/21/2019(UTC)
Posts: 8
Location: Denmark

Thanks: 2 times
Was thanked: 2 time(s) in 1 post(s)
Hi! This is a follow-up to this thread from some months ago: https://forum.ncrunch.ne...e-warning-severity.aspx

I have this setup: I am using FxCop Analyzers and <WarningsAsErrors/>. In my C# solution I have a global .editorconfig file. In a test project I have an additional .editorconfig that overrides/extends the global one.

Problem: When building the test project, NCrunch only reads the local (overriding) .editorconfig file. It ignores the global .editorconfig. As a result, it reports some errors that I want it to ignore and then fails to compile.

If I didn't have the overriding .editorconfig I could solve it by adding a symlink to the global .editorconfig in each project (as in the thread linked above). Now that I have the overriding one, this trick no longer works.

Is there any way to solve this?

I'm using NCrunch 4.3.0.13, Visual Studio Professional 2019 version 16.4.6., C# 8.

Thanks!
Remco
#2 Posted : Tuesday, April 21, 2020 8:28:33 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,049

Thanks: 787 times
Was thanked: 1023 time(s) in 974 post(s)
Hi, thanks for posting.

I'm not particularly familiar with the mechanics of these files or their purpose, but is it possible that the global editorconfig file simply needs to be present inside the NCrunch workspace? If so, try adding it to the 'Additional files to include' in your NCrunch solution-level configuration.
ClausAppel3Shape
#3 Posted : Tuesday, April 21, 2020 8:40:09 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/21/2019(UTC)
Posts: 8
Location: Denmark

Thanks: 2 times
Was thanked: 2 time(s) in 1 post(s)
Remco;14639 wrote:
I'm not particularly familiar with the mechanics of these files or their purpose, but is it possible that the global editorconfig file simply needs to be present inside the NCrunch workspace? If so, try adding it to the 'Additional files to include' in your NCrunch solution-level configuration.

Thanks. Where do I set "Additional files to include"? I see no such setting when I go to Extensions -> NCrunch -> Configuration and search.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.036 seconds.