]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix description for "Barbarism of editting a file"
authorJuPing <jup.fnst@cn.fujitsu.com>
Sat, 22 Aug 2015 07:45:47 +0000 (07:45 +0000)
committerJuPing <jup.fnst@cn.fujitsu.com>
Sat, 22 Aug 2015 07:45:47 +0000 (07:45 +0000)
There are some barbarism located in the file cinder/HACKING.rst.
  line11 and line21 : there is no full point at the end of a sentence.
  line14 and line23 : after a sentence, there are two space between
  the full point and the first letter of the second sentence.
I think the correct format of the above question as blow.
   - [N319] Validate that debug level logs are not translated.
   - [C302] six.text_type should be used instead of unicode.
   - [N325] str() and unicode() cannot be used on
   an exception. Remove or use six.text_type().
   - [C304] Enforce no use of LOG.audit
   messages. LOG.info should be used instead.

Change-Id: I2896bacc5379786ed115d47e520bf5bc2af0028a
Closes-Bug: #1487665

HACKING.rst

index 198ca329900074e10e8dffae9508c244665490ad..2dd920cd5bdc9d90e872b28c63b500dbc53ad9f2 100644 (file)
@@ -8,19 +8,19 @@ Cinder Style Commandments
 Cinder Specific Commandments
 ----------------------------
 - [N314] Check for vi editor configuration in source files.
-- [N319] Validate that debug level logs are not translated
+- [N319] Validate that debug level logs are not translated.
 - [N322] Ensure default arguments are not mutable.
 - [N323] Add check for explicit import of _() to ensure proper translation.
-- [N325] str() and unicode() cannot be used on an exception.  Remove or use six.text_type().
+- [N325] str() and unicode() cannot be used on an exception. Remove or use six.text_type().
 - [N328] LOG.info messages require translations `_LI()`.
 - [N329] LOG.exception and LOG.error messages require translations `_LE()`.
 - [N330] LOG.warning messages require translations `_LW()`.
 - [N333] Ensure that oslo namespaces are used for namespaced libraries.
 - [N336] Must use a dict comprehension instead of a dict constructor with a sequence of key-value pairs.
 - [C301] timeutils.utcnow() from oslo_utils should be used instead of datetime.now().
-- [C302] six.text_type should be used instead of unicode
+- [C302] six.text_type should be used instead of unicode.
 - [C303] Ensure that there are no 'print()' statements in code that is being committed.
-- [C304] Enforce no use of LOG.audit messages.  LOG.info should be used instead.
+- [C304] Enforce no use of LOG.audit messages. LOG.info should be used instead.
 - [C305] Prevent use of deprecated contextlib.nested.
 - [C306] timeutils.strtime() must not be used (deprecated).
 - [C307] LOG.warn is deprecated. Enforce use of LOG.warning.