Bug 1344853 - Enable flake8 rule E127: "continuation line over-indented for visual indent". r=Dexter
authorKonstantin <kpstsp@gmail.com>
Wed, 22 Mar 2017 23:38:19 +0300
changeset 349067 ee19e49280f3
parent 349066 e846c455670e
child 349068 a89806ba0faa
push id31541
push usercbook@mozilla.com
push dateThu, 23 Mar 2017 12:43:04 +0000
treeherdermozilla-central@89b93d310da5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersDexter
bugs1344853
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1344853 - Enable flake8 rule E127: "continuation line over-indented for visual indent". r=Dexter MozReview-Commit-ID: HdEe1UCeKOh
toolkit/components/telemetry/.flake8
toolkit/components/telemetry/gen-event-data.py
--- a/toolkit/components/telemetry/.flake8
+++ b/toolkit/components/telemetry/.flake8
@@ -1,5 +1,5 @@
 [flake8]
 # See http://pep8.readthedocs.io/en/latest/intro.html#configuration
-ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402, E501, E202, E127, W601
+ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402, E501, E202, W601
 max-line-length = 99
 filename = *.py, +.lint
--- a/toolkit/components/telemetry/gen-event-data.py
+++ b/toolkit/components/telemetry/gen-event-data.py
@@ -70,44 +70,44 @@ def write_common_event_table(events, out
     for e, extras in zip(events, extra_table):
         # Write a comment to make the file human-readable.
         print("  // category: %s" % e.category, file=output)
         print("  // methods: [%s]" % ", ".join(e.methods), file=output)
         print("  // objects: [%s]" % ", ".join(e.objects), file=output)
 
         # Write the common info structure
         print("  {%d, %d, %d, %d, %d, %s, %s}," %
-                (string_table.stringIndex(e.category),
-                 string_table.stringIndex(e.expiry_version),
-                 extras[0],  # extra keys index
-                 extras[1],  # extra keys count
-                 e.expiry_day,
-                 e.dataset,
-                 " | ".join(e.record_in_processes_enum)),
+              (string_table.stringIndex(e.category),
+               string_table.stringIndex(e.expiry_version),
+               extras[0],  # extra keys index
+               extras[1],  # extra keys count
+               e.expiry_day,
+               e.dataset,
+               " | ".join(e.record_in_processes_enum)),
               file=output)
 
     print("};", file=output)
     static_assert(output, "sizeof(%s) <= UINT32_MAX" % table_name,
                   "index overflow")
 
 
 def write_event_table(events, output, string_table):
     table_name = "gEventInfo"
     print("const EventInfo %s[] = {" % table_name, file=output)
 
     for common_info_index, e in enumerate(events):
         for method_name, object_name in itertools.product(e.methods, e.objects):
             print("  // category: %s, method: %s, object: %s" %
-                    (e.category, method_name, object_name),
+                  (e.category, method_name, object_name),
                   file=output)
 
             print("  {gCommonEventInfo[%d], %d, %d}," %
-                    (common_info_index,
-                     string_table.stringIndex(method_name),
-                     string_table.stringIndex(object_name)),
+                  (common_info_index,
+                   string_table.stringIndex(method_name),
+                   string_table.stringIndex(object_name)),
                   file=output)
 
     print("};", file=output)
     static_assert(output, "sizeof(%s) <= UINT32_MAX" % table_name,
                   "index overflow")
 
 
 def main(output, *filenames):