From b97b240f0b010c098b213411ec352e0e2c1bcfa9 Mon Sep 17 00:00:00 2001 From: "banno-diy-steward[bot]" <407453+banno-diy-steward[bot]@users.noreply.github.com> Date: Tue, 24 Oct 2023 12:08:01 +0000 Subject: [PATCH 1/4] Update scalafmt-core to 3.7.15 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index a765797..df6271c 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.7.1 +version = 3.7.15 runner.dialect = scala213 fileOverride { From 0cc03dbc798f56066c0771b56f7eb2101f942713 Mon Sep 17 00:00:00 2001 From: "banno-diy-steward[bot]" <407453+banno-diy-steward[bot]@users.noreply.github.com> Date: Tue, 24 Oct 2023 12:08:04 +0000 Subject: [PATCH 2/4] Reformat with scalafmt 3.7.15 Executed command: scalafmt --non-interactive --- input/src/main/scala/fix/NoRsaWithoutPadding.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/input/src/main/scala/fix/NoRsaWithoutPadding.scala b/input/src/main/scala/fix/NoRsaWithoutPadding.scala index 9c87dde..e46b5f0 100644 --- a/input/src/main/scala/fix/NoRsaWithoutPadding.scala +++ b/input/src/main/scala/fix/NoRsaWithoutPadding.scala @@ -6,12 +6,16 @@ package fix import javax.crypto.Cipher object NoRsaWithoutPadding { - Cipher.getInstance("RSA/None/NoPadding") /* assert: NoRsaWithoutPadding.noRsaWithoutPadding + Cipher.getInstance( + "RSA/None/NoPadding" + ) /* assert: NoRsaWithoutPadding.noRsaWithoutPadding ^^^^^^^^^^^^^^^^^^^^ Using RSA without OAE padding may weaken encryption. Use `OAEPWithMD5AndMGF1Padding` instead. */ - Cipher.getInstance("RSA/ECB/NoPadding") /* assert: NoRsaWithoutPadding.noRsaWithoutPadding + Cipher.getInstance( + "RSA/ECB/NoPadding" + ) /* assert: NoRsaWithoutPadding.noRsaWithoutPadding ^^^^^^^^^^^^^^^^^^^ Using RSA without OAE padding may weaken encryption. Use `OAEPWithMD5AndMGF1Padding` instead. */ From 4f3ef0ee124c402af4e275acc4c9e6c0054ce28f Mon Sep 17 00:00:00 2001 From: "banno-diy-steward[bot]" <407453+banno-diy-steward[bot]@users.noreply.github.com> Date: Tue, 24 Oct 2023 12:08:04 +0000 Subject: [PATCH 3/4] Add 'Reformat with scalafmt 3.7.15' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..ffbae2b --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.7.15 +0cc03dbc798f56066c0771b56f7eb2101f942713 From fb563951db203bca1082ccfde4c8dcf53d3bec10 Mon Sep 17 00:00:00 2001 From: Sam Pillsworth Date: Wed, 25 Oct 2023 14:59:22 -0400 Subject: [PATCH 4/4] longer maxColumn; don't reformat the tests --- .scalafmt.conf | 2 ++ input/src/main/scala/fix/NoRsaWithoutPadding.scala | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index df6271c..dfa48f7 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -6,3 +6,5 @@ fileOverride { runner.dialect = scala3 } } + +maxColumn = 100 diff --git a/input/src/main/scala/fix/NoRsaWithoutPadding.scala b/input/src/main/scala/fix/NoRsaWithoutPadding.scala index e46b5f0..c708d82 100644 --- a/input/src/main/scala/fix/NoRsaWithoutPadding.scala +++ b/input/src/main/scala/fix/NoRsaWithoutPadding.scala @@ -5,17 +5,14 @@ package fix import javax.crypto.Cipher +// object NoRsaWithoutPadding { - Cipher.getInstance( - "RSA/None/NoPadding" - ) /* assert: NoRsaWithoutPadding.noRsaWithoutPadding + Cipher.getInstance("RSA/None/NoPadding") /* assert: NoRsaWithoutPadding.noRsaWithoutPadding ^^^^^^^^^^^^^^^^^^^^ Using RSA without OAE padding may weaken encryption. Use `OAEPWithMD5AndMGF1Padding` instead. */ - Cipher.getInstance( - "RSA/ECB/NoPadding" - ) /* assert: NoRsaWithoutPadding.noRsaWithoutPadding + Cipher.getInstance("RSA/ECB/NoPadding") /* assert: NoRsaWithoutPadding.noRsaWithoutPadding ^^^^^^^^^^^^^^^^^^^ Using RSA without OAE padding may weaken encryption. Use `OAEPWithMD5AndMGF1Padding` instead. */