pharo
pharo copied to clipboard
Cleanup newlines and blanks in "Monticello" packages
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
]
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