Commit 5e22c312 authored by Andre Maroneze's avatar Andre Maroneze Committed by Virgile Prevosto
Browse files

Initial version of a CONTRIBUTING file

parent 5440e540
Contributing to Frama-C
There are several ways to contribute to Frama-C:
- Reporting bugs (via [Github](
or the [Mantis BTS](;
- [Developing your own plug-in](
and sharing it with us;
- Asking questions and discussing in
[StackOverflow]( and in
the [Frama-C-discuss mailing list](;
- Submitting fixes and improvements via Github pull requests;
- Joining the [team]( (via internships, postdocs, open positions).
Contributed patches
Main Frama-C development happens outside Github. By default, patches are
applied upstream and only release candidate and stable releases are pushed
to Github.
Therefore, non-trivial pull requests would be better served by creating a
branch and notifying Frama-C developers. If the patches are accepted, the
branch will be available on Github until the next Frama-C release incorporates
Note that, in the case of bug fixes, it would be ideal to add test cases
to the appropriate subdirectory in `tests`. The plug-in developer manual
includes a section on the `ptests` tool used by Frama-C developers
(or you can provide the test case on a Github discussion and we will
integrate it).
Coding conventions
- Use [ocp-indent]( to indent files;
- Avoid trailing whitespaces;
- Avoid using tabs;
- Strive to keep within 80 characters per line.
Note that many files are not normalized, since they were written before these
conventions were established. However, modified code that touches lines that
are not normalized should be normalized (e.g., if you modify a line containing
trailing whitespace, remove it in your commit). Avoid commits that only
re-indent/prettify code.
External plug-ins
Frama-C plug-ins normally do not require changes to the Frama-C source code and
can be developed completely independently, for instance in a dedicated Git
However, to make it easier for your users to compile and use your plug-in, even
as newer releases are made available, we recommend the following workflow:
1. Clone the Frama-C snapshot repository;
2. Put your plugin in the `src/plugins` directory, with appropriate
`` and `` files;
3. Upload it to Github.
This will ensure that (1) the version of Frama-C that is available with your
plug-in is guaranteed to compile and work, independently of API changes;
(2) updating your plug-in will only require synchronizing with the
Frama-C snapshot repository.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment