Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions eo-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,20 @@
skip entry entirely once the lint is removed from the lints repo.
-->
<lint>idempotent-attribute-is-not-first</lint>
<!--
@todo #5221:60min Enable `wrong-test-order` lint.
The lint fires as a false positive when anonymous `>>` objects from
the main body are floated past tests by vars-float-up transformation.
Enable once objectionary/lints#954 is resolved.
-->

Check warning on line 278 in eo-runtime/pom.xml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=objectionary_eo&issues=AZ7LV4lK9WZG9ofhbLWT&open=AZ7LV4lK9WZG9ofhbLWT&pullRequest=5222
<lint>wrong-test-order</lint>
<!--
@todo #5221:30min Enable `compound-name` lint.
Several objects in eo-runtime use compound names that follow system
or platform naming conventions (e.g. neg-inf, groups-count, sin-family).
Either rename the objects or adjust the lint rule, then enable it.
-->

Check warning on line 285 in eo-runtime/pom.xml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=objectionary_eo&issues=AZ7LV4lK9WZG9ofhbLWU&open=AZ7LV4lK9WZG9ofhbLWU&pullRequest=5222
<lint>compound-name</lint>
</skipSourceLints>
<skipProgramLints>
<lint>inconsistent-args</lint>
Expand Down
1 change: 0 additions & 1 deletion eo-runtime/src/main/eo/fs/path.eo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
+spdx SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com
+spdx SPDX-License-Identifier: MIT
+unlint redundant-object
+unlint ascii-only

# A `path` represents a path that is hierarchical and composed of a sequence of
# directory and file name elements separated by a special separator or delimiter.
Expand Down
4 changes: 2 additions & 2 deletions eo-runtime/src/main/eo/io/input-as-bytes.eo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+alias io.copied
+alias io.malloc-as-output
+alias io.bytes-as-input
+alias io.copied
+alias io.dead-input
+alias io.malloc-as-output
+architect yegor256@gmail.com
+home https://github.com/objectionary/eo
+package io
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/main/eo/ms/sqrt.eo
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
sqrt 0.0
0.0

# Tests that sqrt of one is one.
# Tests that the sqrt of one equals one.
[] +> tests-sqrt-one
eq. > @
sqrt 1.0
Expand Down
1 change: 0 additions & 1 deletion eo-runtime/src/main/eo/nan.eo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
+version 0.0.0
+spdx SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com
+spdx SPDX-License-Identifier: MIT
+unlint redundant-object
+unlint mandatory-package

# The `not a number` object is an abstraction
Expand Down
2 changes: 0 additions & 2 deletions eo-runtime/src/main/eo/negative-infinity.eo
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
+version 0.0.0
+spdx SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com
+spdx SPDX-License-Identifier: MIT
+unlint compound-name
+unlint redundant-object
+unlint mandatory-package

# Negative infinity.
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/main/eo/number.eo
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
# For non-finite values (`nan`, `+inf`, `-inf`) the input is returned
# unchanged. For finite inputs we truncate toward zero via `as-i64`,
# which matches mathematical floor for every value except negative
# non-integers where the truncated result is strictly greater than
# non-integers - where the truncated result is strictly greater than
# the original, so we subtract `1` in that single case.
[] > floor
if. > @
Expand Down
2 changes: 0 additions & 2 deletions eo-runtime/src/main/eo/positive-infinity.eo
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
+version 0.0.0
+spdx SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com
+spdx SPDX-License-Identifier: MIT
+unlint compound-name
+unlint redundant-object
+unlint mandatory-package

# Positive infinity.
Expand Down
9 changes: 5 additions & 4 deletions eo-runtime/src/main/eo/tt/as-ascii.eo
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# The byte of `char` is left-padded with a zero byte into a 16-bit word,
# read as an integer and then expressed as a number.
[char] > as-ascii
word.as-i16.as-number > @
concat. > word
00-
char.as-bytes
as-number. > @
as-i16.
concat.
00-
char.as-bytes

# Tests that as-ascii reads the code of an uppercase letter.
[] +> tests-reads-code-of-uppercase-letter
Expand Down
Loading