From 043446998b24c3f5884ecd8653e19564dfcfd85d Mon Sep 17 00:00:00 2001 From: Prashanth Chandra Date: Tue, 4 Oct 2016 02:20:13 +0800 Subject: [PATCH 1/3] Add comment headers to wrappers --- dmd-wrapper | 5 +++-- stdin-wrapper | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dmd-wrapper b/dmd-wrapper index 678aeb9..6db47d1 100755 --- a/dmd-wrapper +++ b/dmd-wrapper @@ -1,7 +1,8 @@ #!/bin/bash -eu -# This script wraps DMD so we can get something which is capable of reading -# D code from stdin. +# Author: w0rp +# Description: This script wraps DMD so we can get something which is capable of reading +# D code from stdin. temp_file=`mktemp` mv "$temp_file" "$temp_file".d diff --git a/stdin-wrapper b/stdin-wrapper index 96d0891..09e9436 100755 --- a/stdin-wrapper +++ b/stdin-wrapper @@ -1,12 +1,12 @@ #!/bin/bash -eu -# This script implements a wrapper for any program which does not accept -# stdin input on most Unix machines. The input to the script is read to a -# temporary file, and the first argument sets a particular file extension -# for the temporary file. -# -# All of the following arguments are read as command to run. +# Author: w0rp +# Description: This script implements a wrapper for any program which does not accept +# stdin input on most Unix machines. The input to the script is read to a +# temporary file, and the first argument sets a particular file extension +# for the temporary file. +# All of the following arguments are read as command to run. file_extension="$1" shift From 1d4e035566227cebbeed113551cba22d635d6de1 Mon Sep 17 00:00:00 2001 From: Prashanth Chandra Date: Tue, 4 Oct 2016 02:41:02 +0800 Subject: [PATCH 2/3] Add comment headers for plugin/ale files --- plugin/ale/aaflags.vim | 6 +++--- plugin/ale/cursor.vim | 3 +++ plugin/ale/sign.vim | 3 +++ plugin/ale/util.vim | 3 +++ plugin/ale/zmain.vim | 4 ++++ 5 files changed, 16 insertions(+), 3 deletions(-) diff --git a/plugin/ale/aaflags.vim b/plugin/ale/aaflags.vim index 9f022be..6c0371c 100644 --- a/plugin/ale/aaflags.vim +++ b/plugin/ale/aaflags.vim @@ -1,6 +1,6 @@ -" This file sets up configuration settings for the ALE plugin. -" Flags can be set in vimrc files and so on to disable particular features, -" etc. +" Author: w0rp +" Description: This file sets up configuration settings for the ALE plugin. +" Flags can be set in vimrc files and so on to disable particular features if exists('g:loaded_ale_flags') finish diff --git a/plugin/ale/cursor.vim b/plugin/ale/cursor.vim index 234060a..7ebdbf1 100644 --- a/plugin/ale/cursor.vim +++ b/plugin/ale/cursor.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: Echoes lint message for the current line, if any + if exists('g:loaded_ale_cursor') finish endif diff --git a/plugin/ale/sign.vim b/plugin/ale/sign.vim index 46d74fc..9ea4b2d 100644 --- a/plugin/ale/sign.vim +++ b/plugin/ale/sign.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: Draws error and warning signs into signcolumn + if exists('g:loaded_ale_sign') finish endif diff --git a/plugin/ale/util.vim b/plugin/ale/util.vim index 34cacca..cda7a7d 100644 --- a/plugin/ale/util.vim +++ b/plugin/ale/util.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: Contains miscellaneous functions + if exists('g:loaded_ale_util') finish endif diff --git a/plugin/ale/zmain.vim b/plugin/ale/zmain.vim index 4cef1ab..26085b6 100644 --- a/plugin/ale/zmain.vim +++ b/plugin/ale/zmain.vim @@ -1,3 +1,7 @@ +" Author: w0rp +" Description: Main entry point for this plugin +" Loads linters and manages lint jobs + if exists('g:loaded_ale_zmain') finish endif From 51b7d7bc9528c61c03de79bed26ed0aff27a4330 Mon Sep 17 00:00:00 2001 From: Prashanth Chandra Date: Tue, 4 Oct 2016 02:55:55 +0800 Subject: [PATCH 3/3] Add comment headers to ale_linters --- ale_linters/c/gcc.vim | 3 +++ ale_linters/coffee/coffeelint.vim | 3 ++- ale_linters/d/dmd.vim | 3 +++ ale_linters/fortran/gcc.vim | 3 +++ ale_linters/haskell/ghc.vim | 3 +++ ale_linters/javascript/eslint.vim | 3 +++ ale_linters/javascript/jscs.vim | 1 + ale_linters/javascript/jshint.vim | 1 + ale_linters/python/flake8.vim | 3 +++ ale_linters/ruby/rubocop.vim | 1 + ale_linters/sh/shell.vim | 3 +++ 11 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ale_linters/c/gcc.vim b/ale_linters/c/gcc.vim index 083c318..500542d 100644 --- a/ale_linters/c/gcc.vim +++ b/ale_linters/c/gcc.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: gcc linter for c files + if exists('g:loaded_ale_linters_c_gcc') finish endif diff --git a/ale_linters/coffee/coffeelint.vim b/ale_linters/coffee/coffeelint.vim index 4083c24..aba29c4 100644 --- a/ale_linters/coffee/coffeelint.vim +++ b/ale_linters/coffee/coffeelint.vim @@ -1,4 +1,5 @@ -" Author: prashcr - https://github.com/prashcr +" Author: Prashanth Chandra https://github.com/prashcr +" Description: coffeelint linter for coffeescript files if exists('g:loaded_ale_linters_coffee_coffeelint') finish diff --git a/ale_linters/d/dmd.vim b/ale_linters/d/dmd.vim index 25d4b91..4c109e0 100644 --- a/ale_linters/d/dmd.vim +++ b/ale_linters/d/dmd.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: "dmd for D files" + if exists('g:loaded_ale_linters_d_dmd') finish endif diff --git a/ale_linters/fortran/gcc.vim b/ale_linters/fortran/gcc.vim index 6df2c65..3e97fea 100644 --- a/ale_linters/fortran/gcc.vim +++ b/ale_linters/fortran/gcc.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: gcc for Fortran files + if exists('g:loaded_ale_linters_fortran_gcc') finish endif diff --git a/ale_linters/haskell/ghc.vim b/ale_linters/haskell/ghc.vim index 2fb5e52..71988a2 100644 --- a/ale_linters/haskell/ghc.vim +++ b/ale_linters/haskell/ghc.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: ghc for Haskell files + if exists('g:loaded_ale_linters_haskell_ghc') finish endif diff --git a/ale_linters/javascript/eslint.vim b/ale_linters/javascript/eslint.vim index 8f829e2..8a4e03b 100644 --- a/ale_linters/javascript/eslint.vim +++ b/ale_linters/javascript/eslint.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: eslint for JavaScript files + if exists('g:loaded_ale_linters_javascript_eslint') finish endif diff --git a/ale_linters/javascript/jscs.vim b/ale_linters/javascript/jscs.vim index 16b35ce..263ea88 100644 --- a/ale_linters/javascript/jscs.vim +++ b/ale_linters/javascript/jscs.vim @@ -1,4 +1,5 @@ " Author: Chris Kyrouac - https://github.com/fijshion +" Description: jscs for JavaScript files if exists('g:loaded_ale_linters_javascript_jscs') finish diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim index 2de755c..61f8faa 100644 --- a/ale_linters/javascript/jshint.vim +++ b/ale_linters/javascript/jshint.vim @@ -1,4 +1,5 @@ " Author: Chris Kyrouac - https://github.com/fijshion +" Description: JSHint for Javascript files if exists('g:loaded_ale_linters_javascript_jshint') finish diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim index 19dfc22..95ab2a2 100644 --- a/ale_linters/python/flake8.vim +++ b/ale_linters/python/flake8.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: flake8 for python files + if exists('g:loaded_ale_linters_python_flake8') finish endif diff --git a/ale_linters/ruby/rubocop.vim b/ale_linters/ruby/rubocop.vim index cee7053..1acb263 100644 --- a/ale_linters/ruby/rubocop.vim +++ b/ale_linters/ruby/rubocop.vim @@ -1,4 +1,5 @@ " Author: ynonp - https://github.com/ynonp +" Description: rubocop for Ruby files if exists('g:loaded_ale_linters_ruby_rubocop') finish diff --git a/ale_linters/sh/shell.vim b/ale_linters/sh/shell.vim index 6c93933..f5987c0 100644 --- a/ale_linters/sh/shell.vim +++ b/ale_linters/sh/shell.vim @@ -1,3 +1,6 @@ +" Author: w0rp +" Description: Lints sh files using bash -n + if exists('g:loaded_ale_linters_sh_shell') finish endif