Skip to content

Commit

Permalink
simian
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 23, 2025
1 parent ea5712d commit 00a5231
Show file tree
Hide file tree
Showing 12 changed files with 122 additions and 9 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# The MIT License (MIT)
#
# Copyright (c) 2017-2025 Yegor Bugayenko
#
# 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 NON-INFRINGEMENT. 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.
---
name: actionlint
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
actionlint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash
41 changes: 41 additions & 0 deletions .github/workflows/simian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# The MIT License (MIT)
#
# Copyright (c) 2017-2025 Yegor Bugayenko
#
# 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 NON-INFRINGEMENT. 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.
---
name: simian
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
simian:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- run: wget --quiet http://public.yegor256.com/simian.jar -O /tmp/simian.jar
- run: java -jar /tmp/simian.jar -threshold=15 "-excludes=**/EOsocketTest.java" "-excludes=**/gen" "-excludes=**/it" "**/*.java"
36 changes: 36 additions & 0 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# The MIT License (MIT)
#
# Copyright (c) 2017-2025 Yegor Bugayenko
#
# 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 NON-INFRINGEMENT. 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.
---
name: yamllint
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
yamllint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ibiqlik/action-yamllint@v3
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ target/
.settings
.classpath
.recommenders
/nbproject/
/nbproject/
1 change: 0 additions & 1 deletion src/main/java/org/cactoos/text/PaddedStart.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ public PaddedStart(
);
}
}

1 change: 0 additions & 1 deletion src/main/java/org/cactoos/time/Iso.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ public DateTimeFormatter value() {
}

}

1 change: 0 additions & 1 deletion src/test/java/org/cactoos/io/SlowInputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,3 @@ void readsFileContentSlowly() {
}

}

1 change: 0 additions & 1 deletion src/test/java/org/cactoos/iterable/PagedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,3 @@ void throwsNoSuchElement() {
}

}

1 change: 0 additions & 1 deletion src/test/java/org/cactoos/iterator/PagedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,3 @@ void throwsNoSuchElement() {
).affirm();
}
}

1 change: 0 additions & 1 deletion src/test/java/org/cactoos/text/PaddedStartTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@ void noPaddingIfRequestedLengthIsNegative() {
).affirm();
}
}

2 changes: 1 addition & 1 deletion src/test/resources/org/cactoos/digest-calculation.txt
Original file line number Diff line number Diff line change
@@ -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.
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.
2 changes: 1 addition & 1 deletion src/test/resources/org/cactoos/small-text.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

0 comments on commit 00a5231

Please sign in to comment.