Skip to content

Commit b437e36

Browse files
committed
Merge branch 'develop' into update-from-template-merged
2 parents ac3b11f + 3be368a commit b437e36

File tree

143 files changed

+7258
-26
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+7258
-26
lines changed

.config/checkstyle/checkstyle.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<property name="tabWidth" value="4"/>
1010

1111
<module name="SuppressionFilter">
12-
<property name="file" value=".config/checkstyle/suppressions.xml"/>
12+
<property name="file" value="${config_loc}/suppressions.xml"/>
1313
</module>
1414

1515
<module name="FileLength"/>

.config/checkstyle/suppressions.xml

+5
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@
33
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
44
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
55
<suppressions>
6+
<suppress files="[\\/]src[\\/]test[\\/]resources[\\/].*\.java$" checks=".*"/>
7+
<suppress
8+
files="[\\/]src[\\/]main[\\/]java[\\/]software[\\/]xdev[\\/]saveactions[\\/].*CustomAccessCanBeTightenedInspection\.java$"
9+
checks=".*"/>
10+
<suppress files="[\\/]src[\\/]test[\\/]java[\\/].*\.java$" checks="MethodName"/>
611
</suppressions>

.github/ISSUE_TEMPLATE/bug_report.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ body:
1515
attributes:
1616
label: "Checklist"
1717
options:
18-
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/template-placeholder/releases/latest)"
18+
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/intellij-plugin-save-actions/releases/latest)"
1919
required: true
20-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
20+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/intellij-plugin-save-actions/issues) or [closed](https://github.com/xdev-software/intellij-plugin-save-actions/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
2121
required: true
2222
- label: "I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise."
2323
required: true

.github/ISSUE_TEMPLATE/enhancement.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body:
1313
attributes:
1414
label: "Checklist"
1515
options:
16-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
16+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/intellij-plugin-save-actions/issues) or [closed](https://github.com/xdev-software/intellij-plugin-save-actions/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
1717
required: true
1818
- label: "I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise."
1919
required: true

.github/ISSUE_TEMPLATE/question.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
attributes:
1313
label: "Checklist"
1414
options:
15-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
15+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/intellij-plugin-save-actions/issues) or [closed](https://github.com/xdev-software/intellij-plugin-save-actions/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
1616
required: true
1717
- label: "I have taken the time to fill in all the required details. I understand that the question will be dismissed otherwise."
1818
required: true

.github/workflows/check-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
uses: actions/upload-artifact@v4
7272
with:
7373
name: plugin-files-java-${{ matrix.java }}
74-
path: build/libs/template-placeholder-*.jar
74+
path: build/libs/intellij-plugin-save-actions-*.jar
7575
if-no-files-found: error
7676

7777
checkstyle:

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
See [Changelog#v${{ steps.version.outputs.release }}](https://github.com/xdev-software/${{ github.event.repository.name }}/blob/develop/CHANGELOG.md#${{ steps.version.outputs.releasenumber }}) for more information.
9393
9494
## Installation
95-
The plugin is listed on the [Marketplace](https://plugins.jetbrains.com/plugin/pluginId).
95+
The plugin is listed on the [Marketplace](https://plugins.jetbrains.com/plugin/22113).
9696
9797
Open the plugin Marketplace in your IDE (``File > Settings > Plugins > Marketplace``), search for the plugin and hit the install button.
9898

.idea/checkstyle-idea.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/saveactions_settings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.run/Run Verifications.run.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
<RunAsTest>false</RunAsTest>
2323
<method v="2" />
2424
</configuration>
25-
</component>
25+
</component>

CHANGELOG.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
## 1.4.0
2+
* Dropped support for IntelliJ versions < 2024.3
3+
* This is required to fix a few deprecations and remove some workarounds #171
4+
5+
## 1.3.1
6+
* Fix IDE hang when projects with different "Process files asynchronously" are open #160
7+
8+
## 1.3.0
9+
* Make it possible to run processors asynchronously #130
10+
* This way the UI should be more responsive when processing a lot of files
11+
* May break processors that interact with the UI e.g. when showing dialogs
12+
* Don't process files during project load #145
13+
* This should cause less race conditions due to partial project initialization
14+
* Only active on IntelliJ < 2024.3 as [the underlying problem was fixed in IntelliJ 2024.3](https://github.com/JetBrains/intellij-community/commit/765caa71175d0a67a54836cf840fae829da590d9)
15+
16+
## 1.2.4
17+
* Dropped support for IntelliJ versions < 2024.2
18+
* Removed deprecated code that was only required for older IDE versions
19+
20+
## 1.2.3
21+
* Fix "run on multiple files" not working when the file is not a text file #129
22+
23+
## 1.2.2
24+
* Workaround scaling problem on "New UI" [#26](https://github.com/xdev-software/intellij-plugin-template/issues/26)
25+
26+
## 1.2.1
27+
* Fixed ``ToggleAnAction must override getActionUpdateThread`` warning inside IntelliJ 2024+
28+
* Dropped support for IntelliJ versions < 2023.2
29+
30+
## 1.2.0
31+
* Run GlobalProcessors (e.g. Reformat) last so that code is formatted correctly #90
32+
* Dropped support for IntelliJ versions < 2023
33+
34+
## 1.1.1
35+
* Shortened plugin name - new name: "Save Actions X"
36+
* Updated assets
37+
38+
## 1.1.0
39+
* Removed "Remove unused suppress warning annotation"
40+
* This option never worked #64
41+
* Allows usage of the plugin with IntelliJ IDEA 2024+ #63
42+
* If you used this option you should remove the line ``<option value="suppressAnnotation" />`` inside ``saveactions_settings.xml``
43+
* Allow compilation with Java 21
44+
45+
## 1.0.5
46+
* Fixed ``Add class qualifier to static member access outside declaring class`` not working in combination with Qodana plugin #25
47+
48+
## 1.0.4
49+
* Fixed pluginIcon being not displayed #35
50+
* Improved support of Android Studio (until a 2023 version is released) #27
51+
52+
## 1.0.3
53+
* Fixed problem in combination with Qodana plugin #25
54+
* Improved compatibility and cleaned up code #27
55+
56+
## 1.0.2
57+
* Fixed missing display name which causes an error when multiple configurable plugins are installed #20
58+
59+
## 1.0.1
60+
* Fixed ``Change visibility of field or method to lower access`` not working #14
61+
62+
## 1.0.0
63+
<i>Initial release</i>
64+
* Fork of [dubreuia/intellij-plugin-save-actions](https://github.com/dubreuia/intellij-plugin-save-actions) and [fishermans/intellij-plugin-save-actions](https://github.com/fishermans/intellij-plugin-save-actions)
65+
* ⚠️ This plugin is not compatible with the old/deprecated/forked one.<br/>Please ensure that the old plugin is uninstalled.
66+
* Rebrand
67+
* Updated copy pasted classes from IDEA
68+

CONTRIBUTING.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,19 @@ Start idea and import the `build.gradle` file with "File > Open". Then in the "I
4646
./gradlew cleanIdea idea
4747
```
4848

49-
IntelliJ should refresh and the project is now configured as a gradle project. You can find IntelliJ gradle tasks in "Gradle > Gradle projects > template-placeholder > Tasks > intellij". To run the plugin, use the `runIde` task:
49+
IntelliJ should refresh and the project is now configured as a gradle project. You can find IntelliJ gradle tasks in "Gradle > Gradle projects > intellij-plugin-save-actions > Tasks > intellij". To run the plugin, use the `runIde` task:
5050

5151
```bash
5252
# Run the plugin (starts new idea)
5353
./gradlew runIde
5454
```
5555

56-
## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/template-placeholder/release.yml?branch=master)](https://github.com/xdev-software/template-placeholder/actions/workflows/release.yml)
56+
<i>Based on the [original documentation](https://github.com/dubreuia/intellij-plugin-save-actions/blob/main/CONTRIBUTING.md)</i>
57+
58+
## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/intellij-plugin-save-actions/release.yml?branch=master)](https://github.com/xdev-software/intellij-plugin-save-actions/actions/workflows/release.yml)
5759

5860
Before releasing:
59-
* Consider doing a [test-deployment](https://github.com/xdev-software/template-placeholder/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
61+
* Consider doing a [test-deployment](https://github.com/xdev-software/intellij-plugin-save-actions/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
6062
* Check the [changelog](CHANGELOG.md)
6163

6264
If the ``develop`` is ready for release, create a pull request to the ``master``-Branch and merge the changes

LICENSE

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@
187187
identification within third-party archives.
188188

189189
Copyright 2024 XDEV Software
190+
Copyright 2023 fishermans
191+
Copyright 2020 Alexandre DuBreuil
190192

191193
Licensed under the Apache License, Version 2.0 (the "License");
192194
you may not use this file except in compliance with the License.

README.md

+53-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,64 @@
1-
[![Latest version](https://img.shields.io/jetbrains/plugin/v/pluginId?logo=jetbrains)](https://plugins.jetbrains.com/plugin/pluginId)
2-
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/template-placeholder/check-build.yml?branch=develop)](https://github.com/xdev-software/template-placeholder/actions/workflows/check-build.yml?query=branch%3Adevelop)
3-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_template-placeholder&metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_template-placeholder)
4-
[![Feel free to leave a rating](https://img.shields.io/jetbrains/plugin/r/rating/pluginId?style=social&logo=jetbrains&label=Feel%20free%20to%20leave%20a%20rating)](https://plugins.jetbrains.com/plugin/pluginId/reviews)
1+
[![Latest version](https://img.shields.io/jetbrains/plugin/v/22113?logo=jetbrains)](https://plugins.jetbrains.com/plugin/22113)
2+
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/intellij-plugin-save-actions/check-build.yml?branch=develop)](https://github.com/xdev-software/intellij-plugin-save-actions/actions/workflows/check-build.yml?query=branch%3Adevelop)
3+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_intellij-plugin-save-actions&metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_intellij-plugin-save-actions)
4+
[![Feel free to leave a rating](https://img.shields.io/jetbrains/plugin/r/rating/22113?style=social&logo=jetbrains&label=Feel%20free%20to%20leave%20a%20rating)](https://plugins.jetbrains.com/plugin/22113/reviews)
55

6-
# <img alt="Plugin icon" src="./src/main/resources/META-INF/pluginIcon.svg" height="30"> template-placeholder
6+
# <img alt="Save Actions Plugin icon light" src="./src/main/resources/META-INF/pluginIcon.svg" height="30"> Save Actions X
77

8+
> [!NOTE]
9+
> This plugin is a fork of [dubreuia/intellij-plugin-save-actions](https://github.com/dubreuia/intellij-plugin-save-actions) and [fishermans/intellij-plugin-save-actions](https://github.com/fishermans/intellij-plugin-save-actions) and is kept in maintenance mode:
10+
> * Keep the plugin up-to-date with the latest IDEA versions
11+
> * Distribute the plugin on the IDEA marketplace
12+
> * Fix serious bugs
13+
> * Keep the repo in sync with XDEV's standards
14+
> * Hardly used features may be removed to speed up development
15+
>
16+
> There is no guarantee that work outside of this scope will be done.
817
18+
Supports configurable, Eclipse like, save actions, including "optimize imports", "reformat code", "rearrange code", "compile file" and some quick fixes like "add / remove 'this' qualifier", etc. The plugin executes the configured actions when the file is synchronized (or saved) on disk.
19+
20+
Using the save actions plugin makes your code cleaner and more uniform across your code base by enforcing your code style and code rules every time you save. The settings file (see [files location](./USAGE.md#files-location)) can be shared in your development team so that every developer has the same configuration.
21+
22+
The code style applied by the save actions plugin is the one configured your settings at "File > Settings > Editor > Code Style". For some languages, custom formatter (Dartfmt, Prettier, etc.) may also be triggered by the save actions plugin. See the [Editor Actions](./USAGE.md#editor-actions) configuration for more information.
23+
24+
## Features
25+
26+
### All JetBrains products
27+
28+
- Optimize imports
29+
- Run on file save, shortcut, batch (or a combination)
30+
- Run on multiple files by choosing a scope
31+
- Reformat code (whole file or only changed text)
32+
- Rearrange code (reorder methods, fields, etc.)
33+
- Include / exclude files with regex support
34+
- Works on any file type (Java, Python, XML, etc.)
35+
- Launch any editor action using "quick lists"
36+
- Uses a settings file per project you can commit (see [Files location](./USAGE.md#files-location))
37+
- Available keymaps and actions for activation (see [Keymap and actions](./USAGE.md#keymap-and-actions))
38+
39+
<img src="./assets/intellij-save-actions-plugin-settings-page.png" alt="Save actions plugin settings page" height=500 />
40+
41+
### Java IDE products
42+
43+
Works in JetBrains IDE with Java support, like Intellij IDEA and AndroidStudio.
44+
45+
- Compile project after save (if compiling is available)
46+
- Reload debugger after save (if compiling is available)
47+
- Eclipse configuration file `.epf` support (see [Eclipse support](./USAGE.md#eclipse-support))
48+
- Automatically fix Java inspections (see [Java quick fixes](./USAGE.md#java-fixes))
49+
50+
<img src="./assets/intellij-save-actions-plugin-settings-page-java.png" alt="Save actions plugin settings page for Java" height=600 />
951

1052
## Installation
11-
[Installation guide for the latest release](https://github.com/xdev-software/template-placeholder/releases/latest#Installation)
53+
[Installation guide for the latest release](https://github.com/xdev-software/intellij-plugin-save-actions/releases/latest#Installation)
1254

1355
> [!TIP]
14-
> [Development versions](https://plugins.jetbrains.com/plugin/pluginId/versions/snapshot) can be installed by [adding the ``snapshot`` release channel as a plugin repository](https://www.jetbrains.com/help/idea/managing-plugins.html#repos):<br/>
56+
> [Development versions](https://plugins.jetbrains.com/plugin/22113/versions/snapshot) can be installed by [adding the ``snapshot`` release channel as a plugin repository](https://www.jetbrains.com/help/idea/managing-plugins.html#repos):<br/>
1557
> ``https://plugins.jetbrains.com/plugins/snapshot/list``
1658
59+
## Usage
60+
61+
Read the [full usage guide here](./USAGE.md).
62+
1763
## Contributing
1864
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
## Reporting a Vulnerability
44

5-
Please report a security vulnerability [on GitHub Security Advisories](https://github.com/xdev-software/template-placeholder/security/advisories/new).
5+
Please report a security vulnerability [on GitHub Security Advisories](https://github.com/xdev-software/intellij-plugin-save-actions/security/advisories/new).

0 commit comments

Comments
 (0)