Repository Analysis

swaywm/sway

i3-compatible Wayland compositor

1.6 Likely human-written View on GitHub
1.6
Adjusted Score
1.6
Raw Score
100%
Time Factor
2026-05-25
Last Push
16,971
Stars
C
Language
56,686
Lines of Code
342
Files
88
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 88

Pattern Findings

88 matches across 1 category. Click a row to expand file-level details.

Over-Commented Block88 hits · 88 pts
SeverityFileLineSnippet
LOWinclude/stringop.h1#ifndef _SWAY_STRINGOP_H
LOWinclude/swaybar/input.h1#ifndef _SWAYBAR_INPUT_H
LOWinclude/swaybar/bar.h1#ifndef _SWAYBAR_BAR_H
LOWinclude/swaybar/tray/tray.h1#ifndef _SWAYBAR_TRAY_TRAY_H
LOWinclude/sway/config.h1#ifndef _SWAY_CONFIG_H
LOWinclude/sway/output.h1#ifndef _SWAY_OUTPUT_H
LOWinclude/sway/tree/view.h1#ifndef _SWAY_VIEW_H
LOWinclude/sway/tree/root.h1#ifndef _SWAY_ROOT_H
LOWinclude/sway/tree/root.h21 // - staging
LOWinclude/sway/input/seat.h1#ifndef _SWAY_INPUT_SEAT_H
LOWinclude/sway/input/cursor.h1#ifndef _SWAY_INPUT_CURSOR_H
LOWswaybar/render.c1#include <assert.h>
LOWswaybar/input.c1#include <assert.h>
LOWswaybar/bar.c1#include <assert.h>
LOWswaybar/ipc.c1#include <limits.h>
LOWswaybar/i3bar.c1#include <json.h>
LOWswaybar/status_line.c1#include <assert.h>
LOWswaybar/tray/host.c1#include <stdbool.h>
LOWswaybar/tray/item.c1#include <arpa/inet.h>
LOWswaybar/tray/icon.c1#include <ctype.h>
LOWswaybar/tray/tray.c1#include <cairo.h>
LOWsway/sway_text_node.c1#include <drm_fourcc.h>
LOWsway/server.c1#include <assert.h>
LOWsway/server.c21#include <wlr/types/wlr_export_dmabuf_v1.h>
LOWsway/server.c41#include <wlr/types/wlr_server_decoration.h>
LOWsway/server.c61#include "sway/input/input-manager.h"
LOWsway/criteria.c1#include <stdlib.h>
LOWsway/ipc-json.c1#include <ctype.h>
LOWsway/main.c1#include <getopt.h>
LOWsway/swaynag.c1#include <signal.h>
LOWsway/ipc-server.c1// See https://i3wm.org/docs/ipc.html for protocol information
LOWsway/ipc-server.c21#include "sway/ipc-server.h"
LOWsway/config.c1#undef _POSIX_C_SOURCE
LOWsway/config.c21#include "sway/input/switch.h"
LOWsway/lock.c1#include <assert.h>
LOWsway/commands.c1#include <ctype.h>
LOWsway/tree/workspace.c1#include <ctype.h>
LOWsway/tree/root.c1#include <stdbool.h>
LOWsway/tree/arrange.c1#include <ctype.h>
LOWsway/tree/container.c1#include <assert.h>
LOWsway/tree/view.c1#include <stdlib.h>
LOWsway/tree/view.c21#include "sway/criteria.h"
LOWsway/tree/output.c1#include <assert.h>
LOWsway/config/bar.c1#include <signal.h>
LOWsway/config/output.c1#include <assert.h>
LOWsway/input/seatop_resize_tiling.c1#include <wlr/types/wlr_cursor.h>
LOWsway/input/keyboard.c1#include <assert.h>
LOWsway/input/tablet.c1#include <stdlib.h>
LOWsway/input/seatop_move_tiling.c1#include <limits.h>
LOWsway/input/seatop_default.c1#include <float.h>
LOWsway/input/text_input.c1#include <assert.h>
LOWsway/input/seat.c1#include <assert.h>
LOWsway/input/seat.c21#include "sway/input/cursor.h"
LOWsway/input/cursor.c1#include <assert.h>
LOWsway/input/cursor.c21#include "sway/commands.h"
LOWsway/input/cursor.c761 // currently map to BTN_RIGHT, we need to keep count of how many tool
LOWsway/input/input-manager.c1#include <ctype.h>
LOWsway/desktop/xwayland.c1#include <float.h>
LOWsway/desktop/layer_shell.c1#include <stdbool.h>
LOWsway/desktop/transaction.c1#include <stdbool.h>
28 more matches not shown…