Skip to content

add spotless#106

Open
elliVM wants to merge 3 commits intoteragrep:mainfrom
elliVM:spotless
Open

add spotless#106
elliVM wants to merge 3 commits intoteragrep:mainfrom
elliVM:spotless

Conversation

@elliVM
Copy link
Copy Markdown
Contributor

@elliVM elliVM commented Dec 17, 2025

Description

Add spotless plugin and apply.

  • Formats Java code
  • Updates licenses on .java and .g4 files
  • Does not update licenses on .txt or .xml files
  • Apache Rat plugin set to approve old and new licenses

Notes

  • .txt and .xml files both have different types of comment styles and would there require their own license files, decided not to add.

@elliVM elliVM self-assigned this Dec 17, 2025
@elliVM elliVM linked an issue Dec 17, 2025 that may be closed by this pull request
@elliVM elliVM requested a review from Tiihott December 17, 2025 09:02
Copy link
Copy Markdown

@Tiihott Tiihott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests pass and spotless check/apply work as expected. But the Spotless configuration is missing the <toggleOffOn></toggleOffOn> which should be added.

Comment thread pom.xml
@elliVM elliVM requested a review from Tiihott December 18, 2025 07:19
Tiihott
Tiihott previously approved these changes Dec 18, 2025
Copy link
Copy Markdown

@Tiihott Tiihott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elliVM elliVM requested a review from kortemik December 18, 2025 07:57
@elliVM elliVM added the review label Dec 18, 2025
@kortemik kortemik requested review from StrongestNumber9 and removed request for kortemik December 18, 2025 11:24
@kortemik
Copy link
Copy Markdown
Member

@StrongestNumber9 please verify and approve if ok

@elliVM
Copy link
Copy Markdown
Contributor Author

elliVM commented Jan 23, 2026

rebased after #112 and applied spotless again

@elliVM
Copy link
Copy Markdown
Contributor Author

elliVM commented Jan 23, 2026

Comments about going with 2026 or with 2019-2026 for the template lincense?

@elliVM elliVM requested a review from eemhu January 23, 2026 09:07
@kortemik
Copy link
Copy Markdown
Member

Comments about going with 2026 or with 2019-2026 for the template lincense?

sure ok

/*
* Teragrep Data Processing Language Parser Library PTH-03
* Copyright (C) 2019-2026 Suomen Kanuuna Oy
* Data Processing Language (DPL) parser
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the title match the GitHub description or no?

* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://github.com/teragrep/teragrep/blob/main/LICENSE>.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why link changed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is like that in the mvn_01 the template: https://github.com/teragrep/mvn_01/blob/main/example-java-project/header.

The same pattern is present in many other projects like in PTH_10

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
Data Processing Language (DPL) parser
Copyright (C) 2025 Suomen Kanuuna Oy
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2025 -> 2026

Comment thread pom.xml
<license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
<notes>Also allow the license url to be https.</notes>
<patterns>
<pattern>Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy</pattern>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these necessary?

Copy link
Copy Markdown
Contributor

@eemhu eemhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise looks ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add spotless

4 participants