OctopusDeploy / Octostache

| Public | The variable substitution syntax for Octopus Deploy
Other
5 stars 24 forks source link

Enforced Code Cleanup #76

Closed mjhilton closed 2 years ago

mjhilton commented 2 years ago

How to review

There are two main components to this PR:

In that clean-up, there were a couple of situations where R# was going to reduce the readability of code that had been crafted in a quite specific way. In these cases, and where it wasn't reasonable/easy to suppress the changes with a R# suppression comment, I've refactored the code to maintain as much of the original readability intent as possible, while preventing R#'s broom from messing with things. The main example of this is in source/Octostache/Templates/RecursiveDefinitionException.cs, but I recall there being one or two other instances where I had to massage the code to get everyone happy.

There should be no functional changes from any of this work.