Eric Gao

Results 200 comments of Eric Gao

@nedtwigg Thanks for the reply. May I ask whether there is something similar to the `formatter inception` in the Maven plugin?

> There is not, but it might be possible. In the Gradle plugin, `FormatExtension` is the receiver for adding generic steps. It has this method for defining a block, and...

I encountered the same bug and submitted a PR to fix it: https://github.com/diffplug/spotless/pull/1277 Thx : )

Another question about the workaround is usually we use `fork-pull model` during open-source contributions, which means we have `upstream/main` in local and `origin/main` in remote. If I don't want to...

> I would use [environment variables](https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables) and do something like: > > ```groovy-gradle > String ratchetAnchor = if (System.getenv('CI') == 'true') 'origin/main' else 'upstream/main' > spotless { > ratchetFrom ratchetAnchor...

I follow the instructions here: https://github.com/powermock/powermock/wiki/Mock-System Not sure if it is outdated or I missed something important?

I'm closing this issue since there has been no response.

> Thanks for the feedback! I haven't updated the project for quite some time as I am now busy studying my Master's. The links are dead because the projects were...

> fwiw, I added the following `replaceRegexp` to remove wildcards while formatting: > > ``` > > Remove wildcard imports > import\s+[^\*\s]+\*;(\r\n|\r|\n) > $1 > > ``` @brendandburns @nedtwigg This...

This is a good feature. Thanks @fengjian1129 for submitting the PR! I add some comments. Could you please also take a look when available? @SbloodyS Thanks!