Skip to content

Commit

Permalink
v1.1.23: Added experimental setting "Fix spaces".
Browse files Browse the repository at this point in the history
  • Loading branch information
eggnstone committed Sep 14, 2024
1 parent a79852f commit 93e957f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Changelog

## 1.1.22
## 1.1.23

- Added experimental setting "Fix spaces".
- Added experimental setting "Fix spaces".

## 1.1.21

Expand Down
2 changes: 1 addition & 1 deletion lib/src/Constants/Generated/VersionConstants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class VersionConstants
{
static const int MAJOR = 1;
static const int MINOR = 1;
static const int PATCH = 22;
static const int PATCH = 23;

static const Version VERSION = Version(MAJOR, MINOR, PATCH);
}
2 changes: 1 addition & 1 deletion lib/src/Data/Config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Config with _$Config
/// Whether to add a new line before an opening brace.
required bool addNewLineBeforeOpeningBrace,
/// Whether to fix spaces.
required bool fixSpaces,
@Default(false) required bool fixSpaces,
/// The number of spaces to use for indentation. -1 = do not change indentation.
required int indentationSpacesPerLevel,
/// The maximum number of empty lines to allow. -1 = do not change empty lines.
Expand Down
3 changes: 2 additions & 1 deletion lib/src/Data/Config.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class _$ConfigImpl extends _Config {
required this.addNewLineAtEndOfText,
required this.addNewLineBeforeClosingBrace,
required this.addNewLineBeforeOpeningBrace,
required this.fixSpaces,
required this.fixSpaces = false,
required this.indentationSpacesPerLevel,
required this.maxEmptyLines,
required this.removeTrailingCommas})
Expand Down Expand Up @@ -283,6 +283,7 @@ class _$ConfigImpl extends _Config {

/// Whether to fix spaces.
@override
@JsonKey()
final bool fixSpaces;

/// The number of spaces to use for indentation. -1 = do not change indentation.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/Data/Config.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: dart_format
description: A formatter for Dart. Like dartfmt. But better ;) Because it's configurable.
homepage: https://github.com/eggnstone/dart_format
version: 1.1.22
version: 1.1.23
topics:
- code-style
- formatting
Expand Down

0 comments on commit 93e957f

Please sign in to comment.