Latest | Instance administration | Global analysis setup | New code definition
Setting the new code definition at the global level
On this page
The global-level new code definition is called baseline for new code:
- It applies by default to all projects. A specific new code definition can be applied to the project instead.
- If it applies to a project, the project consistently uses the baseline for new code. Consequently, any modifications to the baseline will automatically be applied to the project.
The default baseline for new code is the Previous version option. With the Administer System permission, you can change it to the Number of days option, either in the UI or via the Web API.
For more information about the new code options, see About new code.
In the UI
- In the top navigation bar, select Administration > Configuration > General Settings > New Code.
- Select the new code option.
- Select Save.

Via the Web API
Use the api/new_code_periods/set endpoint without specifying a branch or a project.
Related pages
Was this page helpful?