Skip to content

Commit 8a46abc

Browse files
committed
Add and fix more linting
1 parent 8b6854c commit 8a46abc

File tree

5 files changed

+37
-16
lines changed

5 files changed

+37
-16
lines changed

.github/workflows/build-and-push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
steps:
2323
- name: Set Calver Date
2424
run: |
25-
echo "builddate=$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT
26-
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
25+
echo "builddate=$(date +'%Y.%m.%d')" >> "$GITHUB_OUTPUT"
26+
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT"
2727
id: version
2828
- name: Checkout
2929
uses: actions/checkout@v6
@@ -103,7 +103,7 @@ jobs:
103103
add_annotation "revision" "$revision"
104104
105105
# Output the complete annotations string.
106-
echo "annotations=$annotations" >> $GITHUB_OUTPUT
106+
echo "annotations=$annotations" >> "$GITHUB_OUTPUT"
107107
- name: Build and push
108108
uses: docker/build-push-action@v6
109109
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ jobs:
8888
load: true
8989
tags: ${{ env.TAG }}
9090
- name: Test
91-
run: docker run --rm $TAG autoconf --version | grep ${{ matrix.autoconf_version }}
91+
run: docker run --rm "$TAG" autoconf --version | grep ${{ matrix.autoconf_version }}

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-yaml
9+
- id: end-of-file-fixer
10+
- id: forbid-submodules
11+
- id: trailing-whitespace
12+
13+
- repo: https://github.com/python-jsonschema/check-jsonschema
14+
rev: 0.36.2
15+
hooks:
16+
- id: check-dependabot
17+
- id: check-github-workflows
18+
19+
- repo: https://github.com/rhysd/actionlint
20+
rev: v1.7.11
21+
hooks:
22+
- id: actionlint
23+
224
- repo: https://github.com/woodruffw/zizmor-pre-commit
325
rev: v1.22.0
426
hooks:

autoconf/ax_c_float_words_bigendian.diff

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,31 @@ index 216b90d8..52036844 100644
5656
# permitted in any medium without royalty provided the copyright notice
5757
# and this notice are preserved. This file is offered as-is, without any
5858
# warranty.
59-
59+
6060
-#serial 11
6161
+#serial 14
62-
62+
6363
AC_DEFUN([AX_C_FLOAT_WORDS_BIGENDIAN],
6464
[AC_CACHE_CHECK(whether float word ordering is bigendian,
6565
ax_cv_c_float_words_bigendian, [
66-
66+
6767
ax_cv_c_float_words_bigendian=unknown
6868
-AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
6969
+AC_LINK_IFELSE([AC_LANG_SOURCE([[
7070
+
7171
+#include <stdlib.h>
7272
+
7373
+static double m[] = {9.090423496703681e+223, 0.0};
74-
74+
7575
-double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
7676
+int main (int argc, char *argv[])
7777
+{
7878
+ m[atoi (argv[1])] += atof (argv[2]);
7979
+ return m[atoi (argv[3])] > 0.0;
8080
+}
81-
81+
8282
]])], [
83-
83+
8484
-if grep noonsees conftest.$ac_objext >/dev/null ; then
8585
+if grep noonsees conftest* > /dev/null ; then
8686
ax_cv_c_float_words_bigendian=yes

autoconf/config.sub.patch

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ index 4aaae46..335706d 100755
3333
--- a/config.sub
3434
+++ b/config.sub
3535
@@ -4,7 +4,7 @@
36-
36+
3737
# shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale
38-
38+
3939
-timestamp='2024-05-27'
4040
+timestamp='2025-01-06'
41-
41+
4242
# This file is free software; you can redistribute it and/or modify it
4343
# under the terms of the GNU General Public License as published by
4444
@@ -1194,7 +1194,7 @@ case $cpu-$vendor in
@@ -49,7 +49,7 @@ index 4aaae46..335706d 100755
4949
+ arm64-* | aarch64le-* | arm64_32-*)
5050
cpu=aarch64
5151
;;
52-
52+
5353
@@ -2249,6 +2249,8 @@ case $kernel-$os-$obj in
5454
;;
5555
*-eabi*- | *-gnueabi*-)
@@ -59,6 +59,5 @@ index 4aaae46..335706d 100755
5959
none--*)
6060
# None (no kernel, i.e. freestanding / bare metal),
6161
# can be paired with an machine code file format
62-
--
62+
--
6363
2.47.1
64-

0 commit comments

Comments
 (0)