Gemini - licenses warning

When you use Gemini to generate code (VS Code - Gemini Code Assist - Flutter) it issues a warning `Use code with caution, suggested code may be subject to licenses’, when there are a possible license infringement on code, some times it is code that are as common as seconds in a day.

Here it warns me about using “MyApp()” might be licensed.

Are there a way to ‘tweak’ there warnings in Gemini?

Besides "Quick Fix… (Ctrl+.)’ ‘Ignore Citation Warning’?

Always carefully review any code generated by an AI, especially if a license warning is triggered. Ask yourself:

  • Is this code truly novel and original, or is it likely based on something I’ve seen elsewhere?

  • If it resembles existing code, could it potentially be subject to a license?

  • If in doubt, can I re-implement this functionality in a slightly different way?

This is boiler plate code, can it be license infringement?

This is boiler plate code, can it be license infringement?

While the risk of copyright infringement with truly boilerplate code is generally low, it’s not zero. The AI warnings are a reminder to be cautious.