Comments (4)
I've opened up another bug with IDE0047 for the same reason.
Here's some code to reproduce.
https://github.com/EdLichtman/UniformPackagesDemo/tree/DemoIDE0047Error
Open up
Final_Demo/Templates/templates/Demo.PackageLibrary/Demo.PackageLibrary.sln
from stylecopanalyzers.
SA1119 is behaving as expected in this case. I recommend filing a bug on the template engine if it is unable to generate valid C# syntax adhering to a common code style.
from stylecopanalyzers.
@sharwell, the thing here (as I understand it) is that the template files are normal csproj and c# files, The template engine uses the extra parenthesis to differentiates preprocessor directives that control "template application" from preprocessor directives that will end up in the generated code. So when editing the template, SA1119 is triggered on those "template-level" directives. Do you agree with this description @EdLichtman?
from stylecopanalyzers.
Even in that case, the expected resolution here would be to either disable SA1119 or write a custom DiagnosticSuppressor for the situation.
from stylecopanalyzers.
Related Issues (20)
- SA1009 triggers when having the closing parenthesis on a single line HOT 2
- StyleCop schema file URL is getting timed out HOT 1
- SA1134 exception for auto-properties HOT 1
- SA1119 false positive for parenthesis around `x switch {}` expression HOT 3
- SA1009 is triggered for the increment in prefix notation
- SA1118 false positive with multi-line collection expressions as arguments HOT 1
- [Question] proper way ot add stylecop.json to a multiproject solution using visual studio code. HOT 3
- SA1648 false positive when implementing static interface members HOT 2
- SA1516 Elements should be separated by blank line - Razor Class Library - csproj file HOT 12
- New Analyzer: Use File Scoped Namespaces HOT 3
- Remove ConfigureAwait(false) in tests? HOT 4
- SA1008 False Positive if a tuple type is assigned an alias via `using`.
- SA1013 allows any number of spaces after list initializer HOT 6
- SA1313 Allow underscore for primary constructors C# 12 HOT 3
- SA1102 documentation should include a working C# snippet example HOT 1
- False positive: SA1010 cannot handle the new list-initializer syntax HOT 2
- SA1010: Opening square brackets should not be preceded by a space conflicts with IDE0305 HOT 1
- SA1010 (no space before "[") conflicts with IDE0305 (use collection expression) HOT 1
- Unexpected SA1131 HOT 5
- SA1210 and SA1208 are ignored when using statements are inside a file-scoped namespace. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylecopanalyzers.