Ticket #1024 (new defect)
"Change variable style" does not always work properly
| Reported by: | zenogantner | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Refactoring Perl 5 | Version: | 0.72 |
| Keywords: | refactoring | Cc: |
Description
The following things do not work as expected for me:
var: '$number_of_lines'
action: to Using_Underscores
expected: '$Number_Of_Lines'
got: '$Number_of_lines'
var: '$Number_Of_Lines'
action: to using_underscores
expected: '$number_of_lines'
got: '$numberoflines'
var: '$Number_Of_Lines'
action: to Using_Underscores
expected: '$Number_Of_Lines'
got: '$NumberOfLines'
Change History
Note: See
TracTickets for help on using
tickets.

Also, the comments in the ActionLibrary? are a bit strange:
comment => _T('Change variable style from camel_case to camelCase'),
comment => _T('Change variable style from camel_case to CamelCase'),
comment => _T('Change variable style from camelCase to camel_case'),
comment => _T('Change variable style from camelCase to Camel_Case'),
Shouldn't it be always from ANY style to a given one?