Skip to content

Improves file buffering - #275

Merged
lesquoyb merged 3 commits into
2024-06from
improves-file-buffering
Aug 2, 2024
Merged

Improves file buffering#275
lesquoyb merged 3 commits into
2024-06from
improves-file-buffering

Conversation

@lesquoyb

@lesquoyb lesquoyb commented Aug 1, 2024

Copy link
Copy Markdown
Contributor

Provides a fix for repeated headers in case of file buffering and improves the documentation of the buffering code

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

Change in average Code Health of affected files: -0.01 (7.48 -> 7.47)

  • Declining Code Health: 2 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅
  • Affected Hotspots: 2 files(s) 🔥

View detailed results in CodeScene

Comment thread gama.core/src/gama/core/runtime/GAMA.java
try {
Files.createDirectories(fileToSave.toPath().getParent());
boolean exists = fileToSave.exists();
boolean exists = fileToSave.exists() || GAMA.fileWillBeWritten(fileToSave);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

❌ Getting worse: Complex Method
privateExecuteIn increases in cyclomatic complexity from 27 to 28, threshold = 9

Suppress

import gama.core.common.interfaces.ISaveDelegate;
import gama.core.common.preferences.GamaPreferences;
import gama.core.common.util.FileUtils;
import gama.core.runtime.GAMA;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ℹ Getting worse: Overall Code Complexity
The mean cyclomatic complexity increases from 11.88 to 12.00, threshold = 4

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

Change in average Code Health of affected files: +0.01 (7.48 -> 7.50)

  • Declining Code Health: 1 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅
  • Affected Hotspots: 2 files(s) 🔥

View detailed results in CodeScene

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

Change in average Code Health of affected files: +0.01 (7.58 -> 7.60)

  • Declining Code Health: 1 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅
  • Affected Hotspots: 2 files(s) 🔥

View detailed results in CodeScene

@lesquoyb lesquoyb changed the title Fixes #274 and improves documentation Improves file buffering Aug 1, 2024
@lesquoyb
lesquoyb merged commit 49815bb into 2024-06 Aug 2, 2024
@lesquoyb
lesquoyb deleted the improves-file-buffering branch August 21, 2024 04:20
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.

1 participant