From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [dpdk-stable] [PATCH v3 1/2] Enable codespell by default. Can be disabled from config file. Date: Fri, 01 Mar 2019 18:51:02 +0100 Message-ID: <7663396.UzxFzaq1Qb@xps> References: <20190214193547.30783-1-msantana@redhat.com> <20190301170806.3547-2-msantana@redhat.com> <1799922.WJ13kK0DMs@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, stable@dpdk.org, Bruce Richardson , Van Haaren Harry , ramirose@gmail.com To: Michael Santana Return-path: In-Reply-To: <1799922.WJ13kK0DMs@xps> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 01/03/2019 18:43, Thomas Monjalon: > 01/03/2019 18:08, Michael Santana: > > +# Enable codespell by default. This can be overwritten from a config file. > > +# You can also enable codespell by setting DPDK_CHECKPATCH_CODESPELL to a valid path > > +# to a dictionary.txt file if your dictionary.txt is not in the default location. This line length won't pass chekpatch ;) > Better to avoid "you" form in such comment. > > > +DPDK_CHECKPATCH_CODESPELL=enable It will override the value if passed with an environment variable. You should do the same as for DPDK_CHECKPATCH_LINE_LENGTH. > > # Load config options: > > # - DPDK_CHECKPATCH_PATH > > # - DPDK_CHECKPATCH_LINE_LENGTH > > +# - DPDK_CHECKPATCH_CODESPELL > > . $(dirname $(readlink -e $0))/load-devel-config > > > > VALIDATE_NEW_API=$(dirname $(readlink -e $0))/check-symbol-change.sh > > @@ -13,6 +18,12 @@ length=${DPDK_CHECKPATCH_LINE_LENGTH:-80} > > > > # override default Linux options > > options="--no-tree" > > +if [ "$DPDK_CHECKPATCH_CODESPELL" == "enable" ]; then > > This is a bashism. > Standard sh uses a simple = > > No need for a v4, I can fix it. Because of the required change for the env var case, please do a v4.