Skip to content

Commit

Permalink
Merge pull request #370 from ESMValGroup/REFACTORING_ncl-quality-checker
Browse files Browse the repository at this point in the history
NCL code quality checker and other utilities
  • Loading branch information
mattiarighi authored Jun 7, 2018
2 parents 6bb2e1d + 6fe3771 commit ff56ed7
Show file tree
Hide file tree
Showing 79 changed files with 18,695 additions and 22,213 deletions.
2 changes: 1 addition & 1 deletion doc/sphinx/source/developer_guide2/porting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Before submitting a pull request, the code shall be cleaned to adhere to the cod
- two-space instead of four-space indentation is now adopted for NCL as per NCL standard;
- ``load`` statements for NCL standard libraries shall be removed: these are automatically loaded since NCL v6.4.0 (see `NCL documentation <http://www.ncl.ucar.edu/current_release.shtml#PreloadedScripts6.4.0>`_);
- the description of diagnostic- and variable-specific settings shall be moved from the header of the diagnostic script to the main namelist, since the settings are now defined there (see above);
- NCL ``print`` and ``printVarSummary`` statements shall be avoided and replaced by the ``info_output`` and ``debug_output`` functions;
- NCL ``print`` and ``printVarSummary`` statements shall be avoided and replaced by the ``log_info`` and ``log_debug`` functions;
- for error and warning statments, the ``error_msg`` function shall be used, which automatically include an exit statement.

Open a pull request
Expand Down
448 changes: 207 additions & 241 deletions esmvaltool/diag_scripts/examples/diagnostic_pr.ncl

Large diffs are not rendered by default.

445 changes: 206 additions & 239 deletions esmvaltool/diag_scripts/examples/diagnostic_ta.ncl

Large diffs are not rendered by default.

Loading

0 comments on commit ff56ed7

Please sign in to comment.