Skip to content

Exclude check for ampersand (&) at verbatim fields#10419

Merged
Siedlerchr merged 7 commits into
mainfrom
skip-verbatim-for-ampersand
Sep 29, 2023
Merged

Exclude check for ampersand (&) at verbatim fields#10419
Siedlerchr merged 7 commits into
mainfrom
skip-verbatim-for-ampersand

Conversation

@koppor

@koppor koppor commented Sep 26, 2023

Copy link
Copy Markdown
Member

Fixes JabRef#585 (comment)

Refs #8712 (comment)

Mandatory checks

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@@ -24,6 +26,9 @@ public List<IntegrityMessage> check(BibEntry entry) {
List<IntegrityMessage> results = new ArrayList<>();

for (Map.Entry<Field, String> field : entry.getFieldMap().entrySet()) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe even cooler to integrate the filteirng directly in to the getFieldMap call?
e.g. entry.getFieldMap().entrySet().stream().filter...
https://mkyong.com/java8/java-8-filter-a-map-examples/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I tried my best. Needed to use Tuple2 for the HtmlChecker. dc82d44

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I double checked that all usages do not modify the list any more

@koppor

koppor commented Sep 26, 2023

Copy link
Copy Markdown
Member Author

@systemoperator Your issue reported at #8712 (comment) should be fixed with this PR.

Siedlerchr
Siedlerchr previously approved these changes Sep 26, 2023
Comment thread src/main/java/org/jabref/logic/integrity/AmpersandChecker.java Outdated
Comment thread src/main/java/org/jabref/logic/integrity/AmpersandChecker.java Outdated

@Siedlerchr Siedlerchr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

see comments

Siedlerchr
Siedlerchr previously approved these changes Sep 26, 2023
Comment thread src/main/java/org/jabref/logic/integrity/AmpersandChecker.java Outdated
@JabRef JabRef deleted a comment from github-actions Bot Sep 28, 2023
@github-actions

github-actions Bot commented Sep 28, 2023

Copy link
Copy Markdown
Contributor

The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build.

@Siedlerchr Siedlerchr added this pull request to the merge queue Sep 29, 2023
Merged via the queue into main with commit 00885e8 Sep 29, 2023
@Siedlerchr Siedlerchr deleted the skip-verbatim-for-ampersand branch September 29, 2023 16:00
Siedlerchr added a commit that referenced this pull request Oct 3, 2023
* upstream/main: (94 commits)
  Bump org.openrewrite.rewrite from 6.3.11 to 6.3.16 (#10442)
  Update all of lucene
  Bump org.apache.lucene:lucene-core from 9.7.0 to 9.8.0
  Bump com.dlsc.gemsfx:gemsfx from 1.77.0 to 1.82.0
  Accept LaTeX errors in comment field (#10436)
  Fix NPEs in UrlCleanup (#10435)
  Fix triggering workflows (#10433)
  Show exception in cleanup error (#10430)
  Exclude check for ampersand (&) at verbatim fields (#10419)
  fix checkstyle
  fix escaping of slashes
  fix checkstyle  and l10n
  Add TeXShop (macOS only)
  Fix casing
  First set fetcherWorker properties, then start the worker
  improve variable names
  checkstyle
  Fix fetcher worker execution on background thread
  Update contributing.md
  jakarta
  ...
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.

New quality check and cleanup for &

2 participants