Repository Analysis

nwjs/nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.

16.1 Moderate AI signal View on GitHub
16.1
Adjusted Score
16.1
Raw Score
100%
Time Factor
2026-05-26
Last Push
41,183
Stars
JavaScript
Language
45,621
Lines of Code
942
Files
692
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 0MEDIUM 17LOW 674

Pattern Findings

692 matches across 7 categories. Click a row to expand file-level details.

Unused Imports529 hits · 529 pts
SeverityFileLineSnippet
LOWtools/sync.py1
LOWtools/sync.py6
LOWtools/roll-deps.py20
LOWtools/roll-deps.py21
LOWtools/cleanup.py3
LOWtools/patcher.py5
LOWtools/patcher.py9
LOWtools/aws_uploader.py5
LOWtools/aws_uploader.py13
LOWtools/getnwisrelease.py1
LOWtest/testpy/__init__.py30
LOWtest/testpy/__init__.py33
LOWtest/sanity/testcfg.py3
LOWtest/sanity/testcfg.py3
LOWtest/sanity/testcfg.py4
LOWtest/sanity/http-server-node.py10
LOWtest/sanity/start-page/test.py5
LOWtest/sanity/start-page/test.py7
LOWtest/sanity/worker-sharedworker/test.py5
LOWtest/sanity/worker-sharedworker/test.py7
LOWtest/sanity/issue6251-node-crypto/test.py3
LOWtest/sanity/issue6251-node-crypto/test.py4
LOWtest/sanity/issue6251-node-crypto/test.py5
LOWtest/sanity/issue6251-node-crypto/test.py7
LOWtest/sanity/issue6251-node-crypto/test.py7
LOWtest/sanity/issue6251-node-crypto/test.py9
LOWtest/sanity/issue6251-node-crypto/test.py10
LOWtest/sanity/issue4007-reload-lost-app-window/test.py1
LOWtest/sanity/issue4007-reload-lost-app-window/test.py5
LOWtest/sanity/issue4007-reload-lost-app-window/test.py6
LOWtest/sanity/issue6229-webview-executeScript/test.py1
LOWtest/sanity/issue6229-webview-executeScript/test.py3
LOWtest/sanity/issue6229-webview-executeScript/test.py6
LOWtest/sanity/issue6229-webview-executeScript/test.py7
LOWtest/sanity/crash-dump-report/test.py4
LOWtest/sanity/crash-dump-report/test.py16
LOWtest/sanity/issue4180-remote-win-open/test.py4
LOWtest/sanity/issue4180-remote-win-open/test.py5
LOWtest/sanity/issue4180-remote-win-open/test.py7
LOWtest/sanity/issue4180-remote-win-open/test.py8
LOWtest/sanity/issue4180-remote-win-open/test.py10
LOWtest/sanity/node-remote-negtive/test.py1
LOWtest/sanity/node-remote-negtive/test.py5
LOWtest/sanity/node-remote-negtive/test.py6
LOWtest/sanity/node-remote-negtive/test.py7
LOWtest/sanity/node-remote-negtive/test.py9
LOWtest/sanity/node-remote-negtive/test.py10
LOWtest/sanity/issue4959-stringify-window/test.py5
LOWtest/sanity/issue4959-stringify-window/test.py7
LOWtest/sanity/issue4959-stringify-window/test.py9
LOWtest/sanity/cookie-lost-devtools-close/test.py1
LOWtest/sanity/cookie-lost-devtools-close/test.py5
LOWtest/sanity/cookie-lost-devtools-close/test.py6
LOWtest/sanity/issue5882-debugging-tools-crash/test.py6
LOWtest/sanity/issue5882-debugging-tools-crash/test.py7
LOWtest/sanity/issue5882-debugging-tools-crash/test.py11
LOWtest/sanity/issue5882-debugging-tools-crash/test.py12
LOWtest/sanity/issue8107-node-inspector/test.py1
LOWtest/sanity/issue8107-node-inspector/test.py4
LOWtest/sanity/issue8107-node-inspector/test.py7
469 more matches not shown…
Over-Commented Block118 hits · 118 pts
SeverityFileLineSnippet
LOWtest/test.py1#!/usr/bin/env python
LOWtest/utils.py1# Copyright 2008 the V8 project authors. All rights reserved.
LOWtest/testpy/__init__.py1# Copyright 2008 the V8 project authors. All rights reserved.
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js261//
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js321// EXTERNAL MODULE: ./src/scss/main.scss
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js381
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js401//
LOWtest/sanity/issue7197-load/js/app.6d98adfb.js921 * Create OSX menubar
LOWtest/sanity/issue6171-sdk-start-crash/index.html101
LOWdocs/References/App.md81
LOWdocs/References/App.md101 // the proxy scheme for proxy-uris is assumed to be http.
LOWdocs/References/App.md121 // proxy.
LOWsrc/nw_protocol_handler.h1// Copyright (c) 2012 Intel Corp
LOWsrc/nw_export.h1#ifndef NW_EXPORT_H_
LOWsrc/nw_export.h21#else // defined(COMPONENT_BUILD)
LOWsrc/nw_package.h1// Copyright (c) 2012 Intel Corp
LOWsrc/paths_mac.mm1// Copyright (c) 2012 Intel Corp
LOWsrc/paths_mac.mm21#include "paths_mac.h"
LOWsrc/resource.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/resource.h21#define IDC_PASSWORDEDIT 1011
LOWsrc/nw_version.h1// Copyright (c) 2012 Roger Wang <roger@nwjs.io>
LOWsrc/nw_version.h21#ifndef NW_VERSION_H
LOWsrc/nw_content.h1#ifndef NWJS_CONTENT_HOOKS_H
LOWsrc/renderer/shell_content_renderer_client.h1// Copyright (c) 2012 Intel Corp
LOWsrc/renderer/autofill_agent.h1// Copyright (c) 2012 Intel Corp
LOWsrc/renderer/autofill_agent.h81 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug
LOWsrc/renderer/nw_render_view_observer.h1// Copyright (c) 2012 Intel Corp
LOWsrc/renderer/shell_render_process_observer.h1// Copyright (c) 2012 Intel Corp
LOWsrc/renderer/printing/print_web_view_helper.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/renderer/printing/print_web_view_helper_mac.mm1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/renderer/common/render_messages.h1// Copyright (c) 2012 Intel Corp
LOWsrc/renderer/common/render_messages.h21#include "content/public/common/common_param_traits.h"
LOWsrc/renderer/prerenderer/prerenderer_client.h1// Copyright (c) 2012 Intel Corp
LOWsrc/net/sqlite_persistent_cookie_store.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/net/resource_request_job.h1// Copyright (c) 2012 Intel Corp
LOWsrc/net/shell_url_request_context_getter.h1// Copyright (c) 2012 Intel Corp
LOWsrc/resources/nwapp/background.js1//console.log("nwapp/background.js");
LOWsrc/browser/app_controller_mac.mm1// Copyright (c) 2012 Intel Corp
LOWsrc/browser/file_select_helper.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/browser/chrome_event_processing_window.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/browser/popup_controller_common.h41
LOWsrc/browser/file_select_helper_mac.mm1// Copyright 2014 The Chromium Authors. All rights reserved.
LOWsrc/browser/standard_menus_mac.mm1// Copyright (c) 2012 Intel Corp
LOWsrc/browser/nw_form_database_service.h1// Copyright (c) 2013 The Chromium Authors. All rights reserved.
LOWsrc/browser/chrome_crash_reporter_client_mac.mm1// Copyright 2013 The Chromium Authors. All rights reserved.
LOWsrc/browser/nw_content_browser_hooks.h81// ref in content/browser/renderer_host/render_process_host_impl.cc
LOWsrc/browser/color_chooser_dialog.h41 // shown modal to |params.owner|. Once it's closed, calls back to
LOWsrc/browser/nw_autofill_client.h1// Copyright 2014 The Chromium Authors. All rights reserved.
LOWsrc/browser/color_chooser_mac.mm1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/browser/browser_view_layout.h1// Copyright (c) 2011 The Chromium Authors. All rights reserved.
LOWsrc/browser/standard_menus_mac.h1// Copyright (c) 2012 Intel Corp
LOWsrc/browser/app_controller_mac.h1// Copyright (c) 2012 Intel Corp
LOWsrc/browser/printing_handler.h1// Copyright 2014 The Chromium Authors. All rights reserved.
LOWsrc/browser/autofill_popup_view_cocoa.mm1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/browser/capture_page_helper.h1// Copyright (c) 2012 Intel Corp
LOWsrc/browser/autofill_popup_view_bridge.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/browser/autofill_popup_controller_impl.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/browser/autofill_popup_view_gtk.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/browser/printing/print_dialog_gtk.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
LOWsrc/browser/printing/print_view_manager.h1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
58 more matches not shown…
Excessive Try-Catch Wrapping16 hits · 32 pts
SeverityFileLineSnippet
MEDIUMtools/sync.py36 print("Error opening DEPS file: {}".format(e))
MEDIUMtools/sync.py40 print("Error: Could not find 'nw_src_revision' in DEPS file.")
MEDIUMtools/sync.py45 print("Error: Directory {} does not exist. Run gclient sync without --shallow first to create it.".format(src_di
MEDIUMtools/sync.py55 print("Error: git fetch failed with exit code {}".format(fetch_ret))
MEDIUMtools/sync.py61 print("Error: git reset failed with exit code {}".format(reset_ret))
LOWtools/commit_id.py37 except Exception as e:
MEDIUMtools/package_binaries.py507 print(f"Error: Could not write to file {output_filename}")
LOWtools/cleanup.py20 except Exception as e:
MEDIUMtools/cleanup.py24 print(f"Error scanning directory {target_dir}: {e}", file=sys.stderr)
LOWtest/test.py110 except Exception as e:
LOWtest/sanity/nw_util.py85 except Exception as e:
LOWtest/sanity/nw_util.py92 except Exception as e_log:
LOWtest/sanity/mv3-devtools-extension/test.py32except Exception as e:
MEDIUMtest/sanity/app-open-event/second_instance.py35 print("Error: The 'CHROMEDRIVER' environment variable is not set.")
LOWtest/sanity/app-open-event/second_instance.py36except Exception as e:
MEDIUMtest/sanity/app-open-event/second_instance.py37 print(f"An error occurred: {e}")
Decorative Section Separators8 hits · 24 pts
SeverityFileLineSnippet
MEDIUMtest/test.py57# ---------------------------------------------
MEDIUMtest/test.py59# ---------------------------------------------
MEDIUMtest/test.py373# -------------------------
MEDIUMtest/test.py375# -------------------------
MEDIUMtest/test.py800# -------------------------------------------
MEDIUMtest/test.py802# -------------------------------------------
MEDIUMtest/test.py1220# ---------------
MEDIUMtest/test.py1222# ---------------
Deep Nesting16 hits · 16 pts
SeverityFileLineSnippet
LOWtools/package_binaries.py128
LOWtools/package_binaries.py370
LOWtools/package_binaries.py401
LOWtools/package_binaries.py428
LOWtools/cleanup.py7
LOWtools/aws_uploader.py85
LOWtest/test.py1019
LOWtest/test.py1374
LOWtest/test.py963
LOWtest/utils.py46
LOWtest/utils.py73
LOWtest/testpy/__init__.py175
LOWtest/sanity/nw_util.py19
LOWtest/sanity/nw_util.py98
LOWtest/sanity/nw_util.py298
LOWtest/sanity/nw_util.py404
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICAL…sanity/issue5730-add-node-in-permissions/jquery.min.js4void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippet
LOWtools/package_binaries.py215def generate_target_chromedriver(platform_name, arch, version):
LOWtest/sanity/nw_util.py254def wait_for_element_id_content(driver, elem_id, content, timeout=60):
LOWtest/sanity/user-agent/echo-user-agent.py5class RequestHandler(BaseHTTPRequestHandler):
LOWtest/sanity/nwuseragent/echo-user-agent.py6class RequestHandler(BaseHTTPRequestHandler):