Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: introduce cli for invoking spotless from shell without any build tool#2419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
simschla wants to merge21 commits intodiffplug:main
base:main
Choose a base branch
Loading
fromsimschla:feature/introduce-cli-for-shellinvocation-poc
Draft
Changes from1 commit
Commits
Show all changes
21 commits
Select commitHold shift + click to select a range
271a154
feat: poc of cli (step 1)
simschlaOct 31, 2024
6bf8840
feat: poc of cli (step 2)
simschlaNov 1, 2024
94dfdd3
feat: poc of cli (step 3)
simschlaNov 6, 2024
dc424ec
feat(build): poc cli
simschlaNov 7, 2024
3d2b0ee
feat: poc cli
simschlaNov 7, 2024
b934acf
refactor: turn spotless action into an option
simschlaNov 7, 2024
403c427
fix: adapt api after rebuild
simschlaNov 7, 2024
dfc91c7
feat: allow dynamic version info
simschlaNov 8, 2024
62da16e
feat: adapt to use new linting api
simschlaNov 8, 2024
6680e1b
feat: extend framework services
simschlaNov 8, 2024
5c464e8
feat: setup testing env for cli
simschlaNov 9, 2024
3b33804
feat: add support to run tests externally
simschlaNov 10, 2024
7a8f7cf
feat: poc for invoking GJF in native cli
simschlaNov 12, 2024
ecbc886
feat: auto-generate reflection info for nativeCompile
simschlaNov 12, 2024
8eb720d
chore: cleanup help options
simschlaNov 13, 2024
ea84f73
chore: cleanup and optimize usage help
simschlaNov 13, 2024
83dbeb5
feat: implement more options for licenceHeader
simschlaNov 16, 2024
9564bf2
feat: add support for prettier calling from cli
simschlaNov 21, 2024
caf8dde
feat: add support for npm based cli tests
simschlaDec 5, 2024
417571f
fix: prevent issues with groovy-decorations in build
simschlaDec 5, 2024
c086333
doc: adding first readme documentation steps
simschlaFeb 7, 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
PrevPrevious commit
NextNext commit
fix: adapt api after rebuild
  • Loading branch information
@simschla
simschla committedFeb 7, 2025
commit403c427fe680f1940e0ca7733e4c98b8a919adf7
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,13 +18,11 @@
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.util.stream.Collectors;

import javax.annotation.Nonnull;

import com.diffplug.spotless.FormatExceptionPolicyStrict;
import com.diffplug.spotless.Formatter;
import com.diffplug.spotless.FormatterStep;
import com.diffplug.spotless.LineEnding;
Expand DownExpand Up@@ -69,9 +67,7 @@ public Integer executeSpotlessAction(@Nonnull List<FormatterStep> formatterSteps
try (Formatter formatter = Formatter.builder()
.lineEndingsPolicy(lineEnding.createPolicy())
.encoding(encoding)
.rootDir(Paths.get(".")) // TODO root dir?
.steps(formatterSteps)
.exceptionPolicy(new FormatExceptionPolicyStrict())
.build()) {

boolean success = targetResolver.resolveTargets()
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp