Skip to content

Commit

Permalink
Applied lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
simphotonics committed Apr 4, 2024
1 parent 75a7cd7 commit 1854bbc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 28 deletions.
20 changes: 4 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,63 @@
## 0.3.1
- Applied lints.
- Updated dev dependencies.

## 0.3.0
- Applied lints, updated message formatter `toColorString`.
- Min. SDK version is now 3.0.0.
- Updated list of Dart reserved words.

## 0.2.4

- Amended docs.

## 0.2.3

- Changed inheritance structure. `ErrorOf<T>` and `ErrorOfType<T>` now extend `Error`,
and `ExceptionOf<T>` and `ExceptionOfType<T>` now implement `Exception`.
- Amended examples and docs.
- Added tests.

## 0.2.2

- Amended docs and analysis options.

## 0.2.1

- Migrated CI to github.

## 0.2.0

- Switched back to default test suite.

## 0.2.0-nullsafety

- Removed references to option `--enable-experiment=non-nullable`.

## 0.1.3-nullsafety

- Updated dependencies.

## 0.1.2-nullsafety

Amended README.md.

## 0.1.1-nullsafety

- Min. Dart SDK version is now 2.10.0.

## 0.1.0-nullsafety

Enabled null-safety. Testing now uses `minimal_test`.

## 0.0.6

Added dev_dependency on package `pedantic`. Applied linter suggestions.

## 0.0.5

Amended `example\README.md`. Added link to `example.dart`.

## 0.0.4

Added `utils/validators.dart` containing
methods for checking if an identifier is valid (does not clash with
a Dart keyword, does not start with a number).

## 0.0.3

Amended example.


## 0.0.2

Amended docs.


## 0.0.1

Initial version of the library.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ A typical output produced when running the program above is displayed below (the

Note: Colour output can be globally enabled or disabled by setting
the static variable `colorOutput`
to `ColorOutput.ON` or `ColorOutput.OFF`, respectively:
to `ColorOutput.on` or `ColorOutput.off`, respectively:
```Dart
import 'package:exception_templates/exception_templates.dart';
Expand All @@ -137,8 +137,9 @@ void main(List<String> args) {

## Utility Functions

The library includes the utility functions `validateIdentifier` and `isValidIdentifier`.
The function `validateIdentifier` throws an error of
The library includes the utility functions [`validateIdentifier`][validateIdentifier] and [`isValidIdentifier`][isValidIdentifier].

The function [`validateIdentifier`][validateIdentifier] throws an error of
type `ErrorOfType<InvalidIdentifier>`
if the String argument is a Dart keyword or an invalid Dart variable or function name.

Expand Down Expand Up @@ -168,3 +169,7 @@ Please file feature requests and bugs at the [issue tracker].
[ErrorOfType<T>]: https://pub.dev/documentation/exception_templates/latest/exception_templates/ErrorOfType-class.html

[exception_templates]: https://pub.dev/packages/exception_templates

[isValidIdentifier]: https://pub.dev/documentation/exception_templates/latest/exception_templates/isValidIdentifier.html

[validateIdentifier]: https://pub.dev/documentation/exception_templates/latest/exception_templates/validateIdentifier.html
2 changes: 0 additions & 2 deletions lib/src/utils/color_options.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library color_options;

enum ColorOutput { on, off }

/// Represents and Ansi colour.
Expand Down
2 changes: 0 additions & 2 deletions lib/src/utils/validators.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// [String] functions used by source code generators.
import '../errors/error_of_type.dart';
import '../error_types/invalid_identifier.dart';

Expand Down
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: exception_templates

description: Dart exception and error classes with generic type, useful for
description: Dart exception and error classes with generic type, for
throwing, catching, and filtering custom exceptions based on their type
argument.

version: 0.3.0
version: 0.3.1

homepage: https://github.com/simphotonics/exception_templates

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '^3.0.0'

dev_dependencies:
lints: ^2.1.1
test: ^1.24.4
lints: ^3.0.0
test: ^1.25.2

0 comments on commit 1854bbc

Please sign in to comment.