secure_headers
secure_headers copied to clipboard
Fix code style
All PRs:
- [x] Has tests
- [x] Documentation updated
Summary
This PR fixes all code style issues identified by rubocop.
Changes Made:
- Updated
.rubocop.ymlto useplugins:instead ofrequire:for rubocop-performance (addresses deprecation warning) - Auto-fixed 79 style offenses including:
- Changed
Style/OrAssignmentviolations to use||=operator - Converted
Style/ClassMethodsDefinitionsfromclass << selftodef self.method definitions across 12 files - Fixed
Layout/SpaceInsideHashLiteralBracesspacing issues throughout spec files
- Changed
- Manually fixed
GitHub/AvoidObjectSendWithDynamicMethodwarning with appropriate rubocop disable comments for intentional dynamic dispatch in test code
Verification:
- ✅ All 247 tests pass with 0 failures
- ✅ Rubocop shows 0 offenses
- ✅ No functional changes, only code style improvements
~~## Adding a new header~~ Not applicable - this PR only contains code style fixes
~~## Adding a new CSP directive~~ Not applicable - this PR only contains code style fixes