You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Refactors `session_helper`, `short_code_helper`, and `comment_helper` to avoid helper ivar state via request-scoped `CurrentRequest` and explicit context passing
7
+
- Preserves controller/view compatibility points used by existing admin/session/shortcode flows
8
+
- Removes Phase 4 helper exclusions from `Rails/HelperInstanceVariable` in `.rubocop_todo.yml`
9
+
- Adds helper coverage for session and comment helpers and keeps shortcode helper coverage in place
10
+
5
11
-**Refactor:** Replace Phase 3 admin/menu/taxonomy helper instance-variable state with CurrentRequest-backed state, [#1178](https://github.com/owen2345/camaleon-cms/pull/1178)
6
12
- Refactors admin menus, post type, and custom fields helpers to use request-scoped CurrentRequest state
7
13
- Eliminates traversal stack and registry instance variables from admin/menus, taxonomy hierarchy, and custom field helpers
`Rails/HelperInstanceVariable` currently flags 160 offenses across 16 helper modules. Most of these helpers are stateful DSL/builders (menus, SEO, shortcode, content buffers, current object/site/session memoization), so removing ivars safely requires incremental API-preserving refactors with focused specs.
7
+
8
+
## Proposed approach
9
+
Refactor in small, behavior-safe phases (max 5 files/phase), introducing explicit state containers/memoized helper methods instead of ad-hoc instance variables. Keep public helper method signatures stable, add/expand helper specs per phase, and remove files from `Rails/HelperInstanceVariable` exclusions as each phase becomes clean.
10
+
11
+
## Todos
12
+
1.**prep-baseline-and-guardrails**
13
+
- Confirm current branch and helper offense scope.
14
+
- Document affected helper families and target phase order.
15
+
- Define the per-phase verification command set and rollback rule.
0 commit comments