From d5935ff2007195f0a9f9a8436da81a3fb082c7fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 May 2025 05:44:05 +0000 Subject: [PATCH 1/5] Bump github.com/olekukonko/tablewriter from 0.0.5 to 1.0.6 Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.5 to 1.0.6. - [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.5...v1.0.6) --- updated-dependencies: - dependency-name: github.com/olekukonko/tablewriter dependency-version: 1.0.6 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- go.mod | 8 ++++++-- go.sum | 15 ++++++++++----- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 1ce7863d..10a57c32 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/arduino/go-properties-orderedmap v1.8.1 github.com/client9/misspell v0.3.4 github.com/go-git/go-git/v5 v5.16.0 - github.com/olekukonko/tablewriter v0.0.5 + github.com/olekukonko/tablewriter v1.0.6 github.com/ory/jsonschema/v3 v3.0.4 github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.9.1 @@ -38,6 +38,7 @@ require ( github.com/dgraph-io/ristretto v0.0.3 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect github.com/emirpasic/gods v1.18.1 // indirect + github.com/fatih/color v1.15.0 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.6.2 // indirect @@ -59,9 +60,12 @@ require ( github.com/leonelquinteros/gotext v1.4.0 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/mailru/easyjson v0.7.7 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/mattn/go-runewidth v0.0.16 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/olekukonko/errors v0.0.0-20250405072817-4e6d85265da6 // indirect + github.com/olekukonko/ll v0.0.8-0.20250516010636-22ea57d81985 // indirect github.com/ory/go-acc v0.2.6 // indirect github.com/ory/viper v1.7.5 // indirect github.com/ory/x v0.0.272 // indirect diff --git a/go.sum b/go.sum index 840721be..34bf0b0f 100644 --- a/go.sum +++ b/go.sum @@ -910,12 +910,12 @@ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= -github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= +github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= @@ -972,9 +972,13 @@ github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtb github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/oleiade/reflections v1.0.1/go.mod h1:rdFxbxq4QXVZWj0F+e9jqjDkc7dbp97vkRixKo2JR60= +github.com/olekukonko/errors v0.0.0-20250405072817-4e6d85265da6 h1:r3FaAI0NZK3hSmtTDrBVREhKULp8oUeqLT5Eyl2mSPo= +github.com/olekukonko/errors v0.0.0-20250405072817-4e6d85265da6/go.mod h1:ppzxA5jBKcO1vIpCXQ9ZqgDh8iwODz6OXIGKU8r5m4Y= +github.com/olekukonko/ll v0.0.8-0.20250516010636-22ea57d81985 h1:V2wKiwjwAfRJRtUP6pC7wt4opeF14enO0du2dRV6Llo= +github.com/olekukonko/ll v0.0.8-0.20250516010636-22ea57d81985/go.mod h1:En+sEW0JNETl26+K8eZ6/W4UQ7CYSrrgg/EdIYT2H8g= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= -github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= +github.com/olekukonko/tablewriter v1.0.6 h1:/T45mIHc5hcEvibgzBzvMy7ruT+RjgoQRvkHbnl6OWA= +github.com/olekukonko/tablewriter v1.0.6/go.mod h1:SJ0MV1aHb/89fLcsBMXMp30Xg3g5eGoOUu0RptEk4AU= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -1625,6 +1629,7 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= From 0b7852443463bbae393506a70628bb9480beb0e8 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 19 May 2025 14:22:36 -0700 Subject: [PATCH 2/5] Tidy dependent modules to reflect `github.com/olekukonko/tablewriter` bump The bump of the dependency of the project's root `github.com/arduino/arduino-lint` module also requires updates to the Go dependencies metadata of the project's modules which depend on `github.com/arduino/arduino-lint`. --- docsgen/go.mod | 8 ++++++-- docsgen/go.sum | 15 ++++++++++----- ruledocsgen/go.mod | 8 ++++++-- ruledocsgen/go.sum | 15 ++++++++++----- 4 files changed, 32 insertions(+), 14 deletions(-) diff --git a/docsgen/go.mod b/docsgen/go.mod index af67824d..fc8b0bc9 100644 --- a/docsgen/go.mod +++ b/docsgen/go.mod @@ -32,6 +32,7 @@ require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dgraph-io/ristretto v0.0.3 // indirect github.com/emirpasic/gods v1.18.1 // indirect + github.com/fatih/color v1.15.0 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.6.2 // indirect @@ -54,10 +55,13 @@ require ( github.com/leonelquinteros/gotext v1.4.0 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/mailru/easyjson v0.7.7 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/mattn/go-runewidth v0.0.16 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/olekukonko/tablewriter v0.0.5 // indirect + github.com/olekukonko/errors v0.0.0-20250405072817-4e6d85265da6 // indirect + github.com/olekukonko/ll v0.0.8-0.20250516010636-22ea57d81985 // indirect + github.com/olekukonko/tablewriter v1.0.6 // indirect github.com/ory/go-acc v0.2.6 // indirect github.com/ory/jsonschema/v3 v3.0.4 // indirect github.com/ory/viper v1.7.5 // indirect diff --git a/docsgen/go.sum b/docsgen/go.sum index 7b9419fb..3bf64e88 100644 --- a/docsgen/go.sum +++ b/docsgen/go.sum @@ -911,12 +911,12 @@ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= -github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= +github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= @@ -973,9 +973,13 @@ github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtb github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/oleiade/reflections v1.0.1/go.mod h1:rdFxbxq4QXVZWj0F+e9jqjDkc7dbp97vkRixKo2JR60= +github.com/olekukonko/errors v0.0.0-20250405072817-4e6d85265da6 h1:r3FaAI0NZK3hSmtTDrBVREhKULp8oUeqLT5Eyl2mSPo= +github.com/olekukonko/errors v0.0.0-20250405072817-4e6d85265da6/go.mod h1:ppzxA5jBKcO1vIpCXQ9ZqgDh8iwODz6OXIGKU8r5m4Y= +github.com/olekukonko/ll v0.0.8-0.20250516010636-22ea57d81985 h1:V2wKiwjwAfRJRtUP6pC7wt4opeF14enO0du2dRV6Llo= +github.com/olekukonko/ll v0.0.8-0.20250516010636-22ea57d81985/go.mod h1:En+sEW0JNETl26+K8eZ6/W4UQ7CYSrrgg/EdIYT2H8g= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= -github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= +github.com/olekukonko/tablewriter v1.0.6 h1:/T45mIHc5hcEvibgzBzvMy7ruT+RjgoQRvkHbnl6OWA= +github.com/olekukonko/tablewriter v1.0.6/go.mod h1:SJ0MV1aHb/89fLcsBMXMp30Xg3g5eGoOUu0RptEk4AU= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -1627,6 +1631,7 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= diff --git a/ruledocsgen/go.mod b/ruledocsgen/go.mod index d1f7e8a9..2d331665 100644 --- a/ruledocsgen/go.mod +++ b/ruledocsgen/go.mod @@ -10,7 +10,7 @@ require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/arduino/arduino-lint v0.0.0 github.com/arduino/go-paths-helper v1.13.1 - github.com/olekukonko/tablewriter v0.0.5 + github.com/olekukonko/tablewriter v1.0.6 github.com/stretchr/testify v1.10.0 ) @@ -30,6 +30,7 @@ require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dgraph-io/ristretto v0.0.3 // indirect github.com/emirpasic/gods v1.18.1 // indirect + github.com/fatih/color v1.15.0 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.6.2 // indirect @@ -52,9 +53,12 @@ require ( github.com/leonelquinteros/gotext v1.4.0 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/mailru/easyjson v0.7.7 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/mattn/go-runewidth v0.0.16 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/olekukonko/errors v0.0.0-20250405072817-4e6d85265da6 // indirect + github.com/olekukonko/ll v0.0.8-0.20250516010636-22ea57d81985 // indirect github.com/ory/go-acc v0.2.6 // indirect github.com/ory/jsonschema/v3 v3.0.4 // indirect github.com/ory/viper v1.7.5 // indirect diff --git a/ruledocsgen/go.sum b/ruledocsgen/go.sum index 0110488b..c6197902 100644 --- a/ruledocsgen/go.sum +++ b/ruledocsgen/go.sum @@ -914,12 +914,12 @@ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= -github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= +github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= @@ -976,9 +976,13 @@ github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtb github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/oleiade/reflections v1.0.0/go.mod h1:RbATFBbKYkVdqmSFtx13Bb/tVhR0lgOBXunWTZKeL4w= +github.com/olekukonko/errors v0.0.0-20250405072817-4e6d85265da6 h1:r3FaAI0NZK3hSmtTDrBVREhKULp8oUeqLT5Eyl2mSPo= +github.com/olekukonko/errors v0.0.0-20250405072817-4e6d85265da6/go.mod h1:ppzxA5jBKcO1vIpCXQ9ZqgDh8iwODz6OXIGKU8r5m4Y= +github.com/olekukonko/ll v0.0.8-0.20250516010636-22ea57d81985 h1:V2wKiwjwAfRJRtUP6pC7wt4opeF14enO0du2dRV6Llo= +github.com/olekukonko/ll v0.0.8-0.20250516010636-22ea57d81985/go.mod h1:En+sEW0JNETl26+K8eZ6/W4UQ7CYSrrgg/EdIYT2H8g= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= -github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= +github.com/olekukonko/tablewriter v1.0.6 h1:/T45mIHc5hcEvibgzBzvMy7ruT+RjgoQRvkHbnl6OWA= +github.com/olekukonko/tablewriter v1.0.6/go.mod h1:SJ0MV1aHb/89fLcsBMXMp30Xg3g5eGoOUu0RptEk4AU= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -1650,6 +1654,7 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= From 6992f843e650b14ede0529a42944d41069c8cfee Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 19 May 2025 14:31:51 -0700 Subject: [PATCH 3/5] Update dependency license metadata cache for `github.com/olekukonko/tablewriter` bump --- .../go/github.com/fatih/color.dep.yml | 35 +++++++++++++++++++ .../go/github.com/mattn/go-colorable.dep.yml | 34 ++++++++++++++++++ .../go/github.com/mattn/go-runewidth.dep.yml | 2 +- .../go/github.com/olekukonko/errors.dep.yml | 34 ++++++++++++++++++ .../go/github.com/olekukonko/ll.dep.yml | 34 ++++++++++++++++++ .../go/github.com/olekukonko/ll/lh.dep.yml | 34 ++++++++++++++++++ .../go/github.com/olekukonko/ll/lx.dep.yml | 34 ++++++++++++++++++ .../github.com/olekukonko/tablewriter.dep.yml | 7 ++-- .../olekukonko/tablewriter/pkg/twwarp.dep.yml | 32 +++++++++++++++++ .../olekukonko/tablewriter/renderer.dep.yml | 32 +++++++++++++++++ .../olekukonko/tablewriter/tw.dep.yml | 34 ++++++++++++++++++ .../docsgen/go/github.com/fatih/color.dep.yml | 35 +++++++++++++++++++ .../go/github.com/mattn/go-colorable.dep.yml | 34 ++++++++++++++++++ .../go/github.com/mattn/go-runewidth.dep.yml | 2 +- .../go/github.com/olekukonko/errors.dep.yml | 34 ++++++++++++++++++ .../go/github.com/olekukonko/ll.dep.yml | 34 ++++++++++++++++++ .../go/github.com/olekukonko/ll/lh.dep.yml | 34 ++++++++++++++++++ .../go/github.com/olekukonko/ll/lx.dep.yml | 34 ++++++++++++++++++ .../github.com/olekukonko/tablewriter.dep.yml | 7 ++-- .../olekukonko/tablewriter/pkg/twwarp.dep.yml | 32 +++++++++++++++++ .../olekukonko/tablewriter/renderer.dep.yml | 32 +++++++++++++++++ .../olekukonko/tablewriter/tw.dep.yml | 34 ++++++++++++++++++ .../go/github.com/fatih/color.dep.yml | 35 +++++++++++++++++++ .../go/github.com/mattn/go-colorable.dep.yml | 34 ++++++++++++++++++ .../go/github.com/mattn/go-runewidth.dep.yml | 2 +- .../go/github.com/olekukonko/errors.dep.yml | 34 ++++++++++++++++++ .../go/github.com/olekukonko/ll.dep.yml | 34 ++++++++++++++++++ .../go/github.com/olekukonko/ll/lh.dep.yml | 34 ++++++++++++++++++ .../go/github.com/olekukonko/ll/lx.dep.yml | 34 ++++++++++++++++++ .../github.com/olekukonko/tablewriter.dep.yml | 7 ++-- .../olekukonko/tablewriter/pkg/twwarp.dep.yml | 32 +++++++++++++++++ .../olekukonko/tablewriter/renderer.dep.yml | 32 +++++++++++++++++ .../olekukonko/tablewriter/tw.dep.yml | 34 ++++++++++++++++++ 33 files changed, 927 insertions(+), 9 deletions(-) create mode 100644 .licenses/arduino-lint/go/github.com/fatih/color.dep.yml create mode 100644 .licenses/arduino-lint/go/github.com/mattn/go-colorable.dep.yml create mode 100644 .licenses/arduino-lint/go/github.com/olekukonko/errors.dep.yml create mode 100644 .licenses/arduino-lint/go/github.com/olekukonko/ll.dep.yml create mode 100644 .licenses/arduino-lint/go/github.com/olekukonko/ll/lh.dep.yml create mode 100644 .licenses/arduino-lint/go/github.com/olekukonko/ll/lx.dep.yml create mode 100644 .licenses/arduino-lint/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml create mode 100644 .licenses/arduino-lint/go/github.com/olekukonko/tablewriter/renderer.dep.yml create mode 100644 .licenses/arduino-lint/go/github.com/olekukonko/tablewriter/tw.dep.yml create mode 100644 .licenses/docsgen/go/github.com/fatih/color.dep.yml create mode 100644 .licenses/docsgen/go/github.com/mattn/go-colorable.dep.yml create mode 100644 .licenses/docsgen/go/github.com/olekukonko/errors.dep.yml create mode 100644 .licenses/docsgen/go/github.com/olekukonko/ll.dep.yml create mode 100644 .licenses/docsgen/go/github.com/olekukonko/ll/lh.dep.yml create mode 100644 .licenses/docsgen/go/github.com/olekukonko/ll/lx.dep.yml create mode 100644 .licenses/docsgen/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml create mode 100644 .licenses/docsgen/go/github.com/olekukonko/tablewriter/renderer.dep.yml create mode 100644 .licenses/docsgen/go/github.com/olekukonko/tablewriter/tw.dep.yml create mode 100644 .licenses/ruledocsgen/go/github.com/fatih/color.dep.yml create mode 100644 .licenses/ruledocsgen/go/github.com/mattn/go-colorable.dep.yml create mode 100644 .licenses/ruledocsgen/go/github.com/olekukonko/errors.dep.yml create mode 100644 .licenses/ruledocsgen/go/github.com/olekukonko/ll.dep.yml create mode 100644 .licenses/ruledocsgen/go/github.com/olekukonko/ll/lh.dep.yml create mode 100644 .licenses/ruledocsgen/go/github.com/olekukonko/ll/lx.dep.yml create mode 100644 .licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml create mode 100644 .licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/renderer.dep.yml create mode 100644 .licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/tw.dep.yml diff --git a/.licenses/arduino-lint/go/github.com/fatih/color.dep.yml b/.licenses/arduino-lint/go/github.com/fatih/color.dep.yml new file mode 100644 index 00000000..fa66af7e --- /dev/null +++ b/.licenses/arduino-lint/go/github.com/fatih/color.dep.yml @@ -0,0 +1,35 @@ +--- +name: github.com/fatih/color +version: v1.15.0 +type: go +summary: Package color is an ANSI color package to output colorized or SGR defined + output to the standard output. +homepage: https://pkg.go.dev/github.com/fatih/color +license: mit +licenses: +- sources: LICENSE.md + text: | + The MIT License (MIT) + + Copyright (c) 2013 Fatih Arslan + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +- sources: README.md + text: The MIT License (MIT) - see [`LICENSE.md`](https://github.com/fatih/color/blob/master/LICENSE.md) + for more details +notices: [] diff --git a/.licenses/arduino-lint/go/github.com/mattn/go-colorable.dep.yml b/.licenses/arduino-lint/go/github.com/mattn/go-colorable.dep.yml new file mode 100644 index 00000000..2bc368be --- /dev/null +++ b/.licenses/arduino-lint/go/github.com/mattn/go-colorable.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/mattn/go-colorable +version: v0.1.13 +type: go +summary: +homepage: https://pkg.go.dev/github.com/mattn/go-colorable +license: mit +licenses: +- sources: LICENSE + text: | + The MIT License (MIT) + + Copyright (c) 2016 Yasuhiro Matsumoto + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: README.md + text: MIT +notices: [] diff --git a/.licenses/arduino-lint/go/github.com/mattn/go-runewidth.dep.yml b/.licenses/arduino-lint/go/github.com/mattn/go-runewidth.dep.yml index 5864f57a..5648d220 100644 --- a/.licenses/arduino-lint/go/github.com/mattn/go-runewidth.dep.yml +++ b/.licenses/arduino-lint/go/github.com/mattn/go-runewidth.dep.yml @@ -1,6 +1,6 @@ --- name: github.com/mattn/go-runewidth -version: v0.0.15 +version: v0.0.16 type: go summary: homepage: https://pkg.go.dev/github.com/mattn/go-runewidth diff --git a/.licenses/arduino-lint/go/github.com/olekukonko/errors.dep.yml b/.licenses/arduino-lint/go/github.com/olekukonko/errors.dep.yml new file mode 100644 index 00000000..786bc686 --- /dev/null +++ b/.licenses/arduino-lint/go/github.com/olekukonko/errors.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/errors +version: v0.0.0-20250405072817-4e6d85265da6 +type: go +summary: pool.go +homepage: https://pkg.go.dev/github.com/olekukonko/errors +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: README.md + text: MIT License - See [LICENSE](LICENSE). +notices: [] diff --git a/.licenses/arduino-lint/go/github.com/olekukonko/ll.dep.yml b/.licenses/arduino-lint/go/github.com/olekukonko/ll.dep.yml new file mode 100644 index 00000000..76806da0 --- /dev/null +++ b/.licenses/arduino-lint/go/github.com/olekukonko/ll.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/ll +version: v0.0.8-0.20250516010636-22ea57d81985 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/ll +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: README.md + text: "`ll` is licensed under the MIT License. See [LICENSE](LICENSE) for details." +notices: [] diff --git a/.licenses/arduino-lint/go/github.com/olekukonko/ll/lh.dep.yml b/.licenses/arduino-lint/go/github.com/olekukonko/ll/lh.dep.yml new file mode 100644 index 00000000..6a1e5896 --- /dev/null +++ b/.licenses/arduino-lint/go/github.com/olekukonko/ll/lh.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/ll/lh +version: v0.0.8-0.20250516010636-22ea57d81985 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/ll/lh +license: mit +licenses: +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/README.md + text: "`ll` is licensed under the MIT License. See [LICENSE](LICENSE) for details." +notices: [] diff --git a/.licenses/arduino-lint/go/github.com/olekukonko/ll/lx.dep.yml b/.licenses/arduino-lint/go/github.com/olekukonko/ll/lx.dep.yml new file mode 100644 index 00000000..32201970 --- /dev/null +++ b/.licenses/arduino-lint/go/github.com/olekukonko/ll/lx.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/ll/lx +version: v0.0.8-0.20250516010636-22ea57d81985 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/ll/lx +license: mit +licenses: +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/README.md + text: "`ll` is licensed under the MIT License. See [LICENSE](LICENSE) for details." +notices: [] diff --git a/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter.dep.yml b/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter.dep.yml index ce2e435d..2a25d0b4 100644 --- a/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter.dep.yml +++ b/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter.dep.yml @@ -1,8 +1,9 @@ --- name: github.com/olekukonko/tablewriter -version: v0.0.5 +version: v1.0.6 type: go -summary: Create & Generate text based table +summary: Package tablewriter provides functionality for creating and formatting tables + with customizable configurations. homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter license: mit licenses: @@ -27,4 +28,6 @@ licenses: LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +- sources: README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. notices: [] diff --git a/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml b/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml new file mode 100644 index 00000000..739d65cf --- /dev/null +++ b/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml @@ -0,0 +1,32 @@ +--- +name: github.com/olekukonko/tablewriter/pkg/twwarp +version: v1.0.6 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter/pkg/twwarp +license: mit +licenses: +- sources: tablewriter@v1.0.6/LICENSE.md + text: | + Copyright (C) 2014 by Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +- sources: tablewriter@v1.0.6/README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. +notices: [] diff --git a/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter/renderer.dep.yml b/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter/renderer.dep.yml new file mode 100644 index 00000000..2ddd9b13 --- /dev/null +++ b/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter/renderer.dep.yml @@ -0,0 +1,32 @@ +--- +name: github.com/olekukonko/tablewriter/renderer +version: v1.0.6 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter/renderer +license: mit +licenses: +- sources: tablewriter@v1.0.6/LICENSE.md + text: | + Copyright (C) 2014 by Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +- sources: tablewriter@v1.0.6/README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. +notices: [] diff --git a/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter/tw.dep.yml b/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter/tw.dep.yml new file mode 100644 index 00000000..2594555a --- /dev/null +++ b/.licenses/arduino-lint/go/github.com/olekukonko/tablewriter/tw.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/tablewriter/tw +version: v1.0.6 +type: go +summary: Package tw provides utility functions for text formatting, width calculation, + and string manipulation specifically tailored for table rendering, including handling + ANSI escape codes and Unicode text. +homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter/tw +license: mit +licenses: +- sources: tablewriter@v1.0.6/LICENSE.md + text: | + Copyright (C) 2014 by Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +- sources: tablewriter@v1.0.6/README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. +notices: [] diff --git a/.licenses/docsgen/go/github.com/fatih/color.dep.yml b/.licenses/docsgen/go/github.com/fatih/color.dep.yml new file mode 100644 index 00000000..fa66af7e --- /dev/null +++ b/.licenses/docsgen/go/github.com/fatih/color.dep.yml @@ -0,0 +1,35 @@ +--- +name: github.com/fatih/color +version: v1.15.0 +type: go +summary: Package color is an ANSI color package to output colorized or SGR defined + output to the standard output. +homepage: https://pkg.go.dev/github.com/fatih/color +license: mit +licenses: +- sources: LICENSE.md + text: | + The MIT License (MIT) + + Copyright (c) 2013 Fatih Arslan + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +- sources: README.md + text: The MIT License (MIT) - see [`LICENSE.md`](https://github.com/fatih/color/blob/master/LICENSE.md) + for more details +notices: [] diff --git a/.licenses/docsgen/go/github.com/mattn/go-colorable.dep.yml b/.licenses/docsgen/go/github.com/mattn/go-colorable.dep.yml new file mode 100644 index 00000000..2bc368be --- /dev/null +++ b/.licenses/docsgen/go/github.com/mattn/go-colorable.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/mattn/go-colorable +version: v0.1.13 +type: go +summary: +homepage: https://pkg.go.dev/github.com/mattn/go-colorable +license: mit +licenses: +- sources: LICENSE + text: | + The MIT License (MIT) + + Copyright (c) 2016 Yasuhiro Matsumoto + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: README.md + text: MIT +notices: [] diff --git a/.licenses/docsgen/go/github.com/mattn/go-runewidth.dep.yml b/.licenses/docsgen/go/github.com/mattn/go-runewidth.dep.yml index 5864f57a..5648d220 100644 --- a/.licenses/docsgen/go/github.com/mattn/go-runewidth.dep.yml +++ b/.licenses/docsgen/go/github.com/mattn/go-runewidth.dep.yml @@ -1,6 +1,6 @@ --- name: github.com/mattn/go-runewidth -version: v0.0.15 +version: v0.0.16 type: go summary: homepage: https://pkg.go.dev/github.com/mattn/go-runewidth diff --git a/.licenses/docsgen/go/github.com/olekukonko/errors.dep.yml b/.licenses/docsgen/go/github.com/olekukonko/errors.dep.yml new file mode 100644 index 00000000..786bc686 --- /dev/null +++ b/.licenses/docsgen/go/github.com/olekukonko/errors.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/errors +version: v0.0.0-20250405072817-4e6d85265da6 +type: go +summary: pool.go +homepage: https://pkg.go.dev/github.com/olekukonko/errors +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: README.md + text: MIT License - See [LICENSE](LICENSE). +notices: [] diff --git a/.licenses/docsgen/go/github.com/olekukonko/ll.dep.yml b/.licenses/docsgen/go/github.com/olekukonko/ll.dep.yml new file mode 100644 index 00000000..76806da0 --- /dev/null +++ b/.licenses/docsgen/go/github.com/olekukonko/ll.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/ll +version: v0.0.8-0.20250516010636-22ea57d81985 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/ll +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: README.md + text: "`ll` is licensed under the MIT License. See [LICENSE](LICENSE) for details." +notices: [] diff --git a/.licenses/docsgen/go/github.com/olekukonko/ll/lh.dep.yml b/.licenses/docsgen/go/github.com/olekukonko/ll/lh.dep.yml new file mode 100644 index 00000000..6a1e5896 --- /dev/null +++ b/.licenses/docsgen/go/github.com/olekukonko/ll/lh.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/ll/lh +version: v0.0.8-0.20250516010636-22ea57d81985 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/ll/lh +license: mit +licenses: +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/README.md + text: "`ll` is licensed under the MIT License. See [LICENSE](LICENSE) for details." +notices: [] diff --git a/.licenses/docsgen/go/github.com/olekukonko/ll/lx.dep.yml b/.licenses/docsgen/go/github.com/olekukonko/ll/lx.dep.yml new file mode 100644 index 00000000..32201970 --- /dev/null +++ b/.licenses/docsgen/go/github.com/olekukonko/ll/lx.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/ll/lx +version: v0.0.8-0.20250516010636-22ea57d81985 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/ll/lx +license: mit +licenses: +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/README.md + text: "`ll` is licensed under the MIT License. See [LICENSE](LICENSE) for details." +notices: [] diff --git a/.licenses/docsgen/go/github.com/olekukonko/tablewriter.dep.yml b/.licenses/docsgen/go/github.com/olekukonko/tablewriter.dep.yml index ce2e435d..2a25d0b4 100644 --- a/.licenses/docsgen/go/github.com/olekukonko/tablewriter.dep.yml +++ b/.licenses/docsgen/go/github.com/olekukonko/tablewriter.dep.yml @@ -1,8 +1,9 @@ --- name: github.com/olekukonko/tablewriter -version: v0.0.5 +version: v1.0.6 type: go -summary: Create & Generate text based table +summary: Package tablewriter provides functionality for creating and formatting tables + with customizable configurations. homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter license: mit licenses: @@ -27,4 +28,6 @@ licenses: LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +- sources: README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. notices: [] diff --git a/.licenses/docsgen/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml b/.licenses/docsgen/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml new file mode 100644 index 00000000..739d65cf --- /dev/null +++ b/.licenses/docsgen/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml @@ -0,0 +1,32 @@ +--- +name: github.com/olekukonko/tablewriter/pkg/twwarp +version: v1.0.6 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter/pkg/twwarp +license: mit +licenses: +- sources: tablewriter@v1.0.6/LICENSE.md + text: | + Copyright (C) 2014 by Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +- sources: tablewriter@v1.0.6/README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. +notices: [] diff --git a/.licenses/docsgen/go/github.com/olekukonko/tablewriter/renderer.dep.yml b/.licenses/docsgen/go/github.com/olekukonko/tablewriter/renderer.dep.yml new file mode 100644 index 00000000..2ddd9b13 --- /dev/null +++ b/.licenses/docsgen/go/github.com/olekukonko/tablewriter/renderer.dep.yml @@ -0,0 +1,32 @@ +--- +name: github.com/olekukonko/tablewriter/renderer +version: v1.0.6 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter/renderer +license: mit +licenses: +- sources: tablewriter@v1.0.6/LICENSE.md + text: | + Copyright (C) 2014 by Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +- sources: tablewriter@v1.0.6/README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. +notices: [] diff --git a/.licenses/docsgen/go/github.com/olekukonko/tablewriter/tw.dep.yml b/.licenses/docsgen/go/github.com/olekukonko/tablewriter/tw.dep.yml new file mode 100644 index 00000000..2594555a --- /dev/null +++ b/.licenses/docsgen/go/github.com/olekukonko/tablewriter/tw.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/tablewriter/tw +version: v1.0.6 +type: go +summary: Package tw provides utility functions for text formatting, width calculation, + and string manipulation specifically tailored for table rendering, including handling + ANSI escape codes and Unicode text. +homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter/tw +license: mit +licenses: +- sources: tablewriter@v1.0.6/LICENSE.md + text: | + Copyright (C) 2014 by Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +- sources: tablewriter@v1.0.6/README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. +notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/fatih/color.dep.yml b/.licenses/ruledocsgen/go/github.com/fatih/color.dep.yml new file mode 100644 index 00000000..fa66af7e --- /dev/null +++ b/.licenses/ruledocsgen/go/github.com/fatih/color.dep.yml @@ -0,0 +1,35 @@ +--- +name: github.com/fatih/color +version: v1.15.0 +type: go +summary: Package color is an ANSI color package to output colorized or SGR defined + output to the standard output. +homepage: https://pkg.go.dev/github.com/fatih/color +license: mit +licenses: +- sources: LICENSE.md + text: | + The MIT License (MIT) + + Copyright (c) 2013 Fatih Arslan + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +- sources: README.md + text: The MIT License (MIT) - see [`LICENSE.md`](https://github.com/fatih/color/blob/master/LICENSE.md) + for more details +notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/mattn/go-colorable.dep.yml b/.licenses/ruledocsgen/go/github.com/mattn/go-colorable.dep.yml new file mode 100644 index 00000000..2bc368be --- /dev/null +++ b/.licenses/ruledocsgen/go/github.com/mattn/go-colorable.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/mattn/go-colorable +version: v0.1.13 +type: go +summary: +homepage: https://pkg.go.dev/github.com/mattn/go-colorable +license: mit +licenses: +- sources: LICENSE + text: | + The MIT License (MIT) + + Copyright (c) 2016 Yasuhiro Matsumoto + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: README.md + text: MIT +notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/mattn/go-runewidth.dep.yml b/.licenses/ruledocsgen/go/github.com/mattn/go-runewidth.dep.yml index 5864f57a..5648d220 100644 --- a/.licenses/ruledocsgen/go/github.com/mattn/go-runewidth.dep.yml +++ b/.licenses/ruledocsgen/go/github.com/mattn/go-runewidth.dep.yml @@ -1,6 +1,6 @@ --- name: github.com/mattn/go-runewidth -version: v0.0.15 +version: v0.0.16 type: go summary: homepage: https://pkg.go.dev/github.com/mattn/go-runewidth diff --git a/.licenses/ruledocsgen/go/github.com/olekukonko/errors.dep.yml b/.licenses/ruledocsgen/go/github.com/olekukonko/errors.dep.yml new file mode 100644 index 00000000..786bc686 --- /dev/null +++ b/.licenses/ruledocsgen/go/github.com/olekukonko/errors.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/errors +version: v0.0.0-20250405072817-4e6d85265da6 +type: go +summary: pool.go +homepage: https://pkg.go.dev/github.com/olekukonko/errors +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: README.md + text: MIT License - See [LICENSE](LICENSE). +notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/olekukonko/ll.dep.yml b/.licenses/ruledocsgen/go/github.com/olekukonko/ll.dep.yml new file mode 100644 index 00000000..76806da0 --- /dev/null +++ b/.licenses/ruledocsgen/go/github.com/olekukonko/ll.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/ll +version: v0.0.8-0.20250516010636-22ea57d81985 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/ll +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: README.md + text: "`ll` is licensed under the MIT License. See [LICENSE](LICENSE) for details." +notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/olekukonko/ll/lh.dep.yml b/.licenses/ruledocsgen/go/github.com/olekukonko/ll/lh.dep.yml new file mode 100644 index 00000000..6a1e5896 --- /dev/null +++ b/.licenses/ruledocsgen/go/github.com/olekukonko/ll/lh.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/ll/lh +version: v0.0.8-0.20250516010636-22ea57d81985 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/ll/lh +license: mit +licenses: +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/README.md + text: "`ll` is licensed under the MIT License. See [LICENSE](LICENSE) for details." +notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/olekukonko/ll/lx.dep.yml b/.licenses/ruledocsgen/go/github.com/olekukonko/ll/lx.dep.yml new file mode 100644 index 00000000..32201970 --- /dev/null +++ b/.licenses/ruledocsgen/go/github.com/olekukonko/ll/lx.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/ll/lx +version: v0.0.8-0.20250516010636-22ea57d81985 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/ll/lx +license: mit +licenses: +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/LICENSE + text: | + MIT License + + Copyright (c) 2025 Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- sources: ll@v0.0.8-0.20250516010636-22ea57d81985/README.md + text: "`ll` is licensed under the MIT License. See [LICENSE](LICENSE) for details." +notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter.dep.yml b/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter.dep.yml index ce2e435d..2a25d0b4 100644 --- a/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter.dep.yml +++ b/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter.dep.yml @@ -1,8 +1,9 @@ --- name: github.com/olekukonko/tablewriter -version: v0.0.5 +version: v1.0.6 type: go -summary: Create & Generate text based table +summary: Package tablewriter provides functionality for creating and formatting tables + with customizable configurations. homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter license: mit licenses: @@ -27,4 +28,6 @@ licenses: LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +- sources: README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml b/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml new file mode 100644 index 00000000..739d65cf --- /dev/null +++ b/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/pkg/twwarp.dep.yml @@ -0,0 +1,32 @@ +--- +name: github.com/olekukonko/tablewriter/pkg/twwarp +version: v1.0.6 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter/pkg/twwarp +license: mit +licenses: +- sources: tablewriter@v1.0.6/LICENSE.md + text: | + Copyright (C) 2014 by Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +- sources: tablewriter@v1.0.6/README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. +notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/renderer.dep.yml b/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/renderer.dep.yml new file mode 100644 index 00000000..2ddd9b13 --- /dev/null +++ b/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/renderer.dep.yml @@ -0,0 +1,32 @@ +--- +name: github.com/olekukonko/tablewriter/renderer +version: v1.0.6 +type: go +summary: +homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter/renderer +license: mit +licenses: +- sources: tablewriter@v1.0.6/LICENSE.md + text: | + Copyright (C) 2014 by Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +- sources: tablewriter@v1.0.6/README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. +notices: [] diff --git a/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/tw.dep.yml b/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/tw.dep.yml new file mode 100644 index 00000000..2594555a --- /dev/null +++ b/.licenses/ruledocsgen/go/github.com/olekukonko/tablewriter/tw.dep.yml @@ -0,0 +1,34 @@ +--- +name: github.com/olekukonko/tablewriter/tw +version: v1.0.6 +type: go +summary: Package tw provides utility functions for text formatting, width calculation, + and string manipulation specifically tailored for table rendering, including handling + ANSI escape codes and Unicode text. +homepage: https://pkg.go.dev/github.com/olekukonko/tablewriter/tw +license: mit +licenses: +- sources: tablewriter@v1.0.6/LICENSE.md + text: | + Copyright (C) 2014 by Oleku Konko + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +- sources: tablewriter@v1.0.6/README.md + text: MIT License. See the [LICENSE](LICENSE) file for details. +notices: [] From 5401dc215f995711ca6997536c73b83dc936b1fd Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 19 May 2025 17:04:54 -0700 Subject: [PATCH 4/5] Adjust root module code for `github.com/olekukonko/tablewriter` 1.x API The API of the `github.com/olekukonko/tablewriter` module was completely redesigned prior to the 1.0.0 release. This made it incompatible with the code written for the API of the 0.0.x versions of the module. These code changes are purely refactoring. They do not result in any change to the output of Arduino Lint. The previous version of `github.com/olekukonko/tablewriter` had a bug that caused it to incorrectly add a blank line when the cell content contained an explicit line break. That bug has been fixed, and so the code previously required to work around the bug has been removed. --- internal/result/result.go | 54 ++++++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 12 deletions(-) diff --git a/internal/result/result.go b/internal/result/result.go index 5efbcb9b..10b1141a 100644 --- a/internal/result/result.go +++ b/internal/result/result.go @@ -34,6 +34,8 @@ import ( "github.com/arduino/arduino-lint/internal/rule/ruleresult" "github.com/arduino/go-paths-helper" "github.com/olekukonko/tablewriter" + "github.com/olekukonko/tablewriter/renderer" + "github.com/olekukonko/tablewriter/tw" ) // Results is the global instance of the rule results result.Type struct @@ -126,18 +128,46 @@ func (results *Type) Record(lintedProject project.Type, ruleConfiguration ruleco prefix := fmt.Sprintf("%s: ", level) formattedOutput := &strings.Builder{} - table := tablewriter.NewWriter(formattedOutput) - table.SetBorder(false) - table.SetColumnSeparator("") - table.SetNoWhiteSpace(true) - table.SetColWidth(width - len(prefix)) - table.SetReflowDuringAutoWrap(false) // Reflow removes explicit line breaks. - table.Append([]string{prefix, message}) - table.Render() - // Remove blank lines on explicit line breaks caused by tablewriter bug. - cleanedOutput := blankLineRegexp.ReplaceAllLiteralString(formattedOutput.String(), "\n") - - return cleanedOutput + + tableConfigBuilder := tablewriter.NewConfigBuilder() + // Configure column widths so that the text will be wrapped to the appropriate width. + tableConfigBuilder.ForColumn(0).WithMaxWidth(len(prefix)) + tableConfigBuilder.ForColumn(1).WithMaxWidth(width - len(prefix)) + // A trailing space is intentionally added to the "prefix" string. Trimming must be disabled to preserve that space. + tableConfigBuilder.WithTrimSpace(tw.Off) + tableConfig := tableConfigBuilder.Build() + + tableRendition := tw.Rendition{ + // Do not add border characters to the table. + Borders: tw.BorderNone, + Settings: tw.Settings{ + /* + Do not add a separator character between columns. The trailing space on the "prefix" string serves as the + separator. + */ + Separators: tw.SeparatorsNone, + }, + } + + tableRenderer := renderer.NewBlueprint(tableRendition) + + table := tablewriter.NewTable( + formattedOutput, + tablewriter.WithConfig(tableConfig), + tablewriter.WithRenderer(tableRenderer), + // Do not add margins to the cell content. + tablewriter.WithPadding(tw.PaddingNone), + ) + + if err := table.Append([]string{prefix, message}); err != nil { + panic(err) + } + + if err := table.Render(); err != nil { + panic(err) + } + + return formattedOutput.String() } if configuration.Verbose() { From 5358349af9ac17a54e9436d9b6d0644325facb86 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 19 May 2025 17:06:50 -0700 Subject: [PATCH 5/5] Adjust `ruledocsgen` module code for `github.com/olekukonko/tablewriter` 1.x API The API of the `github.com/olekukonko/tablewriter` module was completely redesigned prior to the 1.0.0 release. This made it incompatible with the code written for the API of the 0.0.x versions of the module. These code changes are purely refactoring. There are some changes to the output (hence the changes in the test data), but these are only insignificant changes to the format of the generated markup, which do not result in any changes to the rendered rules documentation content displayed on the website. --- ruledocsgen/main.go | 39 ++++++++++++++++---- ruledocsgen/testdata/golden/library.md | 6 +-- ruledocsgen/testdata/golden/package-index.md | 2 +- ruledocsgen/testdata/golden/platform.md | 6 +-- ruledocsgen/testdata/golden/sketch.md | 4 +- 5 files changed, 41 insertions(+), 16 deletions(-) diff --git a/ruledocsgen/main.go b/ruledocsgen/main.go index 8d6cec2e..235a883c 100644 --- a/ruledocsgen/main.go +++ b/ruledocsgen/main.go @@ -32,6 +32,8 @@ import ( "github.com/arduino/arduino-lint/internal/rule/rulelevel" "github.com/arduino/go-paths-helper" "github.com/olekukonko/tablewriter" + "github.com/olekukonko/tablewriter/renderer" + "github.com/olekukonko/tablewriter/tw" ) func main() { @@ -102,13 +104,36 @@ Subcategory: {{.Subcategory}} // This is too complex to handle via the template so it is appended to the templated text. levelsData := ruleLevels(ruleConfiguration) var table bytes.Buffer - tableWriter := tablewriter.NewWriter(&table) - tableWriter.SetAutoFormatHeaders(false) - tableWriter.SetHeader(levelsData[0]) - tableWriter.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false}) - tableWriter.SetCenterSeparator("|") - tableWriter.AppendBulk(levelsData[1:]) - tableWriter.Render() + + tableConfig := tablewriter.NewConfigBuilder(). + /* + By default, the tablewriter package makes arbitrary changes to header content. The content is already exactly as + intended. + */ + WithHeaderAutoFormat(tw.Off). + WithHeaderAlignment(tw.AlignLeft). + WithRowAlignment(tw.AlignLeft). + Build() + + tableWriter := tablewriter.NewTable( + &table, + tablewriter.WithConfig(tableConfig), + // Render the table as Markdown markup. + tablewriter.WithRenderer(renderer.NewMarkdown()), + tablewriter.WithAlignment(tw.Alignment{tw.AlignLeft}), + ) + + // Populate table data. + tableWriter.Header(levelsData[0]) + if err := tableWriter.Bulk(levelsData[1:]); err != nil { + panic(err) + } + + // Populate the buffer with the table markup. + if err := tableWriter.Render(); err != nil { + panic(err) + } + if _, err := table.WriteTo(&projectRulesData.content); err != nil { panic(err) } diff --git a/ruledocsgen/testdata/golden/library.md b/ruledocsgen/testdata/golden/library.md index cd989126..27db141a 100644 --- a/ruledocsgen/testdata/golden/library.md +++ b/ruledocsgen/testdata/golden/library.md @@ -16,7 +16,7 @@ Subcategory: general ##### Rule levels | `compliance` | Level | -|---------------|-------| +|:--------------|:------| | permissive | ERROR | | specification | ERROR | | strict | ERROR | @@ -36,8 +36,8 @@ Subcategory: miscellaneous ##### Rule levels -| `compliance` | `library-manager` | Level | -|---------------|-------------------|----------| +| `compliance` | `library-manager` | Level | +|:--------------|:------------------|:---------| | permissive | submit | ERROR | | permissive | update | ERROR | | permissive | false | disabled | diff --git a/ruledocsgen/testdata/golden/package-index.md b/ruledocsgen/testdata/golden/package-index.md index 7ef88137..57a91056 100644 --- a/ruledocsgen/testdata/golden/package-index.md +++ b/ruledocsgen/testdata/golden/package-index.md @@ -16,7 +16,7 @@ Subcategory: package ##### Rule levels | `compliance` | Level | -|---------------|-------| +|:--------------|:------| | permissive | ERROR | | specification | ERROR | | strict | ERROR | diff --git a/ruledocsgen/testdata/golden/platform.md b/ruledocsgen/testdata/golden/platform.md index 3bca9ac1..473eb0b4 100644 --- a/ruledocsgen/testdata/golden/platform.md +++ b/ruledocsgen/testdata/golden/platform.md @@ -16,7 +16,7 @@ Subcategory: boards.txt ##### Rule levels | `compliance` | Level | -|---------------|-------| +|:--------------|:------| | permissive | ERROR | | specification | ERROR | | strict | ERROR | @@ -36,8 +36,8 @@ Subcategory: boards.txt ##### Rule levels -| `compliance` | Level | -|---------------|---------| +| `compliance` | Level | +|:--------------|:--------| | permissive | WARNING | | specification | WARNING | | strict | ERROR | diff --git a/ruledocsgen/testdata/golden/sketch.md b/ruledocsgen/testdata/golden/sketch.md index e8653fe8..d17a55b0 100644 --- a/ruledocsgen/testdata/golden/sketch.md +++ b/ruledocsgen/testdata/golden/sketch.md @@ -15,8 +15,8 @@ Subcategory: root folder ##### Rule levels -| `compliance` | Level | -|---------------|---------| +| `compliance` | Level | +|:--------------|:--------| | permissive | WARNING | | specification | ERROR | | strict | ERROR |