From afbc9f5b8cd268fa72821662c355863972d33550 Mon Sep 17 00:00:00 2001 From: uchitsa Date: Sun, 29 Dec 2024 03:29:05 +0300 Subject: [PATCH 01/11] fix quality warnings --- eo-runtime/src/main/eo/org/eolang/math/angle.eo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo-runtime/src/main/eo/org/eolang/math/angle.eo b/eo-runtime/src/main/eo/org/eolang/math/angle.eo index b1e9d1640b..ee4d304714 100644 --- a/eo-runtime/src/main/eo/org/eolang/math/angle.eo +++ b/eo-runtime/src/main/eo/org/eolang/math/angle.eo @@ -31,7 +31,7 @@ # The angle. [value] > angle value > @ - # Converts this from radians to degrees + # Converts this from radians to degrees. angle > in-degrees div. ^.times 180.0 From dcdac4abf5c13dfc1192420641817b2073291694 Mon Sep 17 00:00:00 2001 From: uchitsa Date: Sun, 29 Dec 2024 03:29:24 +0300 Subject: [PATCH 02/11] fix quality warnings --- eo-runtime/src/main/eo/org/eolang/math/angle.eo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo-runtime/src/main/eo/org/eolang/math/angle.eo b/eo-runtime/src/main/eo/org/eolang/math/angle.eo index ee4d304714..3e87bd39f9 100644 --- a/eo-runtime/src/main/eo/org/eolang/math/angle.eo +++ b/eo-runtime/src/main/eo/org/eolang/math/angle.eo @@ -36,7 +36,7 @@ div. ^.times 180.0 pi - # Converts this from degrees to radians + # Converts this from degrees to radians. angle > in-radians div. $.times pi From d4e7bf43753c48e450d953f27ee80c110a09459b Mon Sep 17 00:00:00 2001 From: uchitsa Date: Sun, 29 Dec 2024 03:30:27 +0300 Subject: [PATCH 03/11] fix quality warnings --- eo-runtime/src/main/eo/org/eolang/structs/list.eo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eo-runtime/src/main/eo/org/eolang/structs/list.eo b/eo-runtime/src/main/eo/org/eolang/structs/list.eo index f0c34ddbc2..a35c166711 100644 --- a/eo-runtime/src/main/eo/org/eolang/structs/list.eo +++ b/eo-runtime/src/main/eo/org/eolang/structs/list.eo @@ -169,7 +169,7 @@ accum.with item > [accum item] # Returns index of the first particular item in list. - # If the list has no this item, index-of returns -1 + # If the list has no this item, index-of returns -1. [wanted] > index-of ^.reducedi > @ -1 @@ -182,7 +182,7 @@ accum # Returns index of the last particular item in list. - # If the list has no this item, returns -1 + # If the list has no this item, returns -1. [wanted] > last-index-of ^.reducedi > @ -1 From ba99e2e8526c1217a2e0f4df98b5d8a91bdcef43 Mon Sep 17 00:00:00 2001 From: uchitsa Date: Sun, 29 Dec 2024 03:30:35 +0300 Subject: [PATCH 04/11] fix quality warnings --- eo-runtime/src/main/eo/org/eolang/txt/text.eo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo-runtime/src/main/eo/org/eolang/txt/text.eo b/eo-runtime/src/main/eo/org/eolang/txt/text.eo index c70255859f..4aa44995cb 100644 --- a/eo-runtime/src/main/eo/org/eolang/txt/text.eo +++ b/eo-runtime/src/main/eo/org/eolang/txt/text.eo @@ -178,7 +178,7 @@ ^.index-of substring # Returns index of `substring` in current `text`. - # If no `substring` was found, it returns -1 + # If no `substring` was found, it returns -1. [substring] > index-of (string ^.origin.as-bytes).length > self-len! string > substr From 2ed8bf8c1637b7282a1ab09daa01cb4abeb7ba23 Mon Sep 17 00:00:00 2001 From: uchitsa Date: Sun, 29 Dec 2024 03:30:52 +0300 Subject: [PATCH 05/11] fix quality warnings --- eo-runtime/src/main/eo/org/eolang/negative-infinity.eo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo-runtime/src/main/eo/org/eolang/negative-infinity.eo b/eo-runtime/src/main/eo/org/eolang/negative-infinity.eo index fc876453d6..2a6c542f26 100644 --- a/eo-runtime/src/main/eo/org/eolang/negative-infinity.eo +++ b/eo-runtime/src/main/eo/org/eolang/negative-infinity.eo @@ -95,7 +95,7 @@ nan ^ - # Quotient of the division of $ by x + # Quotient of the division of $ by x. [x] > div x > value! number value > num From 839788d3e3aa3721a8f0f2642f3dfc76fcc74865 Mon Sep 17 00:00:00 2001 From: uchitsa Date: Fri, 3 Jan 2025 02:28:57 +0300 Subject: [PATCH 06/11] failOnWarning switch on --- eo-runtime/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eo-runtime/pom.xml b/eo-runtime/pom.xml index 6f8e8c49f7..e6e2fdd76d 100644 --- a/eo-runtime/pom.xml +++ b/eo-runtime/pom.xml @@ -220,7 +220,7 @@ SOFTWARE. ${project.build.directory}/eo-foreign.csv csv - false + true true ${project.build.directory}/eo/unphi @@ -271,7 +271,7 @@ SOFTWARE. ${project.build.directory}/eo-test/unphi false true - false + true ${project.build.directory}/generated-test-sources false true From 8423efc3e7d7d550a303beb7937f05c2d9499dbe Mon Sep 17 00:00:00 2001 From: uchitsa Date: Wed, 8 Jan 2025 03:37:11 +0300 Subject: [PATCH 07/11] fix quality warnings --- eo-runtime/src/main/eo/org/eolang/nan.eo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eo-runtime/src/main/eo/org/eolang/nan.eo b/eo-runtime/src/main/eo/org/eolang/nan.eo index 7d3d051e35..383308464f 100644 --- a/eo-runtime/src/main/eo/org/eolang/nan.eo +++ b/eo-runtime/src/main/eo/org/eolang/nan.eo @@ -41,19 +41,19 @@ # Tests that $ < x. false > [x] > lt - # Tests that $ <= x. + # Tests that $ less or equal than x. false > [x] > lte # Tests that $ > x. false > [x] > gt - # Tests that $ >= x. + # Tests that $ greater or equal than x. false > [x] > gte # Returns the multiplication of $ and x. ^ > [x] > times - # Sum of $ and x. + # Returns the result of the sum of $ and x. ^ > [x] > plus # Returns the difference between $ and x. From 72d480b492f2dadbe5ee479f3e50a406ccd39376 Mon Sep 17 00:00:00 2001 From: uchitsa Date: Wed, 8 Jan 2025 03:46:34 +0300 Subject: [PATCH 08/11] fix quality warnings --- eo-runtime/src/main/eo/org/eolang/nan.eo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eo-runtime/src/main/eo/org/eolang/nan.eo b/eo-runtime/src/main/eo/org/eolang/nan.eo index 383308464f..d9634fed10 100644 --- a/eo-runtime/src/main/eo/org/eolang/nan.eo +++ b/eo-runtime/src/main/eo/org/eolang/nan.eo @@ -25,7 +25,8 @@ +package org.eolang +version 0.0.0 -# Not a number. +# The `not a number` object is an abstraction +# for representing undefined or unrepresentable numerical results. [] > nan number 7F-F8-00-00-00-00-00-00 > @ $ > floor From 23491e97c2ea4e906a09ff20f5d273d054291f83 Mon Sep 17 00:00:00 2001 From: uchitsa Date: Wed, 8 Jan 2025 03:47:08 +0300 Subject: [PATCH 09/11] fix quality warnings --- eo-runtime/src/main/eo/org/eolang/nan.eo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eo-runtime/src/main/eo/org/eolang/nan.eo b/eo-runtime/src/main/eo/org/eolang/nan.eo index d9634fed10..41fdcf0722 100644 --- a/eo-runtime/src/main/eo/org/eolang/nan.eo +++ b/eo-runtime/src/main/eo/org/eolang/nan.eo @@ -36,7 +36,7 @@ false > is-integer error "Can't convert NaN to i64" > as-i64 - # Tests that $ = x. + # Tests that $ value is equal to x. false > [x] > eq # Tests that $ < x. @@ -45,7 +45,7 @@ # Tests that $ less or equal than x. false > [x] > lte - # Tests that $ > x. + # Tests that $ value greater than x. false > [x] > gt # Tests that $ greater or equal than x. From 099c43106e69f359df72c8f37dceaba2f9d664d7 Mon Sep 17 00:00:00 2001 From: uchitsa Date: Wed, 8 Jan 2025 03:48:25 +0300 Subject: [PATCH 10/11] fix quality warnings --- eo-runtime/src/main/eo/org/eolang/nan.eo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo-runtime/src/main/eo/org/eolang/nan.eo b/eo-runtime/src/main/eo/org/eolang/nan.eo index 41fdcf0722..5784e5f18a 100644 --- a/eo-runtime/src/main/eo/org/eolang/nan.eo +++ b/eo-runtime/src/main/eo/org/eolang/nan.eo @@ -39,7 +39,7 @@ # Tests that $ value is equal to x. false > [x] > eq - # Tests that $ < x. + # Tests that the value $ less than x. false > [x] > lt # Tests that $ less or equal than x. From 1ece47620476eb5ea5cc4f52194e647956a4705e Mon Sep 17 00:00:00 2001 From: uchitsa Date: Wed, 8 Jan 2025 03:50:27 +0300 Subject: [PATCH 11/11] failOnWarning --- eo-runtime/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eo-runtime/pom.xml b/eo-runtime/pom.xml index e6e2fdd76d..6f8e8c49f7 100644 --- a/eo-runtime/pom.xml +++ b/eo-runtime/pom.xml @@ -220,7 +220,7 @@ SOFTWARE. ${project.build.directory}/eo-foreign.csv csv - true + false true ${project.build.directory}/eo/unphi @@ -271,7 +271,7 @@ SOFTWARE. ${project.build.directory}/eo-test/unphi false true - true + false ${project.build.directory}/generated-test-sources false true