Skip to content

Commit faf882f

Browse files
Update WarningsAsErrors
1 parent 5ac996b commit faf882f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Directory.Build.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
CS1712: Type parameter has no matching typeparam tag in the XML comment
4949
CS1723: XML comment has cref attribute that refers to a type parameter
5050
CS1734: XML comment has a paramref tag, but there is no parameter by that name
51-
MVMTK0042: The field [ObservableProperty] can be converted to a partial property
51+
MVVMTK0042: The field [ObservableProperty] can be converted to a partial property
52+
MVVMTK0056: The semi-auto property can be converted to a partial property using [ObservableProperty]
5253
CsWinRT1028: Class implements WinRT interfaces but isn't marked partial
5354
CsWinRT1030: Class implements WinRT interfaces that require unsafe code
5455
NU1900 Error communicating with package source, while getting vulnerability information.
@@ -150,7 +151,7 @@
150151
nullable,
151152
CS0419,CS1570,CS1571,CS1572,CS1573,CS1574,CS1580,CS1581,CS1584,CS1587,CS1589,CS1590,CS1591,CS1592,CS1598,CS1658,CS1710,CS1711,CS1712,CS1723,CS1734,
152153
CsWinRT1028,CsWinRT1030,
153-
MVMTK0042,
154+
MVVMTK0042,MVVMTK0056,
154155
NU1900,NU1901,NU1902,NU1903,NU1904,NU1905,
155156
xUnit1000,xUnit1001,xUnit1002,xUnit1003,xUnit1004,xUnit1005,xUnit1006,xUnit1007,xUnit1008,xUnit1009,xUnit1010,xUnit1011,xUnit1012,xUnit1013,xUnit1014,xUnit1015,xUnit1016,xUnit1017,xUnit1018,xUnit1019,xUnit1020,xUnit1021,xUnit1022,xUnit1023,xUnit1024,xUnit1025,xUnit1026,xUnit1027,xUnit1028,xUnit1029,xUnit1030,xUnit1031,xUnit1032,xUnit1033,xUnit1034,xUnit1035,xUnit1036,xUnit1037,xUnit1038,xUnit1039,xUnit1040,xUnit1041,xUnit1042,xUnit1043,xUnit1048,xUnit1049,xUnit1050,xUnit1051,
156157
xUnit2000,xUnit2001,xUnit2002,xUnit2003,xUnit2004,xUnit2005,xUnit2006,xUnit2007,xUnit2008,xUnit2009,xUnit2010,xUnit2011,xUnit2012,xUnit2013,xUnit2014,xUnit2015,xUnit2016,xUnit2017,xUnit2018,xUnit2019,xUnit2020,xUnit2021,xUnit2022,xUnit2023,xUnit2024,xUnit2025,xUnit2026,xUnit2027,xUnit2028,xUnit2029,xUnit2030,xUnit2031,xUnit2032,

samples/CommunityToolkit.Maui.Sample/ViewModels/Views/DrawingViewViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ namespace CommunityToolkit.Maui.Sample.ViewModels.Views;
1313
public partial class DrawingViewViewModel : BaseViewModel
1414
{
1515
readonly IFileSaver fileSaver;
16-
16+
17+
public List<DrawingViewOutputOption> AvailableOutputOptions { get; } = [DrawingViewOutputOption.Lines, DrawingViewOutputOption.FullCanvas];
18+
1719
[ObservableProperty]
1820
public partial string Logs { get; private set; } = string.Empty;
1921

2022
[ObservableProperty]
2123
public partial DrawingViewOutputOption SelectedOutputOption { get; set; } = DrawingViewOutputOption.Lines;
2224

23-
public List<DrawingViewOutputOption> AvailableOutputOptions { get; } = [DrawingViewOutputOption.Lines, DrawingViewOutputOption.FullCanvas];
24-
2525
public double CanvasHeight { get; set; }
2626

2727
public double CanvasWidth { get; set; }

0 commit comments

Comments
 (0)