Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Publish v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tenhobi committed Nov 4, 2020
1 parent 469c1e2 commit ca10d71
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

This project adheres to [Semantic Versioning](https://semver.org).

## 1.3.0

- Added rule `prefer_is_empty`
- Added rule `prefer_is_not_empty`

## 1.2.4

- Comply with the new Pub score system
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Honza Bittner
Copyright (c) 2020 Honza Bittner

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To use the lints add a dev dependency in your `pubspec.yaml`:

```yaml
dev_dependencies:
effective_dart: ^1.2.0
effective_dart: ^1.3.0
```
Then add an include in your `analysis_options.yaml` file:
Expand All @@ -34,7 +34,7 @@ is released.
To avoid this, specify a version of `analysis_options.yaml`:

```yaml
include: package:effective_dart/analysis_options.1.2.0.yaml
include: package:effective_dart/analysis_options.1.3.0.yaml
```

## Consider Lints
Expand Down
4 changes: 2 additions & 2 deletions example/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ To use the lints add a dev dependency in your `pubspec.yaml`:

```yaml
dev_dependencies:
effective_dart: ^1.2.0
effective_dart: ^1.3.0
```
Then add an include in your `analysis_options.yaml` file:
Expand All @@ -19,5 +19,5 @@ is released.
To avoid this, specify a version of `analysis_options.yaml`:

```yaml
include: package:effective_dart/analysis_options.1.2.0.yaml
include: package:effective_dart/analysis_options.1.3.0.yaml
```
71 changes: 71 additions & 0 deletions lib/analysis_options.1.3.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
linter:
rules:
# STYLE
- camel_case_types
- camel_case_extensions
- library_names
- file_names
- library_prefixes
- non_constant_identifier_names
- constant_identifier_names # prefer
- directives_ordering
- lines_longer_than_80_chars # avoid
- curly_braces_in_flow_control_structures

# DOCUMENTATION
- slash_for_doc_comments
- package_api_docs # prefer
- public_member_api_docs # prefer
#- comment_references # Unused because https://github.com/dart-lang/sdk/issues/36974

# USAGE
- implementation_imports
- avoid_relative_lib_imports
- prefer_relative_imports
- prefer_adjacent_string_concatenation
- prefer_interpolation_to_compose_strings # prefer
- unnecessary_brace_in_string_interps # avoid
- prefer_collection_literals
- prefer_is_empty
- prefer_is_not_empty
- avoid_function_literals_in_foreach_calls # avoid
- prefer_iterable_whereType
- prefer_function_declarations_over_variables
- unnecessary_lambdas
- prefer_equal_for_default_values
- avoid_init_to_null
- unnecessary_getters_setters
#- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23
#- prefer_expression_function_bodies # consider
- unnecessary_this
- prefer_initializing_formals
- type_init_formals
- empty_constructor_bodies
- unnecessary_new
- unnecessary_const
- avoid_catches_without_on_clauses # avoid
- avoid_catching_errors
- use_rethrow_when_possible

# DESIGN
- use_to_and_as_if_applicable # prefer
- one_member_abstracts # avoid
- avoid_classes_with_only_static_members # avoid
- prefer_mixin
- prefer_final_fields # prefer
- use_setters_to_change_properties
- avoid_setters_without_getters
- avoid_returning_null # avoid
- avoid_returning_this # avoid
- type_annotate_public_apis # prefer
#- prefer_typing_uninitialized_variables # consider
- omit_local_variable_types # avoid
- avoid_types_on_closure_parameters # avoid
- avoid_return_types_on_setters
- prefer_generic_function_type_aliases
- avoid_private_typedef_functions # prefer
#- use_function_type_syntax_for_parameters # consider
- avoid_positional_boolean_parameters # avoid
- hash_and_equals
- avoid_equals_and_hash_code_on_mutable_classes # avoid
- avoid_null_checks_in_equality_operators
2 changes: 1 addition & 1 deletion lib/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:effective_dart/analysis_options.1.2.0.yaml
include: package:effective_dart/analysis_options.1.3.0.yaml
4 changes: 0 additions & 4 deletions lib/effective_dart.dart

This file was deleted.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: effective_dart
version: 1.2.4
version: 1.3.0
description: Linter rules corresponding to the guidelines in Effective Dart.
homepage: https://github.com/tenhobi/effective_dart
repository: https://github.com/tenhobi/effective_dart
Expand Down

0 comments on commit ca10d71

Please sign in to comment.