46 Commits

Author SHA1 Message Date
Julien Lebosquain 0fb64d65cc Enable warnings as errors (#20504) 2026-01-21 08:16:46 +00:00
Julien Lebosquain 64b63fa5d2 Fix common warnings (#20311) 2025-12-19 11:45:30 +00:00
Maxwell Katz 68009f8960 Warning AVLN2208: Item container in the data template (#18132)
* Implement AVLN2208 diagnostic - ItemContainerInsideTemplate

* Add AVLN2208 tests

* Enable AVLN2208 as an error in the repository globally

* Fix invalid ListBoxItem inside of DataTemplate in devtools
2025-02-07 17:38:23 +00:00
workgroupengineering 36c9de9cf0 feat: Enable Rule CA1851 (#16779)
* feat: Enable rule CA1851: Possible multiple enumerations of IEnumerable collection

* feat: Address rule CA1851

* fix: Address review

* fix: address review
2024-09-30 10:17:24 +00:00
Max Katz 8a036140db Add AvsEnableDevWarningsNotAsErrors prop (#15106)
* Add AvsEnableDevWarningsNotAsErrors prop

* Begone StyleCop
2024-04-19 17:29:47 -07:00
Max Katz 180410e076 TemplatePart XAML diagnostics (#14180)
* Add TemplatePart.IsRequired property and make attribute inherited

* Implement TemplatePart XAML diagnostics + tests

* Fix new errors in our XAML files

* Ignore nested metadata scopes in TemplatePart validator

* Update docs comment
2024-02-24 04:13:52 +00:00
Max Katz ea64505600 XAML warnings/diagnostics support (#13447)
* Add diagnostics support to the Avalonia.Build.Tasks

* HostApp and generators build fix

* Diagnostics support in Avalonia XAML

* Support multiple style selector errors at once

* Improve avalonia intrinsics error handling + add tests

* Add CompiledBindings multiple errors tests

* Fix name generator

* Make AvaloniaXamlIlDuplicateSettersChecker a warning

* Fix Style_Parser_Throws_For_Duplicate_Setter test

* Make XamlLoaderUnreachable respect warnings settings

* Add AvaloniaXamlIlStyleValidatorTransformer

* Throw more specific exceptions instead of XamlParseException

* Get rid of XamlXDiagnosticCode to simplify diagnostics code

* Simplify XAML exceptions by avoiding DiagnosticCode in them

* Simplify XamlCompilerDiagnosticsFilter

* Don't use AvaloniaXamlDiagnosticCodes in Avalonia.Generators

* Fix some error handlings in compiler task

* Update editor config for in-solution analysis

* Update XamlX

* Fix missing document path

* Avoid Description field usage

* Add AvaloniaXamlVerboseExceptions property and make exception formatting customizable

* Make Avalonia.NameGenerator not crash if there are XAML errors, members should still be generated

* Update tests/Avalonia.Markup.Xaml.UnitTests/Xaml/StyleIncludeTests.cs

---------

Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
2023-11-17 07:51:08 +00:00
Giuseppe Lippolis ea779ac9ad feat: Enable Rule CA1854 2023-05-08 18:13:31 +02:00
Max Katz 7d26c16a10 Configure AVP1012 as a warning 2023-04-18 22:47:53 -04:00
Max Katz ad96c64aa2 Mark Avalonia Analyzers as errors 2023-04-17 01:39:13 -04:00
Julien Lebosquain cc850694cd editorconfig: don't apply s_ prefix to public fields 2023-02-05 12:00:38 +01:00
Dmitry Zhelnin 69b3db42a2 Cleanup attributes
Enable rules CA1018: Mark attributes with AttributeUsageAttribute; CA1813: Avoid unsealed attributes
2023-02-02 18:07:55 +03:00
Giuseppe Lippolis dca768b9a8 feat: Enable Rule CS0649 2023-01-16 17:21:07 +01:00
Giuseppe Lippolis 306ea5b54d feat: Enable Rule CA2211 2023-01-03 15:08:11 +01:00
Giuseppe Lippolis 7112122951 feat: Enable Rule CS0162 2022-12-15 17:11:55 +01:00
Giuseppe Lippolis 949c2b94b9 feat: Enable Rule CA1823 2022-12-12 15:52:28 +01:00
Giuseppe Lippolis eeeb7f8110 feat: Enable Rule CA1815 2022-12-05 18:08:48 +01:00
Max Katz de039015ca Small cleanup of warnings 2022-12-05 02:10:34 -05:00
Max Katz f720fd3cf3 Merge branch 'master' into features/NetAnalyzers/CA1304 2022-12-03 08:32:10 -05:00
Max Katz ded16050b2 Merge branch 'master' into features/NetAnalyzers/CA1304 2022-12-03 07:11:20 -05:00
Giuseppe Lippolis 2838429bb0 Merge branch 'master' into features/NetAnalyzers/CA1822 2022-12-03 11:24:02 +01:00
Giuseppe Lippolis b23756e48f feat: Enable Rules from 1826 to 1829 2022-12-02 10:09:25 +01:00
Giuseppe Lippolis eafb84d531 feat: Enable Rule CA1304 2022-12-01 18:19:08 +01:00
Giuseppe Lippolis 1e69527ea6 fix: address review 2022-11-15 10:12:48 +01:00
Giuseppe Lippolis ac2f0f88d6 fix: Rule CA1822 only private and internal 2022-11-03 14:48:39 +01:00
Giuseppe Lippolis ed8b4fe5c0 Merge branch 'master' into features/NetAnalyzers/CA1822 2022-10-19 09:38:10 +02:00
Giuseppe Lippolis e71f67670a Merge remote-tracking branch 'upstream/master' into features/NetAnalyzers/CA1820 2022-10-18 17:05:14 +02:00
Giuseppe Lippolis 630fc9a1c5 Merge remote-tracking branch 'upstream/master' into features/NetAnalyzers/CA1822 2022-10-17 14:37:10 +02:00
Giuseppe Lippolis ef66584c76 Merge remote-tracking branch 'upstream/master' into features/NetAnalyzers/CA1847 2022-10-17 12:38:12 +02:00
Giuseppe Lippolis cc93b6cb86 feat: Enable rule CA1822 2022-10-14 17:36:59 +02:00
Giuseppe Lippolis ddde2565a9 feat: Enable Rule CA1821 2022-10-14 17:32:48 +02:00
Giuseppe Lippolis 94afe971d9 feat: Enable Rule CA1820 2022-10-14 17:30:44 +02:00
Giuseppe Lippolis 7bf48cf7de feat: Enable CA1847 2022-10-14 11:12:17 +02:00
Max Katz 6cca4921e2 Merge branch 'master' into features/NetAnalyzers/CA1802 2022-10-14 02:26:16 -04:00
Giuseppe Lippolis 85ac29c788 fix: CA1802 2022-10-12 17:16:50 +02:00
Giuseppe Lippolis 591a0794fe feat: Enable 1825 2022-10-12 16:39:14 +02:00
Giuseppe Lippolis 4de98100ea feat: Enable net Analyzer 2022-10-12 12:18:47 +02:00
Giuseppe Lippolis a428085b5e fix: throw compilation error on AVADEV2001 2022-09-09 10:39:31 +02:00
Max Katz 5000a4ffe3 Do not enable MouseInPointerEnabled automatically and remove EnableWmPointerEvents option 2022-07-02 18:17:35 -04:00
Max Katz 6a5e005539 Add trim_trailing_whitespace to editorconfig 2022-06-22 00:05:28 -04:00
Steven Kirk 2e23333996 Add CheckBox tests. 2021-03-10 22:37:08 +01:00
Rustam Sayfutdinov 1025b12402 Add tests 2020-09-12 00:27:05 +05:00
Dariusz Komosinski 4f83c4e8c7 Reformat Avalonia.Diagnostics. 2019-07-20 17:45:32 +02:00
Dariusz Komosinski 5822e60db6 Fix ternary operator formatting, add config entry to the .editorconfig. 2019-03-07 11:41:42 +01:00
Steven Kirk 75f029b52a Use modified .editorconfig from corefx
Takes the `.editorconfig` from `dotnet/corefx` and modifies it slightly:

- Prefer `var` in all cases
- Use accessibility modifiers
- Remove C++ preferences
- Add indent for xaml files
2018-07-07 15:42:26 +02:00
Nikita Tsukanov 0835ae6dda Added editorconfig 2015-09-18 11:00:16 +03:00