Closed billsacks closed 6 years ago
I realized there's an off-by-one error in that script, so things mentioning 133 characters are actually okay.
It turns out that the problems on master were not really problems - the only offending lines were due to trailing whitespace. So the only real problems came in in ctsm1.0.dev005.
(I'm running the script with: code-format-checker/CodeFormatChecker.py -t rc -l 133
)
That is a neat format checking tool. That is the kind of thing I would like to add to continuous integration if we ever get it running for fates.
@rgknox see also https://github.com/marbl-ecosys/MARBL/blob/development/MARBL_tools/code_consistency.py
There are things I like about both of those tools, though neither one works exactly as I'd like right now.
Brief summary of bug
By running the code through https://github.com/NCAR/code-format-checker, I found a few dozen lines of code that are longer than 132 lines. I'm not sure why our NAG tests didn't pick this up.
General bug information
CTSM version you are using: ctsm1.0.dev004-24-geb61a048 . Some problems are new to this branch, some look to be pre-existing on master.
Does this bug cause significantly incorrect results in the model's science? No (probably not... though it's possible that runs with NAG are working incorrectly)
Configurations affected: Potentially will cause build failures with NAG compiler
Important output or errors that show the problem