migueldeicaza / SwiftGodot

New Godot bindings for Swift
https://migueldeicaza.github.io/SwiftGodotDocs/tutorials/swiftgodot-tutorials/
MIT License
1.18k stars 77 forks source link

Explicitly exclude files to suppress warning. #597

Closed samdeane closed 3 weeks ago

samdeane commented 3 weeks ago

When building, the following warning is emitted:

warning: 'swiftgodot': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/sam/Developer/Projects/Godot/Sandbox/SwiftGodot/Sources/ExtensionApi/ApiJsonModel.swift
    /Users/sam/Developer/Projects/Godot/Sandbox/SwiftGodot/Sources/ExtensionApi/ApiJsonModel+Extra.swift

This change does what the warning suggests!

migueldeicaza commented 3 weeks ago

Thank you for the patch, I have manually applied the change, there was a lot of formatting changes that came in through - I do not mind fixing those, but that needs to be part of a separate change.

samdeane commented 3 weeks ago

Yeah, sorry, that'll be me using swift-format again. Much more sensible to just apply the patch.

I have vscode set to run swift-format on save, which is normally great but not so good whilst I'm the only one doing it!