From 8160f2fb948a416e15be3b1201d80377b02948a7 Mon Sep 17 00:00:00 2001 From: Nicholas Ormrod Date: Fri, 31 Oct 2014 14:54:30 -0700 Subject: [PATCH] Fix line too long lint errors Summary: Many lines that are too long contain URLs. This diff adds url-like lines to the list of exceptions to 80-char limits. It also fixed the locations in folly with line-too-long errors. Test Plan: arc lint on folly, see no line-too-long errors. Reviewed By: robbert@fb.com Subscribers: sdwilsh, njormrod, folly-diffs@ FB internal diff: D1644151 Tasks: 5486739 Signature: t1:1644151:1414779408:76bcec1d14daaa8ed071c715bf26b108c8fe4b87 --- folly/test/SocketAddressTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/folly/test/SocketAddressTest.cpp b/folly/test/SocketAddressTest.cpp index 39eb9820..f875b4ad 100644 --- a/folly/test/SocketAddressTest.cpp +++ b/folly/test/SocketAddressTest.cpp @@ -657,9 +657,11 @@ void testSetFromSocket(const SocketAddress *serverBindAddr, sockaddr_storage acceptAddr; socklen_t acceptAddrLen = sizeof(acceptAddr); - int serverSock = accept(listenSock, reinterpret_cast(&acceptAddr), &acceptAddrLen); + int serverSock = accept(listenSock, + reinterpret_cast(&acceptAddr), &acceptAddrLen); REQUIRE_ERRNO(serverSock > 0, "failed to accept"); - acceptAddrRet->setFromSockaddr(reinterpret_cast(&acceptAddr), acceptAddrLen); + acceptAddrRet->setFromSockaddr( + reinterpret_cast(&acceptAddr), acceptAddrLen); serverAddrRet->setFromLocalAddress(serverSock); serverPeerAddrRet->setFromPeerAddress(serverSock); -- 2.34.1