Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions shopify_python/google_styleguide.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,32 @@ class GoogleStyleGuideChecker(checkers.BaseChecker):
name = 'google-styleguide-checker'

msgs = {
'C2601': ('%(child)s is not a module or cannot be imported',
'C6001': ('%(child)s is not a module or cannot be imported',
'import-modules-only',
'Only import packages or modules and ensure that they are installed.'),
'C2602': ('%(module)s imported relatively',
'C6002': ('%(module)s imported relatively',
'import-full-path',
'Import modules using their absolute names.'),
'C2603': ('%(name)s declared at the module level (i.e. global)',
'C6003': ('%(name)s declared at the module level (i.e. global)',
'global-variable',
'Avoid global variables in favor of class variables.'),
'C2604': ('Raised two-argument exception',
'C6004': ('Raised two-argument exception',
'two-arg-exception',
"Use either raise Exception('message') or raise Exception."),
'C2605': ('Raised deprecated string-exception',
'C6005': ('Raised deprecated string-exception',
'string-exception',
"Use either raise Exception('message') or raise Exception."),
'C2606': ('Caught StandardError',
'C6006': ('Caught StandardError',
'catch-standard-error',
"Don't catch StandardError."),
'C2607': ('Try body has %(found)i nodes',
'C6007': ('Try body has %(found)i nodes',
'try-too-long',
"The larger the 'try' body size, the more likely that an unexpected exception will be raised."),
'C2608': ('Except body has %(found)i nodes',
'C6008': ('Except body has %(found)i nodes',
'except-too-long',
"The larger the 'except' body size, the more likely that an exception will be raised during "
"exception handling."),
'C2609': ('Finally body has %(found)i nodes',
'C6009': ('Finally body has %(found)i nodes',
'finally-too-long',
"The larger the 'finally' body size, the more likely that an exception will be raised during "
"resource cleanup activities."),
Expand Down