mirror of https://github.com/rwf2/Rocket.git
Check for trailing new lines in testing script.
This commit is contained in:
parent
2d974ece78
commit
5f50d5e232
|
@ -1613,4 +1613,3 @@ the Rocket APIs. They are summarized through the following API changes:
|
|||
## Testing
|
||||
|
||||
* Add a significant number of codegen tests.
|
||||
|
||||
|
|
|
@ -126,4 +126,3 @@ pub fn bench_bitwarden_routes(c: &mut Criterion) {
|
|||
}
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
@ -246,4 +246,3 @@ impl Poolable for memcache::Client {
|
|||
Ok(r2d2::Pool::builder().max_size(config.pool_size).build(manager)?)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -414,4 +414,3 @@ default_handler_fn! {
|
|||
510, "Not Extended", "Further extensions to the request are required for \
|
||||
the server to fulfill it."
|
||||
}
|
||||
|
||||
|
|
|
@ -144,4 +144,3 @@ impl std::fmt::Display for Key {
|
|||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -235,4 +235,3 @@ impl std::fmt::Debug for Name {
|
|||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue