pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Cleanup newlines and blanks in "Monticello" packages

Open astares opened this issue 2 years ago • 1 comments

see #10396 and fix it for all "Monticello" related packages:

badCases := SystemNavigation default allMethodsSelect: [ :each | each sourceCode trimRight size ~= each sourceCode size ].

fixInPackage := badCases select: [:each | each package name beginsWith: 'Monticello' ].

fixInPackage do: [:each |
	| refactoring classOrTrait |
	classOrTrait := each traitSource ifNil: [ each methodClass ] ifNotNil: [ each traitSource innerClass ].
	refactoring := RBAddMethodChange compile: each sourceCode trimRight in: classOrTrait for: nil.				 
	refactoring execute	
]

astares avatar Nov 30 '21 22:11 astares

This is not that easy, see discussion on the PR of the first try of what needs to be done: https://github.com/pharo-project/pharo/pull/10553

MarcusDenker avatar Jun 17 '22 11:06 MarcusDenker