From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=new2025; t=1756452192; bh=8o4h40JWcn1nr6ZCXxc4c3ie2fNGKv9VYLTNUnr104A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=U3xE0gNwdnQPaYwE8gdv1cn4Kmjsd0+MWyGBgmJ7L55VXQ72CCWuBEvMTZ1x1SCO0 8f5N5SVX59ug5yGkg2Wi7nGn5HKVCi3Lj9/4Xmk6AGtetHH6bdpmi01p+37nKkztN/ tFF2w6GbwGh8OYFLhfwrpZpRIWSfieuP2WTEcxl0koJd+ExrbMtpkoNcPLmV2C/zbm 4hp2lMro9pXf5zmXe4mGCVhg6AlkDpKzBnwQhExwp6QADzT7hR8PJzV1DzPWKYE6JZ zTMS/ANqx0NBILz7nBOPqrCu/7Q0cJ4NeXxJA5s7uUd5V/7Sbl2cc06VCkFNUDfI+C btZz44yTKSJ3A== Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 9C4843127F75 for ; Fri, 29 Aug 2025 07:23:12 +0000 (UTC) Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-4b2fd85d912so18709061cf.1 for ; Fri, 29 Aug 2025 00:23:12 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVfgRbv8WmSzzpwaaoC0BwUI/cqJ0KYeEA0x9iDd7h8tr9eBi0LMlNKakdu7Yoyn3Jh9SHo@vger.gnuweeb.org X-Gm-Message-State: AOJu0YzrlCE12QHMTZ9MKCjJdek2TIG0wg8kO2pf2jwjyQdqDGgi6j2g iYO8xCy+/D91LRr0y5Ur1rRPBm9lRTia6dK58E63KSpWa6xftdWZSnfbtIyrYW1wmeX6big3Gc3 6dvuoM0LCyMR2pttdVfjM0uIen0tjT7s= X-Google-Smtp-Source: AGHT+IHXugudtW7+gCUYZ0zBkXv6IFigFODUIB+reMr85NC+/iv3N2sK0FiluiGvKjDqNVNZ3Byuf7cYWM/mQ6k+79E= X-Received: by 2002:ac8:5942:0:b0:4b2:9603:a4bd with SMTP id d75a77b69052e-4b2aaacf398mr311729071cf.45.1756452191485; Fri, 29 Aug 2025 00:23:11 -0700 (PDT) MIME-Version: 1.0 References: <20250829033628.573589-1-reyuki@gnuweeb.org> <20250829043632.GA652664-ammarfaizi2@gnuweeb.org> In-Reply-To: From: Ammar Faizi Date: Fri, 29 Aug 2025 14:22:54 +0700 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXz_-VxApiVNT19re1lqm9PFhkCFGgPijUBo4DTKcSHi8AycgqptJF6L-r4 Message-ID: Subject: Re: [PATCH gwproxy v7 0/2] Initial work on integration of DNS parser lib in gwproxy To: Ahmad Gani Cc: Alviro Iskandar Setiawan , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: On Fri, Aug 29, 2025 at 1:57=E2=80=AFPM Ahmad Gani wrote: > Perhaps I should use a script to check whether the files adhere to the > required rules and patterns. Do you know of any existing tools or scripts > that perform such checks? There are several ways to check for it: 1) The easiest way is to turn on the regex search. You can find this pattern in your epoll.c: (^|.)\s+$ It will match trailing whitespaces. 2) Try to apply your own patches with 'git am'. It will yell at you if there are whitespaces. 3) In the Linux kernel, there is a script called checkpatch.pl. It can detect trailing whitespaces and other trivial formatting errors. I don't usually use it, though. https://github.com/torvalds/linux/blob/master/scripts/checkpatch.pl Unfortunately, it must be run from the root directory of the kernel tree. So you need to git clone the entire kernel tree to use it. Maybe it can be modified to run outside of the kernel tree, but I don't think it's worth it. Not that urgent anyway. --=20 Ammar Faizi