Skip to content

Contributing and code guidelines

Stefano Gottardo edited this page Nov 21, 2023 · 6 revisions

Contributing to InputStream Adaptive

This project follow the same guidelines of Kodi (xbmc) repository, here some basic points:

Pull request guidelines:

  • All developments occurs on the branch that reflect the last Kodi version under development (to match master branch on xbmc). If it needs backporting it can be done after it is at least approved on master.
  • Use a coherent commit history, when possible make sure each individual commit in your pull request is meaningful and organized in logical chunks. Tidy up and squash commits before submitting.
  • Be descriptive, but concise. The pull request and commits should have a useful title and follow the format:
    [Component(s)] Short description...
    where for component could be for example the name of the modified class or other relative contexts
    if you are doing a backport add also "backport" as prefix:
    [Backport][Component(s)] Short description...
    something like this is not descriptive enough:
    [README.md] Update
    The pull request description should only contain information relevant to the change by using our PR template schema.

You can read detailed updated guidelines from this file CONTRIBUTING.md

Code guidelines

This project follow the same code guidelines of Kodi (xbmc) repository, you can read updated code guidelines from this file CODE_GUIDELINES.md

We would also like to remind you other two points:

  • Return character, files must always be written by using the UNIX return character LF.
  • Code format style, when you apply a code change please always format your code by using the Clang-Format style. For example Visual Studio can automatically detect our Clang-Format rules and you can use CTRL+K+F shortcut keys to automatically apply the code style to the selected code lines.

Make backports of code

A backport consists in to apply a recent update or fix to an older Kodi version. Generally only fixes are allowed to be backported, and only for the version prior to the one currently under development (relative to master branch on xbmc repository). Other specific situations can be evaluated by the team, so before investing time on a backport we recommend you to open an Issue to propose it.

Clone this wiki locally