graphite-project / carbon

Indentation is not a multiple of four FLK-E111
Style
Major
59 occurrences in this check
indentation is not a multiple of 4
209
210def setDebugEnabled(enabled):
211  global debugEnabled
212  debugEnabled = enabled
indentation is not a multiple of 4
208
209
210def setDebugEnabled(enabled):
211  global debugEnabled212  debugEnabled = enabled
indentation is not a multiple of 4
200
201
202def debug(message, **context):
203  if debugEnabled:204    msg(message, **context)
205
206
indentation is not a multiple of 4
196
197def query(message, **context):
198  context['type'] = 'query'
199  msg(message, **context)200
201
202def debug(message, **context):
indentation is not a multiple of 4
195
196
197def query(message, **context):
198  context['type'] = 'query'199  msg(message, **context)
200
201
indentation is not a multiple of 4
191
192def aggregator(message, **context):
193  context['type'] = 'aggregator'
194  msg(message, **context)195
196
197def query(message, **context):
indentation is not a multiple of 4
190
191
192def aggregator(message, **context):
193  context['type'] = 'aggregator'194  msg(message, **context)
195
196
indentation is not a multiple of 4
186
187def relay(message, **context):
188  context['type'] = 'relay'
189  msg(message, **context)190
191
192def aggregator(message, **context):
indentation is not a multiple of 4
185
186
187def relay(message, **context):
188  context['type'] = 'relay'189  msg(message, **context)
190
191
indentation is not a multiple of 4
181
182def listener(message, **context):
183  context['type'] = 'listener'
184  msg(message, **context)185
186
187def relay(message, **context):
indentation is not a multiple of 4
180
181
182def listener(message, **context):
183  context['type'] = 'listener'184  msg(message, **context)
185
186
indentation is not a multiple of 4
176
177def updates(message, **context):
178  context['type'] = 'updates'
179  msg(message, **context)180
181
182def listener(message, **context):
indentation is not a multiple of 4
175
176
177def updates(message, **context):
178  context['type'] = 'updates'179  msg(message, **context)
180
181
indentation is not a multiple of 4
171
172def creates(message, **context):
173  context['type'] = 'creates'
174  msg(message, **context)175
176
177def updates(message, **context):
indentation is not a multiple of 4
170
171
172def creates(message, **context):
173  context['type'] = 'creates'174  msg(message, **context)
175
176
indentation is not a multiple of 4
166
167def clients(message, **context):
168  context['type'] = 'clients'
169  msg(message, **context)170
171
172def creates(message, **context):
indentation is not a multiple of 4
165
166
167def clients(message, **context):
168  context['type'] = 'clients'169  msg(message, **context)
170
171
indentation is not a multiple of 4
161
162def cache(message, **context):
163  context['type'] = 'cache'
164  msg(message, **context)165
166
167def clients(message, **context):
indentation is not a multiple of 4
160
161
162def cache(message, **context):
163  context['type'] = 'cache'164  msg(message, **context)
165
166
indentation is not a multiple of 4
156
157
158def logToStdout():
159  startLoggingWithObserver(carbonLogObserver)160
161
162def cache(message, **context):
indentation is not a multiple of 4
147    typeTag = ''
148
149  timestamp = time.strftime("%d/%m/%Y %H:%M:%S")
150  return "%s :: %s%s" % (timestamp, typeTag, message)151
152
153logToDir = carbonLogObserver.log_to_dir
indentation is not a multiple of 4
146  else:
147    typeTag = ''
148
149  timestamp = time.strftime("%d/%m/%Y %H:%M:%S")150  return "%s :: %s%s" % (timestamp, typeTag, message)
151
152
indentation is not a multiple of 4
143
144  if includeType:
145    typeTag = '[%s] ' % event.get('type', 'console')
146  else:147    typeTag = ''
148
149  timestamp = time.strftime("%d/%m/%Y %H:%M:%S")
indentation is not a multiple of 4
141  event['isError'] = 'failure' in event
142  message = textFromEventDict(event)
143
144  if includeType:145    typeTag = '[%s] ' % event.get('type', 'console')
146  else:
147    typeTag = ''
indentation is not a multiple of 4
139
140def formatEvent(event, includeType=False):
141  event['isError'] = 'failure' in event
142  message = textFromEventDict(event)143
144  if includeType:
145    typeTag = '[%s] ' % event.get('type', 'console')