A new clause has been added to the development rules for GNOME Shell extensions, prohibiting the publication of extensions generated with AI tools. The project will no longer accept extensions that show signs of AI-generated code, such as nonsensical code insertions, inconsistencies in style, forced API usage, and comments suggesting AI assistance.
The reason for the new requirements is the recent increase in cases over the past two months of extensions being published with unprocessed junk code, which takes a lot of time for reviewers to analyze. In some cases, attempts to clarify certain questions during the review process led to responses from authors that were also generated by AI.
An example of redundant code generated by AI that complicates the review process: destroy() { try { if (typeof super.destroy === 'function') { super.destroy(); } } catch (e) { console.warn(`${e.message}`); } }
In reality, this code can be simplified to: destroy() { super.destroy(); }
Source: opennet.ru
