Opened 4 years ago

Last modified 3 years ago

#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 (2)

comment:1 Changed 4 years ago by zenogantner

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?

comment:2 Changed 3 years ago by szabgab

  • Component changed from advanced perl tools to Refactoring Perl 5
Note: See TracTickets for help on using tickets.