Skip to main content

Invalid cross-file analysis setting

typehttps://docs.frem.sh/reference/api/errors/invalid-xfile-nightly
HTTP status400 Bad Request

What it means

The xfile_nightly field of PUT /orgs/{org}/code-security/sast/settings had a value other than default or off.

Example detail message returned with this error:

  • xfile_nightly must be default or off.

What to do

Send default (follow fremforge’s rollout of the nightly cross-file analysis) or off (opt the organisation out), or leave xfile_nightly out to keep the stored value. There is no on: the analysis is switched on by the rollout, not per organisation. See Cross-file analysis (nightly).

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/invalid-xfile-nightly",
  "title": "Bad Request",
  "status": 400,
  "detail": "..."
}

Branch on type, not on title or detail - those are human-readable and may be reworded.