Skip to content

Commit 00a5231

Browse files
committedJan 23, 2025··
simian
1 parent ea5712d commit 00a5231

File tree

12 files changed

+122
-9
lines changed

12 files changed

+122
-9
lines changed
 

‎.github/workflows/actionlint.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# The MIT License (MIT)
2+
#
3+
# Copyright (c) 2017-2025 Yegor Bugayenko
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included
13+
# in all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
---
23+
name: actionlint
24+
'on':
25+
push:
26+
branches:
27+
- master
28+
pull_request:
29+
branches:
30+
- master
31+
jobs:
32+
actionlint:
33+
runs-on: ubuntu-24.04
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Download actionlint
37+
id: get_actionlint
38+
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
39+
shell: bash
40+
- name: Check workflow files
41+
run: ${{ steps.get_actionlint.outputs.executable }} -color
42+
shell: bash

‎.github/workflows/simian.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# The MIT License (MIT)
2+
#
3+
# Copyright (c) 2017-2025 Yegor Bugayenko
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included
13+
# in all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
---
23+
name: simian
24+
on:
25+
push:
26+
branches:
27+
- master
28+
pull_request:
29+
branches:
30+
- master
31+
jobs:
32+
simian:
33+
runs-on: ubuntu-24.04
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-java@v4
37+
with:
38+
distribution: 'temurin'
39+
java-version: 17
40+
- run: wget --quiet http://public.yegor256.com/simian.jar -O /tmp/simian.jar
41+
- run: java -jar /tmp/simian.jar -threshold=15 "-excludes=**/EOsocketTest.java" "-excludes=**/gen" "-excludes=**/it" "**/*.java"

‎.github/workflows/yamllint.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# The MIT License (MIT)
2+
#
3+
# Copyright (c) 2017-2025 Yegor Bugayenko
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"), to deal
7+
# in the Software without restriction, including without limitation the rights
8+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
# copies of the Software, and to permit persons to whom the Software is
10+
# furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included
13+
# in all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
18+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
# SOFTWARE.
22+
---
23+
name: yamllint
24+
'on':
25+
push:
26+
branches:
27+
- master
28+
pull_request:
29+
branches:
30+
- master
31+
jobs:
32+
yamllint:
33+
runs-on: ubuntu-24.04
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: ibiqlik/action-yamllint@v3

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ target/
66
.settings
77
.classpath
88
.recommenders
9-
/nbproject/
9+
/nbproject/

‎src/main/java/org/cactoos/text/PaddedStart.java

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ public PaddedStart(
5757
);
5858
}
5959
}
60-

‎src/main/java/org/cactoos/time/Iso.java

-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ public DateTimeFormatter value() {
3838
}
3939

4040
}
41-

‎src/test/java/org/cactoos/io/SlowInputTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,3 @@ void readsFileContentSlowly() {
6868
}
6969

7070
}
71-

‎src/test/java/org/cactoos/iterable/PagedTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,3 @@ void throwsNoSuchElement() {
118118
}
119119

120120
}
121-

‎src/test/java/org/cactoos/iterator/PagedTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,3 @@ void throwsNoSuchElement() {
136136
).affirm();
137137
}
138138
}
139-

‎src/test/java/org/cactoos/text/PaddedStartTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,3 @@ void noPaddingIfRequestedLengthIsNegative() {
7474
).affirm();
7575
}
7676
}
77-
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
That file is used for digest calculation with different algorithms, so please DO NOT CHANGE IT. If you DO, then make sure all tests of DigestInvelope are passed.
1+
That file is used for digest calculation with different algorithms, so please DO NOT CHANGE IT. If you DO, then make sure all tests of DigestInvelope are passed.

‎src/test/resources/org/cactoos/small-text.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
44
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
55
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
66
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
7-
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
7+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

0 commit comments

Comments
 (0)
Please sign in to comment.