Temporary ignore bashate E006 errors
The currently available bashate releases are considering heredocs as normal code lines, hence lines longer than 79 columns in these sections are also considered as E006 violations. As the OCF scripts are containing lots of heredocs, we are affected by this behaviour. However, there is a commit in the bashate repository (649c7dc79948) which modifies bashate to ignore long lines in heredocs. Currently there is no bashate release which contains the above commit, so we ignore E006 errors until a new bashate released. Change-Id: I33a9737ce1ec7eddab0b24ddedefe5c17da03b7a Partial-Bug: #1550203 Signed-off-by: Norbert Illes <norbert.e.illes@ericsson.com>
This commit is contained in:
parent
98a54ad759
commit
fa93525cea
11
tox.ini
11
tox.ini
@ -7,7 +7,16 @@ whitelist_externals = bash
|
||||
|
||||
[testenv:bashate]
|
||||
deps = bashate
|
||||
commands = bash -c "bashate --verbose {toxinidir}/ocf/*"
|
||||
# NOTE: We ignore E006 violations (--ignore E006) only temporary.
|
||||
# The reason is that the currently available bashate versions (<=0.4.0) are
|
||||
# considering heredocs as normal code lines, hence lines longer than 79 columns
|
||||
# in these sections are also considered as E006 violations.
|
||||
# Commit 649c7dc79948 in bashate repository modifies bashate to ignore long
|
||||
# lines in heredocs, but currently there is no bashate release which contains
|
||||
# this commit.
|
||||
# TODO: After a new bashate released, '--ignore E006' should be deleted and the
|
||||
# newer bashate version should be specified as a dependency.
|
||||
commands = bash -c "bashate --ignore E006 --verbose {toxinidir}/ocf/*"
|
||||
|
||||
[testenv:syntax-check]
|
||||
setenv =
|
||||
|
Loading…
Reference in New Issue
Block a user