Add a fixer for Python for automatically adding blank lines before control statements

This commit is contained in:
w0rp
2017-05-22 12:59:40 +01:00
parent 4526018344
commit 1e72a7a130
3 changed files with 110 additions and 0 deletions

View File

@@ -2,6 +2,11 @@
" Description: A registry of functions for fixing things.
let s:default_registry = {
\ 'add_blank_lines_for_python_control_statements': {
\ 'function': 'ale#handlers#python#AddLinesBeforeControlStatements',
\ 'suggested_filetypes': ['python'],
\ 'description': 'Add blank lines before control statements.',
\ },
\ 'autopep8': {
\ 'function': 'ale#handlers#python#AutoPEP8',
\ 'suggested_filetypes': ['python'],