summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #97894 from paulloz/dotnet/export-tool-buttonThaddeus Crews2024-11-194-0/+38
|\ | | | | | | Implement `[ExportToolButton]`
| * Implement [ExportToolButton]Paul Joannon2024-11-184-0/+38
| |
* | C#: Fix unhandled GD0303 error for nested generic attribute typesZae2024-10-111-0/+13
|/
* Fix GD0107 not applying to arrays and dictionaries containing nodesJuan Pablo Arce2024-07-241-0/+49
|
* Style: Trim trailing whitespace and ensure newline at EOFRémi Verschelde2024-05-084-5/+5
| | | | Found by apply the file_format checks again via #91597.
* Merge pull request #91375 from ↵Rémi Verschelde2024-05-021-0/+7
|\ | | | | | | | | | | paulloz/dotnet/prevent-generator-crash-on-exported-unconstructed-generic-arrays C#: Fix generator crash w/ generic arrays
| * C#: Fix generator crash w/ generic arraysPaul Joannon2024-04-301-0/+7
| |
* | C#: Ignore late bound methods in MustBeVariantAnalyzerRaul Santos2024-05-011-0/+6
|/ | | | If symbol is late bound (as is the case when using `dynamic`) we can't obtain the symbol to analyze the usage of `[MustBeVariant]`.
* Fix interpolated strings in ScriptPropertyDefValPaul Joannon2024-03-011-0/+23
|
* Cleanup C# projects, code quality & stylePaul Joannon2024-02-2711-165/+165
| | | | | | | | | | | | | | | | | | | | | New rules: - Do not silence CA1805 any more - Limit where we silence CA1707, CA1711, CA1720 - Enforce severity=warning for IDE0040 - Enforce Allman style braces - Enforce naming conventions (IDE1006 is still severity=suggestion) Fixes: - Fix REFL045, CS1572, CS1573 - Suppress CS0618 when generating `InvokeGodotClassMethod` - Fix indent when generating GD_constants.cs - Temporarily silence CS1734 in generated code - Fix a lot of naming rule violations Misc.: - Remove ReSharper comments for RedundantNameQualifier - Remove suppression attributes for RedundantNameQualifier - Remove severity=warnings for CA1716, CA1304 (already included in the level of analysis we run)
* Merge pull request #87253 from van800/van800/analyserRémi Verschelde2024-02-212-0/+17
|\ | | | | | | Provide a roslyn analyzers corresponding to the GD0001 and GD0002
| * provide analyser corresponding to the GD0001 and GD0002, add ↵Ivan Shakhov2024-02-212-0/+17
| | | | | | | | | | | | | | ClassPartialModifierAnalyzerFix, and tests Co-authored-by: Raul Santos <raulsntos@gmail.com> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* | Add tests and fix exports diagnosticsPaul Joannon2024-02-207-0/+88
|/ | | | | | - Add tests for the following diagnostics: GD0101, GD0102, GD0103, GD0104, GD0105, GD0106, GD0107. - Fix GD0101 not being reported any more (was filtering static classes before reporting). - Fix GD0107 not preventing `Node` members from being exported from not-`Node` types.
* C#: Various fixes to generic scriptsRaul Santos2024-02-193-12/+36
| | | | | | - Report a diagnostic when there are multiple classes that match the script file name in the same script since that will result in a duplicate path key in the bimap and it's not allowed. - Fix InspectorPlugin to handle empty paths in case the project was built with a previous version of Godot that used empty paths for generic scripts. - Add tests for the new diagnostic GD0003.
* Clean diagnostic rulesPaul Joannon2024-02-183-6/+17
| | | | | | | | Move the following diagnostics into static readonly fields: GD0101, GD0102, GD0103, GD0104, GD0105, GD0106, GD0107, GD0201, GD0202, GD0203, GD0301, GD0302, GD0303, GD0401, GD0402. To be more consistent, the titles for the following diagnostics were modified: GD0101, GD0105, GD0106, GD0302, GD0303, GD0401, GD0402. A subsequent update of the documentation repo is needed. Tests for the following diagnostics were created: GD0201, GD0202, GD0203.
* C#: Fix to allow usage of [MustBeVariant] in generic typed attributesAlberto Vilches2024-01-211-0/+582
|
* C# Add test suite for Diagnostic Analyzers: GlobalClass and MustBeVariantAlberto Vilches2024-01-154-0/+135
|
* Add tests for source generatorsPaul Joannon2023-12-1912-0/+432
- Bootstrap xUnit project to test source generators - Implement source generator tests - Better tests structure (put test data in cs files) - Enable `ScriptSerializationGeneratorTests` - Enable `ScriptPathAttributeGeneratorTests` - Fix `NesterClass` -> `NestedClass` - Use `Path.Combine` when dealing with paths - Copy test data to the output directory