There are about 1000 style errors left in 'nrel_published' and they for the most part fall into these six categories.
missing description
missing modeler description
measure class isn't CamelCase
measure dir isn't snake_case
arg has special character
arg looks like it has units
Seems like the last two could be automated, I'm wondering if there is a reason not to do this?
here is the logic
If any part of argument name is between () then remove the remove the () and content in between and make a new `arg.setUnits("*")
After addressing units, if argument name still has special characters then remove them, if want to be more strict and only autofix if at end of string that is fine.
For the missing description and modeler description, I can't just copy and past text between the XML and ruby string because special characters and quotes are handled differently.
Right now we don't have the concept of automated openstudio style fixes. We could write a rake task to clean this up, but it would be "use at your own risk".
There are about 1000 style errors left in 'nrel_published' and they for the most part fall into these six categories.
Seems like the last two could be automated, I'm wondering if there is a reason not to do this?
here is the logic
For the missing description and modeler description, I can't just copy and past text between the XML and ruby string because special characters and quotes are handled differently.