USP0004 Don't flag fields decorated with serialization attributes (like SerializeField, SerializeReference or OdinSerialize) as read-only
Fields with the SerializeField, SerializeReference or OdinSerialize attributes should not be marked read-only.
IDE0044 - Make field readonly
using UnityEngine;
class Camera : MonoBehaviour
{
[SerializeField]
private string someField = "default";
}The IDE does not detect that the field is ever assigned outside of the declaration or in a constructor. Therefore, under normal circumstances, it would be reasonable to mark the field as read-only.
A field with the SerializeField, SerializeReference or OdinSerialize attributes are exposed and can be assigned in the Unity Inspector. Making the field read-only would break this behavior.