Repository Analysis

fmtlib/fmt

A modern formatting library

5.9 Low AI signal View on GitHub
5.9
Adjusted Score
5.9
Raw Score
100%
Time Factor
2026-05-25
Last Push
23,528
Stars
C++
Language
55,215
Lines of Code
65
Files
477
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 2MEDIUM 6LOW 469

Pattern Findings

477 matches across 8 categories. Click a row to expand file-level details.

Over-Commented Block450 hits · 280 pts
SeverityFileLineSnippet
LOWtest/c-test.c1// Formatting library for C++ - the C API tests
LOWtest/posix-mock.h1// Formatting library for C++ - mocks of POSIX functions
LOWtest/mock-allocator.h1// Formatting library for C++ - mock allocator
LOWtest/util.h1// Formatting library for C++ - test utilities
LOWtest/test-assert.h1// Formatting library for C++ - test version of FMT_ASSERT
LOWtest/scan.h1// Formatting library for C++ - scanning API proof of concept
LOWtest/gtest-extra.h1// Formatting library for C++ - custom Google Test assertions
LOWtest/fuzzing/fuzzer-common.h1// Copyright (c) 2019, Paul Dreik
LOWtest/fuzzing/build.sh1#!/bin/sh
LOWtest/cuda-test/CMakeLists.txt1# We can find some usecases which follow the guide of CMake which uses
LOWtest/cuda-test/CMakeLists.txt21# providing another (non-CUDA) C++ source code.
LOWtest/gtest/gtest/gtest-spi.h1// Copyright 2007, Google Inc.
LOWtest/gtest/gtest/gtest-spi.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
LOWtest/gtest/gtest/gtest-spi.h121// A set of macros for testing Google Test assertions or code that's expected
LOWtest/gtest/gtest/gtest-spi.h181// being part of the failure message.
LOWtest/gtest/gtest/gtest.h1// Copyright 2005, Google Inc.
LOWtest/gtest/gtest/gtest.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
LOWtest/gtest/gtest/gtest.h41//
LOWtest/gtest/gtest/gtest.h61
LOWtest/gtest/gtest/gtest.h81// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
LOWtest/gtest/gtest/gtest.h101// Copyright 2005, Google Inc.
LOWtest/gtest/gtest/gtest.h121// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
LOWtest/gtest/gtest/gtest.h141// GOOGLETEST_CM0001 DO NOT DELETE
LOWtest/gtest/gtest/gtest.h161// provide a default definition. After this header is #included, all
LOWtest/gtest/gtest/gtest.h181// GTEST_HAS_STD_WSTRING - Define it to 1/0 to indicate that
LOWtest/gtest/gtest/gtest.h201// source version since 2008. The recommended value
LOWtest/gtest/gtest/gtest.h221// GTEST_OS_HPUX - HP-UX
LOWtest/gtest/gtest/gtest.h241// most stable support. Since core members of the Google Test project
LOWtest/gtest/gtest/gtest.h261//
LOWtest/gtest/gtest/gtest.h281// the given Google Test flag.
LOWtest/gtest/gtest/gtest.h301// is suppressed.
LOWtest/gtest/gtest/gtest.h321// Extended Regular Expression syntax on UNIX-like platforms
LOWtest/gtest/gtest/gtest.h341// BiggestInt - the biggest signed integer type.
LOWtest/gtest/gtest/gtest.h361#include <stdio.h>
LOWtest/gtest/gtest/gtest.h381#include <locale>
LOWtest/gtest/gtest/gtest.h401// contributors may be used to endorse or promote products derived from
LOWtest/gtest/gtest/gtest.h421#define GOOGLETEST_INCLUDE_GTEST_INTERNAL_CUSTOM_GTEST_PORT_H_
LOWtest/gtest/gtest/gtest.h441// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
LOWtest/gtest/gtest/gtest.h461// Determines the platform on which Google Test is compiled.
LOWtest/gtest/gtest/gtest.h481# define GTEST_OS_WINDOWS_TV_TITLE 1
LOWtest/gtest/gtest/gtest.h501# define GTEST_OS_FREEBSD 1
LOWtest/gtest/gtest/gtest.h521#elif defined __NetBSD__
LOWtest/gtest/gtest/gtest.h541# define GTEST_FLAG_PREFIX_ "gtest_"
LOWtest/gtest/gtest/gtest.h561// GTEST_DISABLE_MSC_WARNINGS_PUSH_(4800 4385)
LOWtest/gtest/gtest/gtest.h581 _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") \
LOWtest/gtest/gtest/gtest.h601#if GTEST_OS_WINDOWS_MINGW && !defined(__MINGW64_VERSION_MAJOR)
LOWtest/gtest/gtest/gtest.h621#endif // GTEST_OS_WINDOWS
LOWtest/gtest/gtest/gtest.h641
LOWtest/gtest/gtest/gtest.h661// simple regex implementation instead.
LOWtest/gtest/gtest/gtest.h681// clang defines __EXCEPTIONS if and only if exceptions are enabled before clang
LOWtest/gtest/gtest/gtest.h701# elif defined(__HP_aCC)
LOWtest/gtest/gtest/gtest.h721
LOWtest/gtest/gtest/gtest.h741# ifdef __GXX_RTTI
LOWtest/gtest/gtest/gtest.h761# define GTEST_HAS_RTTI __has_feature(cxx_rtti)
LOWtest/gtest/gtest/gtest.h781
LOWtest/gtest/gtest/gtest.h801
LOWtest/gtest/gtest/gtest.h821// architecture.
LOWtest/gtest/gtest/gtest.h841#ifndef GTEST_HAS_STREAM_REDIRECTION
LOWtest/gtest/gtest/gtest.h861#endif
LOWtest/gtest/gtest/gtest.h881#endif
390 more matches not shown…
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippet
MEDIUMtest/gtest/gtest/gtest.h7407// This implementation is *not* meant to be as highly tuned or robust
MEDIUMtest/gtest/gtest/gtest.h7478// In practice, this can be used to test functions that utilize the
MEDIUMinclude/fmt/format.h3383 // Compilers are not aware of how to leverage the maximum value of
Unused Imports8 hits · 8 pts
SeverityFileLineSnippet
LOWsupport/release.py12
LOWsupport/release.py13
LOWsupport/release.py14
LOWsupport/python/mkdocstrings_handlers/cxx/__init__.py17
LOWsupport/python/mkdocstrings_handlers/cxx/__init__.py17
LOWsupport/python/mkdocstrings_handlers/cxx/__init__.py19
LOWsupport/python/mkdocstrings_handlers/cxx/__init__.py20
LOWsupport/python/mkdocstrings_handlers/cxx/__init__.py20
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippet
LOWsupport/docopt.py72
LOWsupport/docopt.py301
LOWsupport/docopt.py334
LOWsupport/docopt.py402
LOWsupport/docopt.py428
LOWsupport/docopt.py57
LOWsupport/printable.py133
LOWsupport/python/mkdocstrings_handlers/cxx/__init__.py358
Cross-Language Confusion2 hits · 8 pts
SeverityFileLineSnippet
HIGHsupport/release.py160 fmt_repo.push('origin', 'release')
HIGHsupport/printable.py194 print(" if (0x{:x} <= cp && cp < 0x{:x}) return false;".format(a, a + b))
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWinclude/fmt/format-inl.h1275 // Step 1: integer promotion & Schubfach multiplier calculation.
LOWinclude/fmt/format-inl.h1330 // Step 2: Try larger divisor; remove trailing zeros if necessary.
LOWinclude/fmt/format-inl.h1362 // Step 3: Find the significand with the smaller divisor.
Excessive Try-Catch Wrapping2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMdoc/ChangeLog-old.md2026 fmt::print("Error: ");
MEDIUMdoc/ChangeLog-old.md3171 fmt::print("Error: {}");
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMsupport/release.py159 # Create a release on GitHub.