Repository Analysis

facebook/folly

An open-source C++ library developed and used at Facebook.

2.9 Likely human-written View on GitHub
2.9
Adjusted Score
2.9
Raw Score
100%
Time Factor
2026-05-29
Last Push
30,393
Stars
C++
Language
723,729
Lines of Code
2524
Files
1832
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 52MEDIUM 22LOW 1758

Pattern Findings

1832 matches across 15 categories. Click a row to expand file-level details.

Over-Commented Block1618 hits · 1584 pts
SeverityFileLineSnippet
LOWCMakeListsForBuck2.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.
LOWCMakeLists.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.
LOWbuild.sh1#!/bin/bash
LOW.github/scripts/buck_build_and_test.sh1#!/bin/bash
LOWfolly/Demangle.cpp21
LOWfolly/Format-inl.h21#include <array>
LOWfolly/ConstructorCallbackList.h21#include <memory>
LOWfolly/ConstructorCallbackList.h41// ...
LOWfolly/ConstructorCallbackList.h61// Per the example above,
LOWfolly/ConcurrentSkipList.h121#include <atomic>
LOWfolly/ConcurrentSkipList.h621 }
LOWfolly/ExceptionWrapper.h21#include <exception>
LOWfolly/ExceptionWrapper.h41
LOWfolly/ExceptionWrapper.h61//!
LOWfolly/ExceptionWrapper.h81//! LOG(ERROR) << "FAILWHALE!";
LOWfolly/ExceptionWrapper.h141 //! \post `*this` contains a copy of `that`, and `that` is unmodified
LOWfolly/ExceptionWrapper.h201 void reset();
LOWfolly/ExceptionWrapper.h261
LOWfolly/ExceptionWrapper.h281 //! assert( ew.with_exception([](std::runtime_error& e){/*...*/}) );
LOWfolly/ExceptionWrapper.h301 //! `throw e;`.)
LOWfolly/ExceptionWrapper.h321 //! [&](std::exception const& e) {
LOWfolly/ObserverContainer.h1021
LOWfolly/Singleton.cpp21#include <signal.h>
LOWfolly/Range.h41#include <folly/lang/Exception.h>
LOWfolly/Range.h641 // T constructor that takes a type U that is implicitly convertible
LOWfolly/Traits.h21#include <functional>
LOWfolly/Traits.h101constexpr auto operator""_uzic() noexcept {
LOWfolly/Traits.h121/// else static_assert(always_false<T>, "Unsupported type");
LOWfolly/Traits.h161} // namespace detail
LOWfolly/Traits.h201/// is_bounded_array_v
LOWfolly/Traits.h381///
LOWfolly/Traits.h421/// like
LOWfolly/Traits.h581
LOWfolly/Traits.h601///
LOWfolly/Traits.h681// is_nothrow_convertible
LOWfolly/Traits.h1121 : std::bool_constant<is_non_bool_integral_v<Int>> {};
LOWfolly/CppAttributes.h21#pragma once
LOWfolly/CppAttributes.h81 * call-sites.
LOWfolly/CppAttributes.h121#elif FOLLY_HAS_CPP_ATTRIBUTE(msvc::no_unique_address)
LOWfolly/CppAttributes.h141 * type-based alias analysis, but are instead assumed to be able to alias any
LOWfolly/CppAttributes.h161
LOWfolly/CppAttributes.h181#define FOLLY_ATTR_GNU_NOCLONE gnu::noclone
LOWfolly/CppAttributes.h201#define FOLLY_ATTR_CLANG_CORO_AWAIT_ELIDABLE
LOWfolly/SocketAddress.h21#include <cstddef>
LOWfolly/CMakeLists.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.
LOWfolly/IPAddress.h21 *
LOWfolly/base64.h21#include <string>
LOWfolly/base64.h41// (padding symbols are required on decoding)
LOWfolly/base64.h61struct base64_decode_error;
LOWfolly/ScopeGuard.h301ScopeGuardImpl<std::decay_t<FunctionType>, true> operator+(
LOWfolly/ScopeGuard.h321// throw 0; // the cleanup happens at end of the scope
LOWfolly/ScopeGuard.h361// SCOPE_FAIL
LOWfolly/ScopeGuard.h381 *
LOWfolly/ConcurrentBSkipList.h21// key capacity; P is the promotion denominator (see topLevelForKey).
LOWfolly/ConcurrentBSkipList.h41#include <atomic>
LOWfolly/Singleton.h21/// Recommended usage of this class: suppose you have a class
LOWfolly/Singleton.h41/// }
LOWfolly/Singleton.h61///
LOWfolly/Singleton.h81/// deleted via delete, but this is configurable:
LOWfolly/Singleton.h101///
1558 more matches not shown…
Cross-Language Confusion51 hits · 266 pts
SeverityFileLineSnippet
HIGHfolly/python/test/iobuf.py363 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py372 self.assertEqual(xb.length(), 15)
HIGHfolly/python/test/iobuf.py409 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py412 self.assertEqual(xb.length(), 16)
HIGHfolly/python/test/iobuf.py416 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py426 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py436 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py440 self.assertEqual(xb.length(), 16)
HIGHfolly/python/test/iobuf.py444 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py455 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py458 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py460 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py471 self.assertEqual(xb.length(), 16)
HIGHfolly/python/test/iobuf.py475 self.assertEqual(xb.length(), 10)
HIGHfolly/python/test/iobuf.py478 self.assertEqual(xb.length(), 4)
HIGHfolly/python/test/iobuf.py482 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py485 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py494 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py497 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py500 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py504 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py507 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py517 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py528 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py531 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py533 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py544 self.assertEqual(xb.length(), 16)
HIGHfolly/python/test/iobuf.py548 self.assertEqual(xb.length(), 10)
HIGHfolly/python/test/iobuf.py551 self.assertEqual(xb.length(), 4)
HIGHfolly/python/test/iobuf.py555 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py558 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py567 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py570 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py573 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py577 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py580 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py590 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py601 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py604 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py606 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py608 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py619 self.assertEqual(xb.length(), 16)
HIGHfolly/python/test/iobuf.py623 self.assertEqual(xb.length(), 10)
HIGHfolly/python/test/iobuf.py626 self.assertEqual(xb.length(), 16)
HIGHfolly/python/test/iobuf.py630 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py633 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py635 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py644 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py647 self.assertEqual(xb.length(), 5)
HIGHfolly/python/test/iobuf.py649 self.assertEqual(xb.length(), 0)
HIGHfolly/python/test/iobuf.py659 self.assertEqual(xb.length(), 0)
Hyper-Verbose Identifiers72 hits · 63 pts
SeverityFileLineSnippet
LOWfolly/python/test/test_iobuf_ext.py27 def test_iobuf_should_not_hang_when_outliving_asyncio_loop(self) -> None:
LOWfolly/python/test/test_iobuf_ext.py60 def test_copy_from_buffer_bytes(self) -> None:
LOWfolly/python/test/test_iobuf_ext.py74 def test_copy_from_buffer_bytearray(self) -> None:
LOWfolly/python/test/test_iobuf_ext.py87 def test_copy_from_buffer_memoryview(self) -> None:
LOWfolly/python/test/test_iobuf_ext.py96 def test_copy_from_buffer_does_not_pin_source_object(self) -> None:
LOWfolly/python/test/teardown.py41 def test_fiber_manager_tear_down(self) -> None:
LOWfolly/python/test/coro.py36 async def _return_five_after_cancelled(self) -> int:
LOWfolly/python/test/coro.py88 def test_executor_stats_blocking(self) -> None:
LOWfolly/python/test/test_set_executor.py28 def test_cannot_override_existing_loop(self):
LOWfolly/python/test/request_context.py88 async def test_multiple_ctx_copies_memory_leak(self) -> None:
LOWfolly/python/test/generator.py38 def test_iter_generator_empty(self) -> None:
LOWfolly/python/test/generator.py53 def test_iter_generator_error(self) -> None:
LOWfolly/python/test/iobuf.py355 def test_buffer_creation_with_size_write(self) -> None:
LOWfolly/python/test/iobuf.py375 def test_buffer_creation_with_size_write_fail(self) -> None:
LOWfolly/python/test/iobuf.py407 def test_buffer_creation_with_size_append(self) -> None:
LOWfolly/python/test/iobuf.py414 def test_buffer_creation_with_size_append_fail(self) -> None:
LOWfolly/python/test/iobuf.py424 def test_buffer_creation_with_size_append_fail_negative(self) -> None:
LOWfolly/python/test/iobuf.py434 def test_buffer_creation_with_size_multiple_append(self) -> None:
LOWfolly/python/test/iobuf.py442 def test_buffer_creation_with_size_multiple_append_fail(self) -> None:
LOWfolly/python/test/iobuf.py453 def test_buffer_creation_with_size_trim_start(self) -> None:
LOWfolly/python/test/iobuf.py462 def test_buffer_creation_with_size_write_trim_start(self) -> None:
LOWfolly/python/test/iobuf.py480 def test_buffer_creation_with_size_trim_start_fail(self) -> None:
LOWfolly/python/test/iobuf.py492 def test_buffer_creation_with_size_trim_start_multiple(self) -> None:
LOWfolly/python/test/iobuf.py502 def test_buffer_creation_with_size_trim_start_fail_multiple(self) -> None:
LOWfolly/python/test/iobuf.py515 def test_buffer_creation_with_size_trim_start_fail_negative(self) -> None:
LOWfolly/python/test/iobuf.py526 def test_buffer_creation_with_size_trim_end(self) -> None:
LOWfolly/python/test/iobuf.py535 def test_buffer_creation_with_size_write_trim_end(self) -> None:
LOWfolly/python/test/iobuf.py553 def test_buffer_creation_with_size_trim_end_fail(self) -> None:
LOWfolly/python/test/iobuf.py565 def test_buffer_creation_with_size_trim_end_multiple(self) -> None:
LOWfolly/python/test/iobuf.py575 def test_buffer_creation_with_size_trim_end_fail_multiple(self) -> None:
LOWfolly/python/test/iobuf.py588 def test_buffer_creation_with_size_trim_end_fail_negative(self) -> None:
LOWfolly/python/test/iobuf.py599 def test_buffer_creation_with_size_prepend(self) -> None:
LOWfolly/python/test/iobuf.py610 def test_buffer_creation_with_size_write_prepend(self) -> None:
LOWfolly/python/test/iobuf.py628 def test_buffer_creation_with_size_prepend_fail(self) -> None:
LOWfolly/python/test/iobuf.py642 def test_buffer_creation_with_size_prepend_fail_multiple(self) -> None:
LOWfolly/python/test/iobuf.py657 def test_buffer_creation_with_size_prepend_fail_negative(self) -> None:
LOWfolly/python/test/iobuf.py124 def test_conversion_from_python_to_cpp(self) -> None:
LOWfolly/python/test/iobuf.py135 def test_conversion_from_python_to_cpp_with_wrong_type(self) -> None:
LOWfolly/python/test/iobuf.py202 def test_buffer_update_in_place(self) -> None:
LOWfolly/python/test/iobuf.py208 def test_buffer_write_out_of_bounds(self) -> None:
LOWfolly/python/test/iobuf.py225 def test_buffer_read_out_of_bounds(self) -> None:
LOWfolly/python/test/iobuf.py240 def test_buffer_write_empty_pieces(self) -> None:
LOWfolly/python/test/iobuf.py266 def test_empty_writable_chain(self) -> None:
LOWfolly/python/test/iobuf.py276 def test_appendable_writable_chain(self) -> None:
LOWfolly/python/test/iobuf.py291 def test_appendable_writable_chain_overwrite(self) -> None:
LOWfolly/python/test/iobuf.py317 def test_appendable_writable_chain_coalesce(self) -> None:
LOWfolly/python/test/iobuf.py335 def test_appendable_writable_chain_coalesce_exception(self) -> None:
LOWfolly/python/test/iobuf.py391 def test_buffer_creation_with_size_read_fail(self) -> None:
LOWfolly/fibers/scripts/gdb.py834def fiber_manager_active_fibers(fm):
LOWfolly/fibers/scripts/gdb.py888def get_fiber_manager_map_evb():
LOWfolly/fibers/scripts/gdb.py892def get_fiber_manager_map_vevb():
LOWfolly/docs/Synchronized.md18 class RequestHandler {
LOWfolly/docs/Synchronized.md64 class RequestHandler {
LOWfolly/json/test/tests/test_float_format_python_json.py61 def test_integer_valued_doubles(self) -> None:
LOWfolly/json/test/tests/test_float_format_python_json.py64 def test_scientific_integer_mantissa(self) -> None:
LOWfolly/json/test/tests/test_float_format_python_json.py80 def test_integer_valued_doubles(self) -> None:
LOWfolly/json/test/tests/test_float_format_python_json.py85 def test_scientific_integer_mantissa(self) -> None:
LOWfolly/json/test/tests/test_float_format_python_json.py104 def test_scientific_integer_mantissa(self) -> None:
LOWfolly/json/test/tests/test_float_format_python_json.py116 def test_scientific_integer_mantissa(self) -> None:
LOWfolly/json/test/tests/test_float_format_python_json.py119 def test_integer_valued_doubles(self) -> None:
12 more matches not shown…
AI Slop Vocabulary15 hits · 43 pts
SeverityFileLineSnippet
MEDIUMfolly/SharedMutex.h1612// std::shared_lock specialization for folly::SharedMutex to leverage tokenful
MEDIUMfolly/MPMCQueue.h66/// which is more robust to contention than a CAS loop. Each of the
MEDIUMfolly/result/rich_error_base.h309/// writing rich errors to glog & `std` streams. This ought to be more robust
MEDIUMfolly/memory/Malloc.cpp81 // Absolutely wild, but this apparently needs to be cached within this TU.
MEDIUMfolly/memory/Malloc.cpp118 // Absolutely wild, but this apparently needs to be cached within this TU.
MEDIUMfolly/hash/detail/RandomSeed.h30// leverage ASLR (Address Space Layout Randomization) [2] to get a per-run
MEDIUMfolly/fibers/scripts/gdb.py251 # than the stack of the currently selected frame. Essentially, we take
LOWfolly/fibers/scripts/gdb.py613# for a cached fiber will just return the same cached FiberInfo.
LOWfolly/fibers/scripts/gdb.py792 # almost always 0 (used for frozen options). We'll ignore it and just use
MEDIUMfolly/lang/MustUseImmediately.h32// Essentially, this is a public analog of `folly::detail`. If you use it,
MEDIUMfolly/lang/SafeAlias-fwd.h47 // Definitely has aliasing, we know nothing of the lifetime.
MEDIUMfolly/detail/RangeSse42.cpp23// Essentially, two versions of this file: one with an SSE42 implementation
MEDIUMfolly/coro/safe/SafeTask.h134// Design note: Fundamentally, the reason that we have `member_task`, and
MEDIUMfolly/coro/safe/test/NowTaskTest.cpp74// expected call-path-to-awaiter. This is pretty robust, so long as I check
MEDIUM…/coro/safe/detail/DefineMovableDeepConstLrefCopyable.h68// non-copyable, instead of the more nuanced behavior we need. To
Verbosity Indicators21 hits · 42 pts
SeverityFileLineSnippet
LOWfolly/String.cpp550 // Step 1: Clear the high order bit. We'll deal with it in Step 5.
LOWfolly/String.cpp557 // Step 2: Add 0x25 (37)
LOWfolly/String.cpp564 // Step 3: clear the high order bit
LOWfolly/String.cpp570 // Step 4: Add 0x1a (26)
LOWfolly/String.cpp579 // Step 5: Shift the high order bit 2 spaces to the right: the spot
LOWfolly/String.cpp590 // Step 6: Apply a mask to clear everything except the 0x20 bit
LOWfolly/String.cpp596 // Step 7: Add rotated to c
LOWfolly/IPAddressV6.cpp163 // Step 1: first 8 bytes are network prefix, and can be stripped
LOWfolly/IPAddressV6.cpp164 // Step 2: invert the universal/local (U/L) flag (bit 7)
LOWfolly/IPAddressV6.cpp166 // Step 3: copy these bytes as they are
LOWfolly/IPAddressV6.cpp169 // Step 4: strip bytes (0xfffe), which are bytes_[11] and bytes_[12]
LOWfolly/IPAddressV6.cpp170 // Step 5: copy the rest.
LOWfolly/test/ConcurrentBSkipListTest.cpp1737 // Step 1: skipTo(100) → should return 500 (first non-deleted key >= 100)
LOWfolly/test/ConcurrentBSkipListTest.cpp1745 // Step 2: skipTo(200) — target < lastResult. Folly returns 500 (stays put).
LOWfolly/test/ConcurrentBSkipListTest.cpp1754 // Step 3: skipTo(300) — still < 500. Same.
LOWfolly/test/ConcurrentBSkipListTest.cpp1762 // Step 4: skipTo(600) — past the jump, normal forward
LOWfolly/algorithm/simd/test/MovemaskTest.cpp119 // Step 1:
LOWfolly/algorithm/simd/test/MovemaskTest.cpp128 // Step 2:
LOWfolly/compression/Compression.cpp1872 // Step 1:
LOWfolly/compression/Compression.cpp1891 // Step 2:
LOWfolly/stats/BucketedTimeSeries-inl.h123 // An earlier time in the past. We need to check if this time still falls
Fake / Example Data17 hits · 23 pts
SeverityFileLineSnippet
LOWfolly/test/AsciiCaseInsensitiveBenchmark.cpp27 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam"
LOWfolly/test/AsciiCaseInsensitiveBenchmark.cpp27 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam"
LOWfolly/test/AsciiCaseInsensitiveBenchmark.cpp33 "tortor. Lorem ipsum dolor sit amet, consectetur adipiscing"
LOWfolly/test/AsciiCaseInsensitiveBenchmark.cpp33 "tortor. Lorem ipsum dolor sit amet, consectetur adipiscing"
LOWfolly/test/AsciiCaseInsensitiveBenchmark.cpp63 "tincidunt. Phasellus eget dolor sit amet ipsum dapibus condimentum"
LOWfolly/test/ConvTest.cpp474 toAppend("Lorem ipsum ", 1234, String(" dolor amet "), 567.89, '!', &s);
LOWfolly/test/ConvTest.cpp475 EXPECT_EQ(s, "Lorem ipsum 1234 dolor amet 567.89!");
LOWfolly/test/ConvTest.cpp480 s = to<String>("Lorem ipsum ", nullptr, 1234, " dolor amet ", 567.89, '.');
LOWfolly/test/ConvTest.cpp481 EXPECT_EQ(s, "Lorem ipsum 1234 dolor amet 567.89.");
LOWfolly/test/ConvTest.cpp500 ":", "Lorem ipsum ", 1234, String(" dolor amet "), 567.89, '!', &s);
LOWfolly/test/ConvTest.cpp501 EXPECT_EQ(s, "Lorem ipsum :1234: dolor amet :567.89:!");
LOWfolly/test/ConvTest.cpp507 ":", "Lorem ipsum ", nullptr, 1234, " dolor amet ", 567.89, '.');
LOWfolly/test/ConvTest.cpp508 EXPECT_EQ(s, "Lorem ipsum ::1234: dolor amet :567.89:.");
LOWfolly/test/FBStringTest.cpp1280Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras accumsan \n\
LOWfolly/test/FBStringTest.cpp1280Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras accumsan \n\
LOWfolly/io/test/IOBufTest.cpp1326 const char data[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit";
LOWfolly/io/test/IOBufTest.cpp1326 const char data[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit";
Slop Phrases8 hits · 15 pts
SeverityFileLineSnippet
LOWfolly/FBString.h666 // Medium strings are copied eagerly. Don't forget to allocate
LOWfolly/FBString.h719 // Medium strings are allocated normally. Don't forget to
LOWfolly/FBString.h800 // Keep the string at medium size. Don't forget to allocate
LOWfolly/FBString.h833 // Don't forget to allocate one extra Char for the terminating null
MEDIUMfolly/Format.h409 * so feel free to modify it in place if necessary. (For example, wrap an
LOWfolly/futures/test/FutureTest.cpp1155 // (Don't forget to enable ASAN)
MEDIUMfolly/lang/MustUseImmediately.h558// As discussed above, this helps types manage object slicing risk.
LOWfolly/container/HeterogeneousAccess.h50// the header that declares T. Don't forget to typedef is_transparent to
Excessive Try-Catch Wrapping10 hits · 12 pts
SeverityFileLineSnippet
LOWfolly/python/test/request_context.py173 except Exception as e:
LOWfolly/coro/scripts/co_bt.py241 except Exception:
LOWfolly/coro/scripts/co_bt.py503 except Exception:
MEDIUMfolly/coro/scripts/co_bt.py504 print("Error collecting async stack trace:")
LOWfolly/coro/scripts/co_bt.py574 except Exception:
LOWfolly/coro/scripts/co_bt.py644 except Exception:
LOWfolly/coro/scripts/co_bt.py705 except Exception:
LOWfolly/coro/scripts/co_bt.py826 except Exception:
MEDIUMfolly/coro/scripts/co_bt.py566def get_current_pthread_addr() -> DebuggerValue:
MEDIUMfolly/coro/scripts/co_bt.py691def get_current_pthread_addr() -> DebuggerValue:
Self-Referential Comments2 hits · 9 pts
SeverityFileLineSnippet
MEDIUMfolly/fibers/scripts/gdb.py611# This class is responsible for maintaining the name/address:fiberinfo mapping.
MEDIUMfolly/fibers/scripts/gdb.py612# Creating a FiberInfo object adds it to the cache, and trying to create one
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippet
LOWfolly/CancellationToken.h141// Example usage:
LOWfolly/container/vector_bool.h30/// Usage example:
LOWfolly/coro/Baton.h43/// Example usage:
LOWfolly/coro/SharedMutex.h83/// Example usage:
LOWfolly/coro/AutoCleanup.h45/// Example usage:
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHfolly/io/async/test/AsyncSocketTest2.cpp1885 // Make sure the write attempt timed out as requested
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippet
LOWfolly/support/gdb.py413 # Check if the segment has been initialized or setp over it
LOWfolly/support/gdb.py427 # Check if we're done with this segment
LOWfolly/coro/scripts/co_bt.py221 # Check if the tls key is initialized
LOWfolly/coro/scripts/co_bt.py352 # Check if there is an AsyncStackRoot and if so, whether there
LOWfolly/coro/scripts/co_bt.py370 # Check if there is a higher-level AsyncStackRoot that defines
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMCMakeLists.txt243# =============================================================================
MEDIUMCMakeLists.txt247# =============================================================================
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippet
LOWfolly/fibers/scripts/gdb.py711
LOWfolly/fibers/scripts/gdb.py759
LOWfolly/support/gdb.py25
LOWfolly/support/gdb.py120
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOWfolly/json/test/tests/test_float_format_python_json.py17