package Ġde . z al ando . z ally . rule . z al ando Ċ Ċ import Ġde . z al ando . z ally . rule . api . Check Ċ import Ġde . z al ando . z ally . rule . api . Context Ċ import Ġde . z al ando . z ally . rule . api . Severity Ċ import Ġde . z al ando . z ally . rule . api . Violation Ċ import Ġde . z al ando . z ally . rule . api . Rule Ċ import Ġde . z al ando . z ally . util . Pattern Util Ċ import Ġde . z al ando . z ally . util . getAll Headers Ċ Ċ @ Rule ( ĊĠĠĠ Ġrule Set Ġ= ĠZ al ando Rule Set :: class , ĊĠĠĠ Ġid Ġ= Ġ" 1 3 2 ", ĊĠĠĠ Ġseverity Ġ= ĠSeverity . SHO ULD , ĊĠĠĠ Ġtitle Ġ= Ġ" Prefer ĠHy phen ated - Pas cal - Case Ġfor ĠHTTP Ġheader Ġfields " Ċ ) Ċ class ĠPas cal Case HttpHeaders Rule Ġ{ ĊĊĠĠĠ Ġ@ Check ( severity Ġ= ĠSeverity . SHO ULD ) ĊĠĠĠ Ġfun Ġcheck HttpHeaders ( context : ĠContext ): ĠList < Violation > Ġ= ĊĠĠĠĠĠĠĠ Ġcontext . api . getAll Headers () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. filter Not Ġ{ ĠPattern Util . is Hy phen ated Pas cal Case ( it . name ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. map Ġ{ Ġcontext . violation (" Header Ġhas Ġto Ġbe ĠHy phen ated - Pas cal - Case ", Ġit . element ) Ġ} Ċ } Ċ