You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add support for projects that target multiple frameworks.
9
-
10
-
## 1.0.1
11
-
- Hide stylecop.json in Visual Studio.
3
+
## 2.2.0
4
+
* File scoped namespaces are now enforced. (#81)
5
+
* Enable warning for unused usings. (#81)
6
+
*`SA1305: FieldNamesMustNotUseHungarianNotation` has been disabled. (#82)
7
+
* Use warning instead of error level for spacing rules. (#83)
8
+
* Update IDisposableAnalyzers to 4.0.2. Excerpt from [IDisposableAnalyzers Changelog]:
9
+
> #### 4.0.2
10
+
> * BUGFIX: IDISP007 when disposing static member in static context
11
+
> #### 4.0.1
12
+
> * BUGFIX: IDISP007 false warning when using Rx
13
+
> * BUGFIX: IDISP016 false warning when foreach
14
+
> * BUGFIX: Handle leaveOpen when AsyncDisposable
15
+
> * BUGIX: Handle top level statements.
16
+
> #### 4.0.0
17
+
> * BREAKING: For VS2022+ now.
18
+
> * BUGFIX: AD0001 -> Could not load file or assembly
12
19
13
-
## 1.1.0
14
-
- Update IDisposableAnalyzers from 3.2.0 to 3.3.2. Excerpt from [IDisposableAnalyzers Changelog]:
15
-
> #### 3.3.0
16
-
> - FEATURE: Initial support for AsyncDisposable
20
+
## 2.1.3
21
+
* Update StyleCop.Analyzers to 1.2.0-beta.435 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.376...1.2.0-beta.435))
22
+
* Most notably this version fixes false positives of `SA1516: Elements should be separated by blank line` in files with top-level statements.
17
23
18
-
## 1.2.0
19
-
- Disable SA1412 (StoreFilesAsUtf). This means that BOMs are no longer required in C# files.
20
-
- Update IDisposableAnalyzers from 3.3.2 to 3.3.8:
21
-
- Update StyleCop.Analyzers from 1.2.0-beta.113 to 1.2.0-beta.164 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.113...1.2.0-beta.164)).
22
-
- Enable `GenerateDocumentationFile` by default. This had to be turned on manually in each project before,
23
-
as it is required by our StyleCop configuration.
24
+
## 2.1.2
25
+
* Update StyleCop.Analyzers to 1.2.0-beta.376 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.354...1.2.0-beta.376))
24
26
25
-
## 1.2.1
26
-
- Update StyleCop.Analyzers to 1.2.0-beta.205. ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.164...1.2.0-beta.205))
27
-
- Update IDisposableAnalyzers to 3.4.1. Excerpt from [IDisposableAnalyzers Changelog]:
28
-
> #### 3.4.1
29
-
> * Publish with binaries.
30
-
> #### 3.4.0
31
-
> * FEATURE: Handle DisposableMixins.DisposeWith
32
-
> * BUGFIX: IDISP025 when abstract dispose method.
33
-
> * BUGFIX: IDISP006 when explicit implementation.
27
+
## 2.1.1
28
+
* Relaxed rules:
29
+
*[SA1119](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1119.md) (StatementMustNotUseUnnecessaryParenthesis) is now disabled.
34
30
35
-
## 2.0.0-rc.1
36
-
* Breaking: Treat all nullability warnings as errors.
37
-
* Lints involving single line comments have been reduced to warnings to make temporary code commenting easier.
38
-
* The hungarian notation rule has been relaxed to allow `js` and `db` since those two are common "false positives".
31
+
* Update IDisposableAnalyzers to 3.4.15. Excerpt from [IDisposableAnalyzers Changelog]:
32
+
> #### 3.4.15
33
+
> * BUGFIX: IDISP005 with ServiceDescriptor
34
+
> * BUGFIX: IDISP004 when DisposeWith
35
+
> #### 3.4.14
36
+
> * BUGFIX: IDISP005 should not warn in Assert.Throws.
* Update StyleCop.Analyzers to 1.2.0-beta.333 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.321...1.2.0-beta.333)) \
62
+
Notable changes/fixes:
63
+
*[23db6c0: Avoid reporting SA1141 (Use tuple syntax) in expression trees](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/commit/af356f9b36dc4849a678c0b8c918123fa567913b)
46
64
47
65
## 2.0.0
48
66
* Update IDisposableAnalyzers to 3.4.8. Excerpt from [IDisposableAnalyzers Changelog]:
@@ -68,69 +86,52 @@ Initial release
68
86
> * Handle some regressions in Roslyn 3.7
69
87
* Update StyleCop.Analyzers to 1.2.0-beta.321 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.312...1.2.0-beta.321)) \
70
88
Notable changes/fixes:
71
-
*[9c5c071: Support records without braces](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.312...1.2.0-beta.321)
72
-
*[46d2e37: Support implicit object creation expressions in SA1129 code fix](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/commit/46d2e37fed1e471446f32c88c6bdaf2530239570)
89
+
*[9c5c071: Support records without braces](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.312...1.2.0-beta.321)
90
+
*[46d2e37: Support implicit object creation expressions in SA1129 code fix](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/commit/46d2e37fed1e471446f32c88c6bdaf2530239570)
73
91
74
-
## 2.0.1
75
-
* Update IDisposableAnalyzers to 3.4.13. Excerpt from [IDisposableAnalyzers Changelog]:
* Update StyleCop.Analyzers to 1.2.0-beta.333 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.321...1.2.0-beta.333)) \
91
-
Notable changes/fixes:
92
-
*[23db6c0: Avoid reporting SA1141 (Use tuple syntax) in expression trees](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/commit/af356f9b36dc4849a678c0b8c918123fa567913b)
92
+
## 2.0.0-rc.3
93
+
* Update StyleCop.Analyzers to 1.2.0-beta.312 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.261...1.2.0-beta.312))
94
+
* Fix compilation error when building an F# project.
93
95
94
-
## 2.1.0
95
-
*Warn when interface method has `public` accessibility modifier (`MESSERLI001`)
96
+
## 2.0.0-rc.2
97
+
*Update StyleCop.Analyzers to 1.2.0-beta.261. ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.205...1.2.0-beta.261))
96
98
97
-
## 2.1.1
98
-
* Relaxed rules:
99
-
*[SA1119](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1119.md) (StatementMustNotUseUnnecessaryParenthesis) is now disabled.
99
+
## 2.0.0-rc.1
100
+
* Breaking: Treat all nullability warnings as errors.
101
+
* Lints involving single line comments have been reduced to warnings to make temporary code commenting easier.
102
+
* The hungarian notation rule has been relaxed to allow `js` and `db` since those two are common "false positives".
100
103
101
-
* Update IDisposableAnalyzers to 3.4.15. Excerpt from [IDisposableAnalyzers Changelog]:
102
-
> #### 3.4.15
103
-
> * BUGFIX: IDISP005 with ServiceDescriptor
104
-
> * BUGFIX: IDISP004 when DisposeWith
105
-
> #### 3.4.14
106
-
> * BUGFIX: IDISP005 should not warn in Assert.Throws.
* Update StyleCop.Analyzers to 1.2.0-beta.354 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.333...1.2.0-beta.354))
104
+
## 1.2.1
105
+
* Update StyleCop.Analyzers to 1.2.0-beta.205. ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.164...1.2.0-beta.205))
106
+
* Update IDisposableAnalyzers to 3.4.1. Excerpt from [IDisposableAnalyzers Changelog]:
107
+
> #### 3.4.1
108
+
> * Publish with binaries.
109
+
> #### 3.4.0
110
+
> * FEATURE: Handle DisposableMixins.DisposeWith
111
+
> * BUGFIX: IDISP025 when abstract dispose method.
112
+
> * BUGFIX: IDISP006 when explicit implementation.
111
113
112
-
## 2.1.2
113
-
* Update StyleCop.Analyzers to 1.2.0-beta.376 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.354...1.2.0-beta.376))
114
+
## 1.2.0
115
+
* Disable SA1412 (StoreFilesAsUtf). This means that BOMs are no longer required in C# files.
116
+
* Update IDisposableAnalyzers from 3.3.2 to 3.3.8:
117
+
* Update StyleCop.Analyzers from 1.2.0-beta.113 to 1.2.0-beta.164 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.113...1.2.0-beta.164)).
118
+
* Enable `GenerateDocumentationFile` by default. This had to be turned on manually in each project before,
119
+
as it is required by our StyleCop configuration.
114
120
115
-
## 2.1.3
116
-
* Update StyleCop.Analyzers to 1.2.0-beta.435 ([diff](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/compare/1.2.0-beta.376...1.2.0-beta.435))
117
-
* Most notably this version fixes false positives of `SA1516: Elements should be separated by blank line` in files with top-level statements.
121
+
## 1.1.0
122
+
* Update IDisposableAnalyzers from 3.2.0 to 3.3.2. Excerpt from [IDisposableAnalyzers Changelog]:
123
+
> #### 3.3.0
124
+
> - FEATURE: Initial support for AsyncDisposable
125
+
126
+
## 1.0.1
127
+
* Hide stylecop.json in Visual Studio.
128
+
129
+
## 1.0.0
130
+
* Add support for netstandard2.0.
131
+
* Add support for projects that target multiple frameworks.
132
+
133
+
## 1.0.0-alpha.1
134
+
Initial release
118
135
119
-
## 2.2.0
120
-
* File scoped namespaces are now enforced. (#81)
121
-
* Enable warning for unused usings. (#81)
122
-
*`SA1305: FieldNamesMustNotUseHungarianNotation` has been disabled. (#82)
123
-
* Use warning instead of error level for spacing rules. (#83)
124
-
* Update IDisposableAnalyzers to 4.0.2. Excerpt from [IDisposableAnalyzers Changelog]:
125
-
> #### 4.0.2
126
-
> * BUGFIX: IDISP007 when disposing static member in static context
127
-
> #### 4.0.1
128
-
> * BUGFIX: IDISP007 false warning when using Rx
129
-
> * BUGFIX: IDISP016 false warning when foreach
130
-
> * BUGFIX: Handle leaveOpen when AsyncDisposable
131
-
> * BUGIX: Handle top level statements.
132
-
> #### 4.0.0
133
-
> * BREAKING: For VS2022+ now.
134
-
> * BUGFIX: AD0001 -> Could not load file or assembly
Add the following package reference to your project or to your `Directory.Build.props`:
35
10
```diff
36
11
<?xml version="1.0" encoding="utf-8"?>
@@ -41,6 +16,8 @@ Add the following package reference to your project or to your `Directory.Build.
41
16
</Project>
42
17
```
43
18
19
+
You either have to add the version here or in `Directory.Packages.props` depending on if you're using [Central Package Management](https://learn.microsoft.com/en-us/nuget/consume-packages/Central-Package-Management).
20
+
44
21
## Warnings as Errors
45
22
46
23
Some analyzer rules, such as rules involving single line comments, are configured as warnings to facilitate development.
0 commit comments