Check for trailing new lines in testing script.

This commit is contained in:
Sergio Benitez 2021-06-07 18:27:31 -07:00
parent 2d974ece78
commit 5f50d5e232
7 changed files with 8 additions and 6 deletions

View File

@ -1613,4 +1613,3 @@ the Rocket APIs. They are summarized through the following API changes:
## Testing
* Add a significant number of codegen tests.

View File

@ -126,4 +126,3 @@ pub fn bench_bitwarden_routes(c: &mut Criterion) {
}
}));
}

View File

@ -246,4 +246,3 @@ impl Poolable for memcache::Client {
Ok(r2d2::Pool::builder().max_size(config.pool_size).build(manager)?)
}
}

View File

@ -414,4 +414,3 @@ default_handler_fn! {
510, "Not Extended", "Further extensions to the request are required for \
the server to fulfill it."
}

View File

@ -144,4 +144,3 @@ impl std::fmt::Display for Key {
self.0.fmt(f)
}
}

View File

@ -235,4 +235,3 @@ impl std::fmt::Debug for Name {
self.0.fmt(f)
}
}

View File

@ -56,6 +56,14 @@ function check_style() {
echo "${matches}"
exit 1
fi
local pattern='tail -n 1 % | grep -q "^$" && echo %'
local matches=$(git grep -z -Il '' | xargs -0 -P 16 -I % sh -c "${pattern}")
if ! [ -z "${matches}" ]; then
echo "Trailing new line(s) found in the following:"
echo "${matches}"
exit 1
fi
}
function indir() {