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
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{java,json,xml,md,markdown}]
[*.{java,json,xml,md,markdown,toml}]
indent_style = space
indent_size = 2
ij_continuation_indent_size = 4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- "temurin"

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive

Expand All @@ -31,7 +31,7 @@ jobs:
gpg --list-secret-keys --keyid-format LONG

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_publish-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive

Expand All @@ -23,7 +23,7 @@ jobs:
gpg --list-secret-keys --keyid-format LONG

- name: Set up JDK
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: "11"
distribution: "adopt"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
name: Publish Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive

- name: Set up JDK
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: "11"
distribution: "temurin"
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/_static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,35 @@ jobs:
name: Check Code Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0

- name: Run Betterleaks
id: betterleaks
continue-on-error: true
Comment thread
ianardee marked this conversation as resolved.
# version 0.1.0
uses: dortort/betterleaks-action@cd0b905aa4befb8f42f8b1ab98150180c9e77515
with:
version: "v1.9.0"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Betterleaks report
if: always()
uses: actions/upload-artifact@v7
with:
name: betterleaks-report
path: betterleaks-report.sarif
if-no-files-found: warn

# NEEDS POWER-WASHING GIT HISTORY, DO DIRECTLY IN MAIN
# - name: Fail if Betterleaks found leaks
# if: steps.betterleaks.outcome == 'failure'
# run: exit 1

- name: Set up JDK
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: "11"
distribution: "temurin"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_test-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
- "temurin"

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_test-code-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
- "temurin"

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_test-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
- "temurin"

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: recursive

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
* :sparkles: add support for textContext parameter in V2
* :sparkles: add support for data_schema property
### Fixes
* :bug: fix for missing data_schema property in active options
* :bug: fix for missing data_schema property in active options


## v4.37.0 - 2025-10-28
Expand Down Expand Up @@ -596,7 +596,7 @@

## v3.0.0 - 2023-01-16
### ¡Breaking Changes!
* :recycle: Mindee class become MindeeClient
* :recycle: Mindee class become MindeeClient
* :recycle: enable the possibility to use your own pdf implementation
* :recycle: improve the creation of MindeeClient and reduce deps
### Changes
Expand Down
30 changes: 30 additions & 0 deletions prek.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[[repos]]
repo = "https://github.com/betterleaks/betterleaks"
rev = "v1.9.0"
hooks = [
{ id = "betterleaks" }
]

[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
hooks = [
{ id = "trailing-whitespace" },
{ id = "end-of-file-fixer" },
{ id = "check-yaml" },
{ id = "check-xml" }
]

[[repos]]
repo = "local"
hooks = [
{
id = "maven-lint",
name = "Maven Spotless and PMD",
entry = "mvn",
args = ["spotless:apply", "pmd:check"],
language = "system",
files = "\\.java$",
pass_filenames = false
}
Comment thread
ianardee marked this conversation as resolved.
]
4 changes: 2 additions & 2 deletions src/main/java/com/mindee/input/PageOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class PageOptions {

/**
* Default constructor.
*
*
* @deprecated Use the Builder pattern instead.
*/
@Deprecated
Expand All @@ -39,7 +39,7 @@ public PageOptions(List<Integer> pages) {

/**
* Constructor with operation.
*
*
* @deprecated Use the Builder pattern instead.
*/
@Deprecated
Expand Down
Loading