Rocklin Ca Chicken Ordinances
Unfortunately, it appears that it does say that fowl must be kept in an enclosure.
6.44.020 Enclosures for domestic fowl.
Domestic fowl shall be kept in a sanitary enclosure which shall not be located within twenty feet of any building or property line.
(Ord. 483 § 12.2, 1982).
What are the dimensions of your property? Are you being cited due to a complaint or just general enforcement?
Sorry you are dealing with this.