Skip to content
Snippets Groups Projects
  • Simon Heimberg's avatar
    77440de177f7
    tests: simplify and document the sorting of pyflake messages · 77440de177f7
    Simon Heimberg authored
    The pyflake messages are simply ordered by message type, path, line no (and
    message text).
    The message type is taken from the order of the filters.
    
    The previous ordering looks complicated and illogically.
    It was the following order (r'\3:\5:\4:\1:\2:' + line):
      message (\3 and \5)
      var name (\4)
      path (\1)
      line no (\2)
      line reference
    Ordering by var name before path looks illogically for me.
    77440de177f7
    History
    tests: simplify and document the sorting of pyflake messages
    Simon Heimberg authored
    The pyflake messages are simply ordered by message type, path, line no (and
    message text).
    The message type is taken from the order of the filters.
    
    The previous ordering looks complicated and illogically.
    It was the following order (r'\3:\5:\4:\1:\2:' + line):
      message (\3 and \5)
      var name (\4)
      path (\1)
      line no (\2)
      line reference
    Ordering by var name before path looks illogically for me.