Repository Analysis

gnachman/iTerm2

iTerm2 is a terminal emulator for Mac OS X that does amazing things.

4.6 Likely human-written View on GitHub
4.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
17,619
Stars
Objective-C
Language
1,010,283
Lines of Code
4058
Files
3563
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 6HIGH 66MEDIUM 508LOW 2983

Pattern Findings

3563 matches across 17 categories. Click a row to expand file-level details.

Over-Commented Block1991 hits · 1922 pts
SeverityFileLineSnippet
LOWClaudeCodeHookEvent.swift1// ClaudeCodeHookEvent.swift
LOWtools/eastasian.py1#!/usr/bin/env python3
LOWtools/run.sh1#!/usr/bin/env zsh
LOWtools/run_ai_live.sh1#!/bin/bash
LOWtools/run_ai_live.sh21#
LOWtools/run_ai_live.sh181# Tell run_tests.expect to leave the config file alone — it's the live
LOWtools/dropbox_uploader.sh1#!/usr/bin/env bash
LOWtools/ply/ply-3.4/ply/yacc.py1# -----------------------------------------------------------------------------
LOWtools/ply/ply-3.4/ply/yacc.py21# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
LOWtools/ply/ply-3.4/ply/yacc.py41# LR parser itself is defined in terms of an object (which allows multiple
LOWtools/ply/ply-3.4/ply/yacc.py161#-----------------------------------------------------------------------------
LOWtools/ply/ply-3.4/ply/yacc.py261 return self.parsedebug(input,lexer,debug,tracking,tokenfunc)
LOWtools/ply/ply-3.4/ply/yacc.py761 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
LOWtools/ply/ply-3.4/ply/yacc.py1121# -----------------------------------------------------------------------------
LOWtools/ply/ply-3.4/ply/yacc.py1241 if self.func:
LOWtools/ply/ply-3.4/ply/yacc.py1361 # 'left','right', or 'nonassoc'. level is a numeric level.
LOWtools/ply/ply-3.4/ply/yacc.py1661 if x_produces_empty:
LOWtools/ply/ply-3.4/ply/yacc.py1761
LOWtools/ply/ply-3.4/ply/yacc.py1881# -----------------------------------------------------------------------------
LOWtools/ply/ply-3.4/ply/yacc.py2061 C.append(g)
LOWtools/ply/ply-3.4/ply/yacc.py2181 #
LOWtools/ply/ply-3.4/ply/yacc.py2261 lookb.append((j,r))
LOWtools/ply/ply-3.4/ply/yacc.py2281 def compute_read_sets(self,C, ntrans, nullable):
LOWtools/ply/ply-3.4/ply/yacc.py2301 # -----------------------------------------------------------------------------
LOWtools/ply/ply-3.4/ply/yacc.py2681 outp.append((p.str,p.name, p.len, p.func,p.file,p.line))
LOWtools/ply/ply-3.4/ply/lex.py1# -----------------------------------------------------------------------------
LOWtools/ply/ply-3.4/ply/lex.py21# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
LOWtools/ply/ply-3.4/ply/lex.py101# === Lexing Engine ===
LOWtools/ply/ply-3.4/ply/lex.py281 # ------------------------------------------------------------
LOWtools/ply/ply-3.4/ply/cpp.py1# -----------------------------------------------------------------------------
LOWtools/ply/ply-3.4/ply/cpp.py101 '-':'~'
LOWtools/ply/ply-3.4/ply/cpp.py241 if not tok or tok.value != c:
LOWtools/ply/ply-3.4/ply/cpp.py301 while i >= 0 and tokens[i].type in self.t_WS:
LOWtools/ply/ply-3.4/test/lex_hedit.py1# -----------------------------------------------------------------------------
LOWtools/ply/ply-3.4/example/yply/yply.py1#!/usr/local/bin/python
LOWtools/ply/ply-3.4/example/GardenSnake/GardenSnake.py1# GardenSnake - a parser generator demonstration program
LOWtools/ply/ply-3.4/example/GardenSnake/GardenSnake.py21# This uses David Beazley's Ply from http://www.dabeaz.com/ply/
LOWtools/ply/ply-3.4/example/GardenSnake/GardenSnake.py221
LOWtools/ply/ply-3.4/example/newclasscalc/calc.py1#!/usr/bin/env python
LOWtools/ply/ply-3.4/example/hedit/hedit.py1# -----------------------------------------------------------------------------
LOWtools/ply/ply-3.4/doc/makedoc.py1#!/usr/local/bin/python
LOW…edArchive/SignedArchive/SIGSHA2VerificationAlgorithm.m1//
LOWSignedArchive/SignedArchive/SIGIdentity.m1//
LOWSignedArchive/SignedArchive/SIGArchiveReader.m1//
LOWSignedArchive/SignedArchive/SIGTrust.m1//
LOWSignedArchive/SignedArchive/SIGVerificationAlgorithm.m1//
LOWSignedArchive/SignedArchive/SIGSHA2SigningAlgorithm.m1//
LOWSignedArchive/SignedArchive/SIGArchiveVerifier.m1//
LOWSignedArchive/SignedArchive/SIGArchiveBuilder.m1//
LOWSignedArchive/verify/main.m1//
LOWSignedArchive/extract/main.m1//
LOWSignedArchive/sign/main.m1//
LOWSignedArchive/resign/main.c1//
LOWSignedArchive/resign/main.m1//
LOWpidinfo/PIDInfoGitState.m1//
LOWpidinfo/iTermGitClient.m341
LOWpidinfo/iTermGitClient.m401 break;
LOWpidinfo/pidinfo.m1//
LOWpidinfo/pidinfo.h1//
LOWpidinfo/iTermGitClient.h41// Single git_status_list_new walk feeding the on-state fields that
1931 more matches not shown…
Decorative Section Separators400 hits · 1152 pts
SeverityFileLineSnippet
MEDIUMtools/generate_nscharacterset.py122# ============================================================================
MEDIUMtools/generate_nscharacterset.py124# ============================================================================
MEDIUMtools/generate_nscharacterset.py150# ============================================================================
MEDIUMtools/generate_nscharacterset.py152# ============================================================================
MEDIUMtools/generate_nscharacterset.py293# ============================================================================
MEDIUMtools/generate_nscharacterset.py295# ============================================================================
MEDIUMtools/generate_nscharacterset.py342# ============================================================================
MEDIUMtools/generate_nscharacterset.py344# ============================================================================
MEDIUMtools/ply/ply-3.4/ply/yacc.py60# ----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py65#-----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py69#-----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py161#-----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py167#-----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1116# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1121# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1128# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1291# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1295# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1304# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1310# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1357 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1363 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1373 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1593 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1598 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1607 # ------------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1612 # ------------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1622 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1629 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1639 # -------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1646 # -------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1874# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1879# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1881# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1932# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1937# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2084 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2086 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2091 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2109 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2118 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2269 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2279 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2287 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2301 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2309 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2319 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2539 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py2543 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py32# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py233# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py237# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1150# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1245# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1267# -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1388 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1466 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1471 # -----------------------------------------------------------------------------
MEDIUMtools/ply/ply-3.4/ply/yacc.py1482 # -----------------------------------------------------------------------------
340 more matches not shown…
Hyper-Verbose Identifiers496 hits · 434 pts
SeverityFileLineSnippet
LOWtools/analyze_restorable_state.py52def decode_keyed_archive_objects(objects, top):
LOWtools/analyze_restorable_state.py272def extract_sessions_from_view(view_node, sessions, debug=False):
LOWtools/emoji.py81def output_default_emoji_presentation():
LOWtools/emoji.py137def output_default_text_presentation():
LOWtools/generate_nscharacterset.py106def format_ranges_with_comments(nums_with_names: dict, variable: str, indent: str = " ") -> list[str]:
LOWtools/generate_nscharacterset.py303def generate_emoji_default_text_presentation(emoji_data_content: str) -> list[str]:
LOWtools/generate_nscharacterset.py311def generate_emoji_default_emoji_presentation(emoji_data_content: str) -> tuple[list[str], int]:
LOWtools/generate_nscharacterset.py321def generate_strong_rtl_codes(unicode_data: dict) -> list[str]:
LOWtools/generate_nscharacterset.py332def generate_strong_ltr_codes(unicode_data: dict) -> list[str]:
LOWtools/ply/ply-3.4/ply/yacc.py2093 def compute_nullable_nonterminals(self):
LOWtools/ply/ply-3.4/ply/yacc.py2120 def find_nonterminal_transitions(self,C):
LOWtools/ply/ply-3.4/ply/yacc.py2207 def compute_lookback_includes(self,C,trans,nullable):
LOWtools/ply/ply-3.4/example/ansic/cparse.py98def p_storage_class_specifier(t):
LOWtools/ply/ply-3.4/example/ansic/cparse.py834def p_argument_expression_list(t):
LOWtools/ply/ply-3.4/example/BASIC/basparse.py168def p_command_for_bad_initial(p):
LOW…nsFramework/test-extensions/storage-ui-demo/content.js468function setupStorageChangeListener() {
LOW…/Sources/BrowserExtensionListenerResponseHandler.swift13class BrowserExtensionListenerResponseHandler: NSObject, WKScriptMessageHandler {
LOWOtherResources/framer.py947async def really_find_completions_with_prefix(prefix, directory, max_count, executable):
LOWOtherResources/framer.py1586def _silence_shutdown_unraisable(unraisable):
LOWtests/test_kitty_multipart.py46def test_multipart_stream_encoding():
LOWtests/test_kitty_multipart.py77def test_multipart_independent_encoding():
LOWtests/test_kitty_multipart.py112def test_multipart_many_chunks():
LOWtests/apply_layout_integration_test.py260async def test_swap_two_panes_in_tab(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py831async def test_new_tabs_field_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py841async def test_new_windows_field_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py850async def test_new_session_leaf_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py931async def test_unknown_tab_in_close_tabs_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py937async def test_unknown_window_in_close_windows_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py945async def test_orphan_failure_does_not_mutate(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py285async def test_swap_three_panes_in_tab(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py306async def test_change_orientation_v_to_h(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py326async def test_restructure_flat_to_nested(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py350async def test_no_op_reshape_preserves_shape(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py383async def test_cross_tab_move_single_session(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py420async def test_cross_tab_move_emptying_source_implicitly_closes_it(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py454async def test_cross_tab_move_emptying_single_session_tab_implicitly_closes(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py580async def test_active_session_survives_reshape(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py602async def test_active_session_promoted_when_terminated(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py624async def test_active_session_set_after_cross_tab_move(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py676async def test_active_session_preserved_when_other_session_moves_in(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py709async def test_combined_reshape_and_close(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py748async def test_unknown_tab_id_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py760async def test_unknown_session_id_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py771async def test_duplicate_session_id_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py782async def test_same_orientation_nesting_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py805async def test_splitter_with_one_child_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py815async def test_orphan_session_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py862async def test_validation_failure_does_not_mutate(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py907async def test_unknown_session_in_close_sessions_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py970async def test_unknown_session_in_layout_does_not_mutate(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py995async def test_deep_nesting_three_levels(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py1026async def test_wide_splitter_four_siblings(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py1053async def test_close_window_with_multiple_tabs_and_panes_terminates_all(
LOWtests/apply_layout_integration_test.py1088async def test_cross_window_move_emptying_source_window(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py1127async def test_session_scrollback_survives_in_tab_swap(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py1157async def test_session_scrollback_survives_cross_tab_move(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py1200async def test_maximized_tab_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py1234async def test_missing_field_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py1248async def test_unknown_leaf_kind_rejected(h: Harness) -> None:
LOWtests/apply_layout_integration_test.py1257async def test_tree_too_deep_rejected(h: Harness) -> None:
436 more matches not shown…
Cross-File Repetition65 hits · 325 pts
SeverityFileLineSnippet
HIGHtools/eastasian.py0download a file from a given url and save it locally.
HIGHtools/emoji.py0download a file from a given url and save it locally.
HIGHtools/bidi.py0download a file from a given url and save it locally.
HIGHtools/idn.py0download a file from a given url and save it locally.
HIGHtools/ply/ply-3.4/test/yacc_missing1.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_badargs.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_badtok.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_uprec2.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_term1.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_nop.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_badprec2.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_error4.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_notok.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_badid.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_nodoc.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_error1.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_badprec3.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_noerror.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_inf.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_badprec.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_sr.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_rr.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_error2.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_error3.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_uprec.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_simple.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_unused_rule.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_unused.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_dup.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_prec1.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/test/yacc_notfunc.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/example/optcalc/calc.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/example/unicalc/calc.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/doc/ply.html0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/doc/ply.html0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/doc/ply.html0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHtools/ply/ply-3.4/example/calc/calc.py0expression : expression '+' expression | expression '-' expression | expression '*' expression | expression '/' expressi
HIGHtools/ply/ply-3.4/example/calcdebug/calc.py0expression : expression '+' expression | expression '-' expression | expression '*' expression | expression '/' expressi
HIGHtools/ply/ply-3.4/example/closurecalc/calc.py0expression : expression '+' expression | expression '-' expression | expression '*' expression | expression '/' expressi
HIGH…WebExtensionsFrameworkTests/RedBoxExtensionTests.swift0{ "manifest_version": 3, "name": "red box", "version": "1.0", "description": "adds a red box to the top of every page",
HIGH…WebExtensionsFrameworkTests/RedBoxExtensionTests.swift0{ "manifest_version": 3, "name": "red box", "version": "1.0", "description": "adds a red box to the top of every page",
HIGH…ionsFrameworkTests/BrowserExtensionRegistryTests.swift0{ "manifest_version": 3, "name": "red box", "version": "1.0", "description": "adds a red box to the top of every page",
HIGH…ionsFrameworkTests/BrowserExtensionRegistryTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…ionsFrameworkTests/BrowserExtensionRegistryTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…ionsFrameworkTests/BrowserExtensionRegistryTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…bExtensionsFrameworkTests/ExtensionManifestTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…bExtensionsFrameworkTests/ExtensionManifestTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…bExtensionsFrameworkTests/ExtensionManifestTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…bExtensionsFrameworkTests/ExtensionManifestTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…bExtensionsFrameworkTests/ExtensionManifestTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…bExtensionsFrameworkTests/ExtensionManifestTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…bExtensionsFrameworkTests/ExtensionManifestTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…bExtensionsFrameworkTests/ExtensionManifestTests.swift0{ "manifest_version": 3, "name": "test extension", "version": "1.0" }
HIGH…eworkTests/ContentWorldIsolationIntegrationTests.swift0({ redbox: document.queryselector('div[style*="background: red"]') !== null, bluecircle: document.queryselector('#blue-c
HIGH…eworkTests/ContentWorldIsolationIntegrationTests.swift0({ redbox: document.queryselector('div[style*="background: red"]') !== null, bluecircle: document.queryselector('#blue-c
HIGH…eworkTests/ContentWorldIsolationIntegrationTests.swift0({ redbox: document.queryselector('div[style*="background: red"]') !== null, bluecircle: document.queryselector('#blue-c
HIGH…eworkTests/ContentWorldIsolationIntegrationTests.swift0({ redbox: document.queryselector('div[style*="background: red"]') !== null, bluecircle: document.queryselector('#blue-c
HIGH…/library/python/iterm2/write_only_profile_prologue.txt0sets which components are visible in the session's title, or selects a custom component. if it is set to `custom` then t
HIGHapi/library/python/iterm2/prologue.txt0sets which components are visible in the session's title, or selects a custom component. if it is set to `custom` then t
HIGHapi/library/python/iterm2/iterm2/profile.py0sets which components are visible in the session's title, or selects a custom component. if it is set to `custom` then t
5 more matches not shown…
Unused Imports219 hits · 146 pts
SeverityFileLineSnippet
LOWtools/basechars.py5
LOWtools/analyze_restorable_state.py19
LOWtools/updateVersion.py10
LOWtools/generate_nscharacterset.py24
LOWtools/generate_nscharacterset.py26
LOWtools/utf16_to_utf8_bin.py2
LOWtools/ply/ply-3.4/ply/cpp.py10
LOWtools/ply/ply-3.4/test/yacc_badrule.py11
LOWtools/ply/ply-3.4/test/yacc_missing1.py11
LOWtools/ply/ply-3.4/test/yacc_badargs.py11
LOWtools/ply/ply-3.4/test/yacc_uprec2.py11
LOWtools/ply/ply-3.4/test/yacc_literal.py11
LOWtools/ply/ply-3.4/test/yacc_term1.py11
LOWtools/ply/ply-3.4/test/yacc_nop.py11
LOWtools/ply/ply-3.4/test/yacc_badprec2.py11
LOWtools/ply/ply-3.4/test/yacc_error4.py11
LOWtools/ply/ply-3.4/test/yacc_badid.py11
LOWtools/ply/ply-3.4/test/yacc_nodoc.py11
LOWtools/ply/ply-3.4/test/yacc_misplaced.py11
LOWtools/ply/ply-3.4/test/yacc_error1.py11
LOWtools/ply/ply-3.4/test/yacc_badprec3.py11
LOWtools/ply/ply-3.4/test/yacc_noerror.py11
LOWtools/ply/ply-3.4/test/yacc_inf.py11
LOWtools/ply/ply-3.4/test/yacc_badprec.py11
LOWtools/ply/ply-3.4/test/yacc_sr.py11
LOWtools/ply/ply-3.4/test/yacc_rr.py11
LOWtools/ply/ply-3.4/test/yacc_error2.py11
LOWtools/ply/ply-3.4/test/yacc_error3.py11
LOWtools/ply/ply-3.4/test/yacc_uprec.py11
LOWtools/ply/ply-3.4/test/yacc_simple.py11
LOWtools/ply/ply-3.4/test/yacc_unused_rule.py11
LOWtools/ply/ply-3.4/test/yacc_unused.py11
LOWtools/ply/ply-3.4/test/yacc_dup.py11
LOWtools/ply/ply-3.4/test/yacc_prec1.py11
LOWtools/ply/ply-3.4/test/yacc_notfunc.py11
LOWtools/ply/ply-3.4/example/ansic/cparse.py7
LOWtools/ply/ply-3.4/example/ansic/cparse.py854
LOWtools/ply/ply-3.4/example/BASIC/basparse.py4
LOWtools/ply/ply-3.4/example/BASIC/basic.py10
LOWtools/ply/ply-3.4/example/BASIC/basiclex.py3
LOWtools/ply/ply-3.4/example/BASIC/basiclog.py18
LOWtools/perf/stress_load.py40
LOWtools/perf/profile_stress_test.py21
LOWOtherResources/framer.py4
LOWtests/modern-key-reporting-test.py11
LOWtests/move_session_test.py4
LOWtests/colors.py2
LOWsources/template_basic_daemon.py3
LOWapi/library/python/iterm2/test.py1
LOWapi/library/python/iterm2/gen_binding.py3
LOWapi/library/python/iterm2/tests/test_triggers.py2
LOWapi/library/python/iterm2/tests/test_util.py3
LOWapi/library/python/iterm2/tests/test_binding.py3
LOWapi/library/python/iterm2/docs/generate_menu_ids.py2
LOWapi/library/python/iterm2/iterm2/auth.py8
LOWapi/library/python/iterm2/iterm2/__init__.py4
LOWapi/library/python/iterm2/iterm2/__init__.py4
LOWapi/library/python/iterm2/iterm2/__init__.py4
LOWapi/library/python/iterm2/iterm2/__init__.py6
LOWapi/library/python/iterm2/iterm2/__init__.py6
159 more matches not shown…
Self-Referential Comments55 hits · 145 pts
SeverityFileLineSnippet
MEDIUMtools/release_stable.sh64 # Create the zip file
MEDIUMtools/release_beta.sh64 # Create the zip file
MEDIUMtools/dropbox_uploader.sh630 #Create the chunk
MEDIUMtools/dropbox_uploader.sh847 #Creating the empty file, that for two reasons:
MEDIUMtools/dropbox_uploader.sh1072#Create a new directory
MEDIUMtools/ply/ply-3.4/ply/yacc.py164# The following classes are used for the LR parser itself. These are not
MEDIUMtools/ply/ply-3.4/ply/yacc.py169# This class is used to hold non-terminal grammar symbols during parsing.
MEDIUMtools/ply/ply-3.4/ply/yacc.py1119# The following functions, classes, and variables are used to represent and
MEDIUMtools/ply/ply-3.4/ply/yacc.py1307# The following class represents the contents of the specified grammar along
MEDIUMtools/ply/ply-3.4/ply/yacc.py1877# The following classes and functions are used to generate LR parsing tables on
MEDIUMtools/ply/ply-3.4/ply/yacc.py1935# This class implements the LR table generation algorithm. There are no
MEDIUMtools/ply/ply-3.4/ply/yacc.py2553# This file is automatically generated. Do not edit.
MEDIUMtools/ply/ply-3.4/ply/yacc.py182# This class is a wrapper around the objects actually passed to each
MEDIUMtools/ply/ply-3.4/ply/yacc.py1168 # Create a list of unique production symbols used in the production
MEDIUMtools/ply/ply-3.4/ply/yacc.py1178 # Create a string representation
MEDIUMtools/ply/ply-3.4/ply/yacc.py1248# This class represents a specific stage of parsing a production rule. For
MEDIUMtools/ply/ply-3.4/ply/yacc.py1454 # Create a production and add it to the list of productions
MEDIUMtools/ply/ply-3.4/ply/yacc.py2690# The following functions and classes are used to implement the PLY
MEDIUMtools/ply/ply-3.4/ply/yacc.py2758# This class represents information extracted for building a parser including
MEDIUMtools/ply/ply-3.4/ply/yacc.py3107 # Create a grammar object
MEDIUMtools/ply/ply-3.4/ply/lex.py541# This class represents information needed to build a lexer as extracted from a
MEDIUMtools/ply/ply-3.4/ply/lex.py322 # Create a token for return
MEDIUMtools/ply/ply-3.4/ply/cpp.py8# This module implements an ANSI-C style lexical preprocessor for PLY.
MEDIUMtools/ply/ply-3.4/ply/cpp.py770 # Define a new macro
MEDIUMtools/ply/ply-3.4/example/BASIC/basinterp.py1# This file provides the runtime support for running a basic program
MEDIUMtools/ply/ply-3.4/example/BASIC/basinterp.py360 # Create a program listing
MEDIUMtools/ply/ply-3.4/doc/ply.html275# Define a rule so we can track line numbers
MEDIUMtools/ply/ply-3.4/doc/ply.html541# Define a rule so we can track line numbers
MEDIUMtools/ply/ply-3.4/doc/ply.html823# Define a rule so we can track line numbers
MEDIUMtools/ply/ply-3.4/doc/ply.html890 # Define a rule so we can track line numbers
MEDIUMtools/ply/ply-3.4/doc/ply.html967 # Define a rule so we can track line numbers
MEDIUMtools/ply/ply-3.4/doc/ply.html1120a = lex.lex(object=m) # Create a lexer
MEDIUMtools/ply/ply-3.4/doc/ply.html2942 # Create a new scope for local variables
MEDIUMimages/icons/copy_1x_to_2x.sh1# Create the following icons:
MEDIUMOtherResources/framer.py1003 # Create a temporary file in the user's home directory
MEDIUM…ources/shell_integration/iterm2_shell_integration.bash210# This function is installed as part of the PROMPT_COMMAND;
MEDIUM…ources/shell_integration/iterm2_shell_integration.bash218# This function is installed as part of the PROMPT_COMMAND.
MEDIUM…ources/shell_integration/iterm2_shell_integration.bash275# This function is installed as the DEBUG trap. It is invoked before each
MEDIUMtests/modern-key-reporting-test.py14# Create a pipe for signal handling
MEDIUMtests/load_url_test.py35 # Create a browser tab using profile customizations
MEDIUMpwmplugin/Tests/test_get_password.sh7# Create a test database
MEDIUMpwmplugin/Tests/test_get_password.sh15# Create a new database
MEDIUMpwmplugin/Tests/bitwarden_test_integration.sh179# Create a test account with TOTP using bw directly
MEDIUMpwmplugin/Tests/test_integration.sh7# Create a test database
MEDIUMpwmplugin/Tests/test_integration.sh14# Create a new database
MEDIUMpwmplugin/Tests/test_delete_account.sh7# Create a test database
MEDIUMpwmplugin/Tests/test_delete_account.sh14# Create a new database
MEDIUMpwmplugin/Tests/test_login.sh7# Create a test database
MEDIUMpwmplugin/Tests/test_login.sh14# Create a new database
MEDIUMpwmplugin/Tests/test_list_accounts.sh7# Create a test database
MEDIUMpwmplugin/Tests/test_list_accounts.sh14# Create a new database (password needs to be entered twice)
MEDIUMpwmplugin/Tests/test_add_account.sh7# Create a test database
MEDIUMpwmplugin/Tests/test_add_account.sh15# Create a new database
MEDIUMpwmplugin/Tests/test_set_password.sh7# Create a test database
MEDIUMpwmplugin/Tests/test_set_password.sh16# Create a new database
Deep Nesting119 hits · 98 pts
SeverityFileLineSnippet
LOWtools/eastasian.py117
LOWtools/eastasian.py149
LOWtools/analyze_restorable_state.py52
LOWtools/analyze_restorable_state.py109
LOWtools/analyze_restorable_state.py272
LOWtools/analyze_restorable_state.py383
LOWtools/analyze_restorable_state.py471
LOWtools/analyze_restorable_state.py57
LOWtools/emoji.py200
LOWtools/generate_nscharacterset.py246
LOWtools/ply/ply-3.4/ply/yacc.py2722
LOWtools/ply/ply-3.4/ply/yacc.py282
LOWtools/ply/ply-3.4/ply/yacc.py597
LOWtools/ply/ply-3.4/ply/yacc.py869
LOWtools/ply/ply-3.4/ply/yacc.py1390
LOWtools/ply/ply-3.4/ply/yacc.py1518
LOWtools/ply/ply-3.4/ply/yacc.py1647
LOWtools/ply/ply-3.4/ply/yacc.py1681
LOWtools/ply/ply-3.4/ply/yacc.py1718
LOWtools/ply/ply-3.4/ply/yacc.py1777
LOWtools/ply/ply-3.4/ply/yacc.py1977
LOWtools/ply/ply-3.4/ply/yacc.py2093
LOWtools/ply/ply-3.4/ply/yacc.py2120
LOWtools/ply/ply-3.4/ply/yacc.py2140
LOWtools/ply/ply-3.4/ply/yacc.py2207
LOWtools/ply/ply-3.4/ply/yacc.py2321
LOWtools/ply/ply-3.4/ply/yacc.py2362
LOWtools/ply/ply-3.4/ply/yacc.py2545
LOWtools/ply/ply-3.4/ply/yacc.py2827
LOWtools/ply/ply-3.4/ply/yacc.py2927
LOWtools/ply/ply-3.4/ply/yacc.py2974
LOWtools/ply/ply-3.4/ply/lex.py482
LOWtools/ply/ply-3.4/ply/lex.py865
LOWtools/ply/ply-3.4/ply/lex.py141
LOWtools/ply/ply-3.4/ply/lex.py304
LOWtools/ply/ply-3.4/ply/lex.py621
LOWtools/ply/ply-3.4/ply/lex.py652
LOWtools/ply/ply-3.4/ply/lex.py723
LOWtools/ply/ply-3.4/ply/cpp.py323
LOWtools/ply/ply-3.4/ply/cpp.py376
LOWtools/ply/ply-3.4/ply/cpp.py419
LOWtools/ply/ply-3.4/ply/cpp.py469
LOWtools/ply/ply-3.4/ply/cpp.py535
LOWtools/ply/ply-3.4/ply/cpp.py594
LOWtools/ply/ply-3.4/ply/cpp.py724
LOWtools/ply/ply-3.4/ply/cpp.py773
LOWtools/ply/ply-3.4/test/yacc_badrule.py31
LOWtools/ply/ply-3.4/test/yacc_missing1.py31
LOWtools/ply/ply-3.4/test/yacc_badargs.py31
LOWtools/ply/ply-3.4/test/yacc_badtok.py31
LOWtools/ply/ply-3.4/test/yacc_uprec2.py26
LOWtools/ply/ply-3.4/test/yacc_literal.py31
LOWtools/ply/ply-3.4/test/yacc_term1.py31
LOWtools/ply/ply-3.4/test/yacc_nop.py31
LOWtools/ply/ply-3.4/test/yacc_badprec2.py31
LOWtools/ply/ply-3.4/test/yacc_error4.py31
LOWtools/ply/ply-3.4/test/yacc_notok.py30
LOWtools/ply/ply-3.4/test/yacc_badid.py40
LOWtools/ply/ply-3.4/test/yacc_nodoc.py30
LOWtools/ply/ply-3.4/test/yacc_misplaced.py31
59 more matches not shown…
Excessive Try-Catch Wrapping79 hits · 97 pts
SeverityFileLineSnippet
MEDIUMtools/sfsymbol2png.swift6 print("Error: Symbol '\(symbolName)' not found.")
MEDIUMtools/sfsymbol2png.swift21 print("Error: Failed to create bitmap representation.")
MEDIUMtools/sfsymbol2png.swift26 print("Error: Failed to generate PNG data.")
MEDIUMtools/sfsymbol2png.swift34 print("Error: Failed to write PNG file: \(error.localizedDescription)")
MEDIUMtools/build_mimetypes.swift12 print("Error fetching data: \(error)")
LOWtools/basechars.py39 except Exception:
LOWtools/basechars.py52 except Exception as e:
LOWtools/analyze_restorable_state.py47 except Exception as e:
MEDIUMtools/analyze_restorable_state.py138 print(f"Error: No 'Node' table found in {db_path}")
LOWtools/analyze_restorable_state.py147 except Exception as e2:
MEDIUMtools/analyze_restorable_state.py160 print(f"Error: No 'Node' table found in {db_path}")
MEDIUMtools/analyze_restorable_state.py605 print(f"Error: Database not found at {db_path}")
MEDIUMtools/ply/ply-3.4/ply/yacc.py1845def read_pickle(self,filename):
LOWtools/ply/ply-3.4/ply/yacc.py2750 except Exception:
LOWtools/ply/ply-3.4/ply/yacc.py3025 except Exception:
LOWtools/ply/ply-3.4/ply/yacc.py3080 except Exception:
LOWtools/ply/ply-3.4/ply/yacc.py3086 except Exception:
MEDIUMtools/ply/ply-3.4/ply/lex.py427def get_caller_module_dict(levels):
LOWtools/ply/ply-3.4/ply/lex.py505 except Exception:
MEDIUMtools/perf/profile_stress_test.py34 print("Error: No iTerm2 process found")
MEDIUMtools/perf/profile_stress_test.py118 print("Error: Profile output file not found")
MEDIUMtools/perf/analyze_profile.py22 print("Error: Profile output file not found")
MEDIUMWebExtensionsFramework/APIGenerator/main.swift22 print("Error writing to file: \(error)")
MEDIUMWebExtensionsFramework/APIGenerator/main.swift33 print("Error writing to file: \(error)")
MEDIUMOtherResources/framer.py245def read_forever(self, reader, channel, callback):
MEDIUMOtherResources/framer.py286def autopoll(delay):
MEDIUMOtherResources/framer.py322def get_echo_icanon(tty):
MEDIUMOtherResources/framer.py330def watch_tty(proc, delay):
MEDIUMOtherResources/framer.py1487def read_line():
LOWOtherResources/framer.py1172 except Exception as e:
LOWOtherResources/framer.py1181 except Exception as e:
LOWOtherResources/framer.py1190 except Exception as e:
LOWOtherResources/framer.py1198 except Exception as e:
LOWOtherResources/framer.py1208 except Exception as e:
LOWOtherResources/framer.py1218 except Exception as e:
LOWOtherResources/framer.py1227 except Exception as e:
LOWOtherResources/framer.py205 except Exception as e:
LOWOtherResources/framer.py262 except Exception as e:
LOWOtherResources/framer.py312 except Exception as e:
LOWOtherResources/framer.py326 except Exception as e:
LOWOtherResources/framer.py339 except Exception as e:
LOWOtherResources/framer.py574 except Exception as e:
LOWOtherResources/framer.py592 except Exception as e:
LOWOtherResources/framer.py632 except Exception as e:
LOWOtherResources/framer.py651 except Exception as e:
LOWOtherResources/framer.py685 except Exception as e:
LOWOtherResources/framer.py861 except Exception as e:
LOWOtherResources/framer.py894 except Exception as e:
LOWOtherResources/framer.py911 except Exception as e:
LOWOtherResources/framer.py991 except Exception as e:
LOWOtherResources/framer.py1008 except Exception as e:
LOWOtherResources/framer.py1021 except Exception as e:
LOWOtherResources/framer.py1026 except Exception as e:
LOWOtherResources/framer.py1078 except Exception as e:
LOWOtherResources/framer.py1157 except Exception as e:
LOWOtherResources/framer.py1244 except Exception as e:
LOWOtherResources/framer.py1270 except Exception as e:
LOWOtherResources/framer.py1284 except Exception as e:
LOWOtherResources/framer.py1324 except Exception as e:
LOWOtherResources/framer.py1393 except Exception as e:
19 more matches not shown…
Redundant / Tautological Comments48 hits · 75 pts
SeverityFileLineSnippet
LOWtools/analyze_restorable_state.py65 # Check if this is an NS.keys/NS.objects dictionary
LOWtools/analyze_restorable_state.py75 # Check if this is an NS.objects array
LOWtools/analyze_restorable_state.py251 # Check if contents exist
LOWtools/analyze_restorable_state.py424 # Check if this looks like a tab
LOWtools/analyze_restorable_state.py496 # Check if array contains window-like nodes
LOWtools/build_terminfo.sh18# Iterate over the list
LOWtools/add_file_to_xcodeproj.rb36 # Check if file exists
LOWtools/add_file_to_xcodeproj.rb42 # Check if the file's directory is managed by a PBXFileSystemSynchronizedRootGroup.
LOWtools/add_file_to_xcodeproj.rb54 # Check if file is already in the project
LOWtools/add_file_to_xcodeproj.rb64 # Check if already in target
LOWtools/analyze-crashes.sh91 # Check if this crash has a valid UUID
LOWtools/applyLocalization.sh25 # Check if the target nib file already exists
LOWtools/dropbox_uploader.sh162#Check if readlink is installed and supports the -m option
LOWtools/dropbox_uploader.sh186#Print the message based on $QUIET variable
LOWtools/dropbox_uploader.sh396#Check if it's a file or directory
LOWtools/ply/ply-3.4/ply/yacc.py2044 # Loop over the items in C and each grammar symbols
LOWtools/ply/ply-3.4/doc/makedoc.py191# Write the file back out
LOWtools/ply/ply-3.4/doc/ply.html2870 p[0] = some_value # Assign value to seen_A
LOWtools/perf/run_stress_test.sh1517# Check if using isolated suite (not user's normal prefs)
LOWOtherResources/framer.py572 # Print the value of the environment variable
LOW…ources/shell_integration/iterm2_shell_integration.bash637 # Set PS1 to various escape sequences, the user's preferred prompt, and more escape sequences.
LOWtests/kitty-image-protocol/unittests.sh1108# Check if an argument is provided
LOWtests/kitty-image-protocol/unittests.sh1115# Iterate over the list and call each function
LOW.github/workflows/test.yml82 # Check if this is a flaky ibtoold/asset catalog crash
LOWsources/iterm2_git_poll.sh8 # Check if git is broken because it can't find Xcode. A special charm of macOS for you.
LOWapi/library/python/iterm2/iterm2/triggers.py110 # Check if this is an event-based trigger (matchType >= 100)
LOWpwmplugin/Tests/test_get_password.sh71# Check if output is valid JSON
LOWpwmplugin/Tests/test_get_password.sh79# Check if output contains password field
LOWpwmplugin/Tests/test_get_password.sh86# Check if the password is correct
LOWpwmplugin/Tests/bitwarden_run_all_tests.sh8# Check if BW_TEST_PASSWORD is set
LOWpwmplugin/Tests/bitwarden_run_all_tests.sh16# Check if user is logged in to Bitwarden
LOWpwmplugin/Tests/test_handshake.sh13# Check if output is valid JSON
LOWpwmplugin/Tests/test_handshake.sh20# Check if output contains expected fields
LOWpwmplugin/Tests/bitwarden_test_integration.sh172# Check if we got a valid session (should be a long alphanumeric string)
LOWpwmplugin/Tests/test_integration.sh185 # Check if it's in the recycle bin path
LOWpwmplugin/Tests/bitwarden_test_handshake.sh13# Check if output is valid JSON
LOWpwmplugin/Tests/bitwarden_test_handshake.sh20# Check if output contains expected fields
LOWpwmplugin/Tests/bitwarden_test_login.sh29# Check if output is valid JSON
LOWpwmplugin/Tests/bitwarden_test_login.sh37# Check if output contains token field
LOWpwmplugin/Tests/test_delete_account.sh84# Check if output is valid JSON
LOWpwmplugin/Tests/test_login.sh37# Check if output is valid JSON
LOWpwmplugin/Tests/test_login.sh45# Check if output contains token field
LOWpwmplugin/Tests/test_list_accounts.sh74# Check if output is valid JSON
LOWpwmplugin/Tests/test_list_accounts.sh82# Check if output contains accounts array
LOWpwmplugin/Tests/test_list_accounts.sh89# Check if we have at least one account
LOWpwmplugin/Tests/test_add_account.sh56# Check if output is valid JSON
LOWpwmplugin/Tests/test_add_account.sh64# Check if output contains accountIdentifier
LOWpwmplugin/Tests/test_set_password.sh70# Check if output is valid JSON
AI Slop Vocabulary26 hits · 66 pts
SeverityFileLineSnippet
MEDIUMtools/generate_nscharacterset.py43 """Fetch URL content with robust TLS handling."""
MEDIUMtools/run_ai_live.sh2# Live AI test harness runner. Drives AILiveHarness in the ModernTests
MEDIUMtools/run_ai_live.sh6# tools/run_ai_live.sh # every harness method
MEDIUMtools/run_ai_live.sh14# Vendors with no key set are skipped automatically by the harness.
MEDIUMtools/run_ai_live.sh16# By default the harness exercises every model in AIMetadata.swift for
MEDIUMtools/run_ai_live.sh30# harness reads from there. The file is mode 0600, lives under
LOWtools/ply/ply-3.4/ply/yacc.py333 # is already set, we just use that. Otherwise, we'll pull
LOWtools/ply/ply-3.4/ply/yacc.py644 # is already set, we just use that. Otherwise, we'll pull
LOWtools/ply/ply-3.4/ply/yacc.py916 # is already set, we just use that. Otherwise, we'll pull
LOWtools/ply/ply-3.4/example/BASIC/basparse.py35#### we simply return nothing
MEDIUMtools/perf/run_stress_test.sh242# not the test harness itself.
LOW…ources/shell_integration/iterm2_shell_integration.bash640 # Save the value we just set PS1 to so if the user changes PS1 we'll know and we can update ITERM_ORIG_PS1.
MEDIUMtests/modern-key-reporting-test.py187 # Run the test harness
MEDIUMtests/apply_layout_integration_test.py1429 # Refresh before each test so the harness sees the current set of
MEDIUM…xtures/gemini_gemini-3-pro-preview_refusal_stream.json23 "body" : "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"I cannot generate phishing emails or conte
MEDIUMAILiveHarness/AILiveDriver.swift169 // few seconds; absorbing those here lets the harness be robust to vendor
MEDIUMAILiveHarness/AILiveHarness.swift558 // produces this 400. Make the conversation layer robust.
MEDIUMsources/Drawing/iTermTextDrawingHelper.m1614 // Absolutely positioned button
MEDIUMsources/LineBuffer/iTermLineBlockArray.m620 // Definitely not in this block; advance.
MEDIUMsources/Workgroups/iTermWorkgroupInstance.swift58 // (rotates) makes toolbar/lookup robust to those rotations.
MEDIUMsources/PTYSession/PTYSession.m23487 // Definitely ssh'ed, but no way to get this info.
MEDIUMsources/TerminalView/iTermRightGutterController.swift426 // during this drag) and the timestamp slot is stable, so this is robust to
MEDIUMsources/ScreenChar/ScreenChar.m274 // Definitely no combining mark here.
MEDIUMsources/AITerm/ChatWindowController.swift264 // Remove the separator line for seamless blending
MEDIUMapi/library/python/iterm2/iterm2/transaction.py1"""Provides a class to facilitate atomic transactions."""
MEDIUM…lightr.framework/Versions/A/Resources/highlight.min.js15literal:"blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak locationNull n
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippet
CRITICALapi/library/python/iterm2/gen_binding.py1112 if status == iterm2.api_pb2.PreferencesResponse.Result.SetPreferenceResult.Status.Value("OK"):
CRITICALapi/library/python/iterm2/gen_binding.py1115 iterm2.api_pb2.PreferencesResponse.Result.SetPreferenceResult.Status.Name(status))
CRITICALapi/library/python/iterm2/iterm2/preferences.py139 if status == iterm2.api_pb2.PreferencesResponse.Result.SetPreferenceResult.Status.Value("OK"):
CRITICALapi/library/python/iterm2/iterm2/preferences.py142 iterm2.api_pb2.PreferencesResponse.Result.SetPreferenceResult.Status.Name(status))
CRITICALapi/library/python/iterm2/iterm2/binding.py739 if status == iterm2.api_pb2.PreferencesResponse.Result.SetPreferenceResult.Status.Value("OK"):
CRITICALapi/library/python/iterm2/iterm2/binding.py742 iterm2.api_pb2.PreferencesResponse.Result.SetPreferenceResult.Status.Name(status))
Verbosity Indicators27 hits · 51 pts
SeverityFileLineSnippet
LOWtools/analyze-crashes.sh30# Step 1: Process crashes
LOWtools/analyze-crashes.sh46# Step 2: Copy processed crashes
LOWtools/analyze-crashes.sh62# Step 3: Get correct UUIDs from app bundle
LOWtools/analyze-crashes.sh82# Step 4: Remove crashes with incorrect UUIDs
LOWtools/analyze-crashes.sh117# Step 5: Cluster crashes using Claude Code
LOWtools/analyze-crashes.sh127# Step 6: Analyze each cluster
LOWtools/ply/ply-3.4/ply/yacc.py2373 # Step 1: Construct C = { I0, I1, ... IN}, collection of LR(0) items
LOWModernTests/iTermLineAttributeTests.swift1366 // Step 1: write 25 chars to force a soft wrap at column 20.
LOWModernTests/iTermLineAttributeTests.swift1372 // Step 2: cursor is on line 1. Set it to doubleHeightTop.
LOWModernTests/iTermLineAttributeTests.swift1378 // Step 3: widen by 1 column — line still wraps but at different position.
LOWModernTests/iTermLineAttributeTests.swift1384 // Step 4: narrow back to original width.
LOWModernTests/iTermFunctionCallSuggesterTests.swift803 // Step 1: Start typing function
LOWModernTests/iTermFunctionCallSuggesterTests.swift807 // Step 2: Open paren
LOWModernTests/iTermFunctionCallSuggesterTests.swift811 // Step 3: First arg complete, suggest second
LOWModernTests/iTermFunctionCallSuggesterTests.swift815 // Step 4: Complete function - verification that it doesn't crash
LOWModernTests/iTermFunctionCallSuggesterTests.swift823 // Step 1: Start interpolation
LOWModernTests/iTermFunctionCallSuggesterTests.swift827 // Step 2: Partial path - suggestions are full swifty strings containing the path
LOWModernTests/iTermFunctionCallSuggesterTests.swift831 // Step 3: Complete interpolation and continue literal
LOWModernTests/iTermFunctionCallSuggesterTests.swift835 // Step 4: Start another interpolation - suggestions are full strings containing the path
LOWsources/LineBuffer/iTermLineBlockArray.m657 // Step 1: Find which blocks contain your wrapped lines
LOWsources/LineBuffer/iTermLineBlockArray.m672 // Step 2: Convert wrapped line offsets to raw line numbers within their blocks
LOWsources/LineBuffer/iTermLineBlockArray.m681 // Step 3: Count raw lines
LOWsources/Browser/CopyMode/copy-mode-cursor-movement.js417 // Step 1: Skip the current "word" (same character class)
LOWsources/Browser/CopyMode/copy-mode-cursor-movement.js421 // Step 2: Skip any whitespace
LOWsources/MetalRenderer/Glue/iTermCharacterSource.m505 // Step 1: Create a CGImage from the CGBitmapContext
LOWsources/MetalRenderer/Glue/iTermCharacterSource.m508 // Step 2: Create a URL for the output file
LOWsources/MetalRenderer/Glue/iTermCharacterSource.m511 // Step 3: Write the CGImage to disk as PNG
Fake / Example Data16 hits · 17 pts
SeverityFileLineSnippet
LOWiTerm2XCTests/PTYTextViewTest.m2387// Double width lorem ipsum. e and m have yellow bg. i has green bg. m and i are red. Acute accent on p.
LOWiTerm2XCTests/iTermPreferencesSearchTests.m27 keywordPhrases:@[ @"lorem ipsum dolo
LOWiTerm2XCTests/iTermAutomaticProfileSwitcherTest.m362 [_aps setHostname:@"hostname.com" username:@"user@example.com" path:@"/" job:@"whatever"];
LOWtests/triggers.py10 iterm2.AlertTrigger("^AlertTrigger", "Lorem ipsum", instant, enabled),
LOWtests/triggers.py11 iterm2.AnnotateTrigger("^AnnotateTrigger", "Lorem ipsum", instant, enabled),
LOWtests/triggers.py25 iterm2.SendTextTrigger("^SendTextTrigger", "lorem ipsum", instant, enabled),
LOWtests/triggers.py28 iterm2.SetTitleTrigger("^SetTitleTrigger", "lorem ipsum", instant, enabled),
LOWtests/triggers.py32 iterm2.UserNotificationTrigger("^UserNotificationTrigger", "lorem ipsum", instant, enabled),
LOWtests/osc8.txt91║]8;id=imaginary-text-editor-file1;http://example.com\http://exa]8;;\║Lorem ipsum║
LOW…ces/Settings/iTermBadgeConfigurationWindowController.m67 _badge.stringValue = @"Lorem ipsum dolor sit amet";
LOW…ces/Settings/iTermBadgeConfigurationWindowController.m67 _badge.stringValue = @"Lorem ipsum dolor sit amet";
LOWsources/Browser/Demos/selection-test.html147 <p>Here is a second paragraph with different content. Lorem ipsum dolor sit amet, consectetur adipiscing
LOWsources/Browser/Demos/selection-test.html147 <p>Here is a second paragraph with different content. Lorem ipsum dolor sit amet, consectetur adipiscing
LOW…ests/iterm2-keeper-adapterTests/IntegrationTests.swift63 _send(self, 200, {"record": {"password": "pw-123", "login": "user@example.com"}})
LOW…ests/iterm2-keeper-adapterTests/IntegrationTests.swift194 XCTAssertEqual(accounts[0]["userName"] as? String, "user@example.com")
LOW…ests/iterm2-keeper-adapterTests/IntegrationTests.swift216 let input = #"{"header":\#(header(server.baseURL)),"userAccountID":null,"token":"\#(token())","userName":"user@e
Example Usage Blocks8 hits · 13 pts
SeverityFileLineSnippet
LOWtools/run_ai_live.sh5# Usage:
LOWiTerm2XCTests/iTermSelectorSwizzler.h45// Example usage:
LOWtests/test_iterm2_python_auth.sh8# Usage:
LOWtests/test_iterm2_python_suite_auth.sh11# Usage:
LOWtests/run_apply_layout_integration_test.sh11# Usage:
LOWtests/redraw-edge-cases.sh21# Usage:
LOWsources/RegexVisualization/SVGSizeEstimator.swift62 // Example usage:
LOWThirdParty/ProtobufRuntime/GPBDictionary.m59// Example usage:
Slop Phrases6 hits · 12 pts
SeverityFileLineSnippet
MEDIUMsources/Settings/iTermAdvancedSettingsModel.m315DEFINE_STRING(tabColorMenuOptions, @"#fb6b62 #f6ac47 #f0dc4f #b5d749 #5fa3f8 #c18ed9 #787878", SECTION_TABS @"Colors for
MEDIUMsources/Settings/iTermProfilePreferences.m432 typeHelp[key] = @"Colors can be specified as 3- or 6-digit hex strings such as \"#f8a\" like in HTML. By def
MEDIUMThirdParty/RegexKitLite/RegexKitLite.html2048<p>Strings can be split with a regular expression using the <a href="#NSString_RegexKitLiteAdditions__-componentsSeparat
MEDIUMThirdParty/RegexKitLite/RegexKitLite.html2885<p>Inside you&#39;ll find more examples like this that you can use as the starting point for your own regular expression
MEDIUMThirdParty/RegexKitLite/RegexKitLite.html3078 <p>Also available is the <a href="#RegexEscapeTool">Regex Escape Tool</a> which allows you to enter a regular expres
LOWThirdParty/libgit2/include/git2/repository.h620 * Use this function to get the contents of this file. Don't forget to
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGH…ser/WebViewAdditions/iTermBrowserWebView+Actions.swift381 // Skip mark case as requested
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOW…nsFramework/test-extensions/storage-ui-demo/content.js204async function getData() {