Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e123ca1
tests: properly test `Isomorphic` (#6259)
raveendra11 Jun 3, 2025
27a7740
style: include `SLS_SUSPICIOUS_LOOP_SEARCH` (#6260)
vil02 Jun 4, 2025
ec6f09c
chore: suppress `rawtypes` in selected classes (#6261)
vil02 Jun 5, 2025
7602f1e
chore: suppress `unchecked` in selected classes (#6262)
vil02 Jun 5, 2025
ed4a724
Bump org.junit:junit-bom from 5.13.0 to 5.13.1 (#6278)
dependabot[bot] Jun 10, 2025
e41c2b9
Add Unit Tests for Empty and Single-Node Graphs in TopologicalSort (#…
Saipatnaik-23 Jun 10, 2025
20f0492
chore: configure PMD to detect `main` methods (#6289)
vil02 Jun 11, 2025
0b21bb0
Add Boyer-Moore string search algorithm with JUnit tests (#6274)
PauLopNun Jun 11, 2025
1745d19
refactor: unified duplicate Anagram classes into a single implementat…
DenizAltunkapan Jun 11, 2025
b427b40
chore: monitor structure of the project (#6291)
vil02 Jun 12, 2025
a21abe6
chore: add `security` ruleset to PMD (#6292)
vil02 Jun 14, 2025
616d15a
Shortest coprime segment using sliding window technique (#6296)
DomTr Jun 18, 2025
ae71861
chore(deps): bump com.mebigfatguy.fb-contrib:fb-contrib from 7.6.10 t…
dependabot[bot] Jun 18, 2025
13d8a28
Update DIRECTORY.md with Newly Added Files (#6302)
Rahul-18r Jun 20, 2025
83bc063
chore: perform CodeQL scan on actions (#6309)
vil02 Jun 25, 2025
bb71ae2
chore(deps): bump com.github.spotbugs:spotbugs-maven-plugin from 4.9.…
dependabot[bot] Jun 25, 2025
a91ad20
chore(deps): bump org.junit:junit-bom from 5.13.1 to 5.13.2 (#6314)
dependabot[bot] Jun 25, 2025
428d259
chore(deps): bump gitpod/workspace-java-21 from 2025-05-14-07-50-25 t…
dependabot[bot] Jun 25, 2025
5529cb2
chore: explicitly set permissions (#6316)
vil02 Jun 25, 2025
ba0b0c4
chore(deps): bump com.puppycrawl.tools:checkstyle from 10.25.0 to 10.…
dependabot[bot] Jun 25, 2025
a8ad162
chore(deps): bump org.apache.maven.plugins:maven-pmd-plugin from 3.26…
dependabot[bot] Jun 25, 2025
981d73d
chore(deps): bump com.github.spotbugs:spotbugs-maven-plugin from 4.9.…
dependabot[bot] Jun 28, 2025
67ccb62
Modernize GitHub Action to auto-generate DIRECTORY.md (#6308)
DenizAltunkapan Jun 29, 2025
d14873f
Automatically create pull requests for directory updates (#6322)
DenizAltunkapan Jun 29, 2025
e43a1f7
Update update-directorymd.yml using PAT (#6324)
DenizAltunkapan Jun 29, 2025
d06fe8b
Update update-directorymd.yml (#6326)
DenizAltunkapan Jun 29, 2025
617412e
delete workflows from update-directorymd.yml (#6327)
DenizAltunkapan Jun 29, 2025
9abf4e3
Update DIRECTORY.md (#6328)
DenizAltunkapan Jun 30, 2025
bb36d13
Add RR cache (#6307)
KevinMwita7 Jun 30, 2025
7da9c6d
Update DIRECTORY.md (#6329)
DenizAltunkapan Jun 30, 2025
55d08d6
chore(deps): bump com.puppycrawl.tools:checkstyle from 10.26.0 to 10.…
dependabot[bot] Jun 30, 2025
ebf5c3d
chore(deps): bump peter-evans/create-pull-request from 5 to 7 in /.gi…
dependabot[bot] Jul 1, 2025
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
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build
on: [push, pull_request]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/clang-format-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push: {}
pull_request: {}

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
33 changes: 26 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ on:
schedule:
- cron: '53 3 * * 0'

env:
LANGUAGE: 'java-kotlin'

jobs:
analyze:
name: Analyze
analyzeJava:
name: AnalyzeJava
runs-on: 'ubuntu-latest'
permissions:
actions: read
Expand All @@ -35,13 +32,35 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ env.LANGUAGE }}
languages: 'java-kotlin'

- name: Build
run: mvn --batch-mode --update-snapshots verify

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{env.LANGUAGE}}"
category: "/language:java-kotlin"

analyzeActions:
name: AnalyzeActions
runs-on: 'ubuntu-latest'
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'actions'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:actions"
...
3 changes: 3 additions & 0 deletions .github/workflows/infer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ name: Infer
- master
pull_request:

permissions:
contents: read

jobs:
run_infer:
runs-on: ubuntu-latest
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/project_structure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: ProjectStructure

'on':
workflow_dispatch:
push:
branches:
- master
pull_request:

permissions:
contents: read

jobs:
check_structure:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Check project structure
run: python3 .github/workflows/scripts/check_structure.py
...
27 changes: 27 additions & 0 deletions .github/workflows/scripts/check_structure.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import pathlib
import sys


def _is_java_file_properly_located(java_file: pathlib.Path) -> bool:
main_parents = java_file.parent.parents
return (
pathlib.Path("src/main/java/com/thealgorithms/") in main_parents
or pathlib.Path("src/test/java/com/thealgorithms/") in main_parents
)


def _find_misplaced_java_files() -> list[pathlib.Path]:
return [
java_file
for java_file in pathlib.Path(".").rglob("*.java")
if not _is_java_file_properly_located(java_file)
]


if __name__ == "__main__":
misplaced_files = _find_misplaced_java_files()
if misplaced_files:
print("The following java files are not located in the correct directory:")
for _ in misplaced_files:
print(_)
sys.exit(1)
5 changes: 5 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
stale:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/update-directorymd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Generate Directory Markdown

on:
push:
branches: [master]
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
generate-directory:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run Directory Tree Generator
uses: DenizAltunkapan/directory-tree-generator@v2
with:
path: src
extensions: .java
show-extensions: false

- name: Commit changes
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add DIRECTORY.md
git diff --cached --quiet || git commit -m "Update DIRECTORY.md"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
branch: update-directory
base: master
title: "Update DIRECTORY.md"
body: "Automatically generated update of the directory tree."
commit-message: "Update DIRECTORY.md"
draft: false
92 changes: 0 additions & 92 deletions .github/workflows/update_directory.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gitpod/workspace-java-21:2025-05-14-07-50-25
FROM gitpod/workspace-java-21:2025-06-18-16-47-14

ENV LLVM_SCRIPT="tmp_llvm.sh"

Expand Down
Loading
Loading