Contributing guildelines for the Scope-Upper distribution
-AI-related guidelines :
+LLM/AI-related guidelines :
- Patches submitted to this project MUST NOT have any byte of content generated
- with AI.
+ with LLM or AI code assistants.
This policy applies regardless of :
* whether the patch was totally or partially written by AI ;
* whether AI was used for writing code, documentation, metadata files,
C/XS-related guidelines :
- C code MUST be kept ANSI-compliant.
Older perl versions may have been built with a C compiler that does not
- support C99 features (plus they are mostly useless except for restrict).
- In particular, this means no C99 comments, no mixed declaration and code,
- and no C++ void* casts.
+ support C99 features. In particular, this means no C99 comments, no mixed
+ declaration and code, and no C++ void* casts.
- XS code MUST be buildable with any perl matching the META requirements.
If needed, wrap your code around with the XSH_HAS_PERL(x, y, z) macro.
That is, if you add new code specific to perl 5.34 and above, then you
have to test it with a pre-5.34 perl (e.g. 5.32) and a post-5.34 perl
(e.g. 5.34).
-- C/XS patches MUST be tested with a threaded perl regardless of how much you
- dislike perl threads.
+- C/XS patches MUST be tested with a perl configured with "-Dusethreads"
Testing with a threaded perl makes sure your code can build in many more
situations. Memory issues are also more easily spotted.
- Bugfixes SHOULD come with a regression test.