Skip to content

Commit

Permalink
Merge pull request #4 from Iconica-Development/feature/v4.0.0
Browse files Browse the repository at this point in the history
feat: version 4.0.0 of linter
  • Loading branch information
freekvandeven authored Mar 7, 2023
2 parents b64b456 + 72cd87c commit 8012483
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 4.0.0

- Improved version of `analysis_options`

# 3.0.0

- Improved version with extra style rules
Expand Down
4 changes: 4 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# SPDX-FileCopyrightText: 2023 Iconica
#
# SPDX-License-Identifier: BSD-3-Clause

include: lib/analysis_options.yaml
19 changes: 19 additions & 0 deletions lib/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2023 Iconica
#
# SPDX-License-Identifier: BSD-3-Clause

include: package:flutter_lints/flutter.yaml

analyzer:
Expand Down Expand Up @@ -48,6 +52,8 @@ linter:
always_specify_types: false
annotate_overrides: true # core
avoid_bool_literals_in_conditional_expressions: true
avoid_catching_errors: true
avoid_classes_with_only_static_members: true
avoid_final_parameters: true
avoid_multiple_declarations_per_line: true
avoid_returning_null_for_void: true # flutter
Expand Down Expand Up @@ -92,14 +98,17 @@ linter:
prefer_null_aware_operators: true
prefer_spread_collections: true
prefer_typing_uninitialized_variables: true
recursive_getters: true
require_trailing_commas: true
sized_box_for_whitespace: true # flutter
sized_box_shrink_expand: true
slash_for_doc_comments: true
sort_child_properties_last: true # flutter
sort_constructors_first: true
sort_unnamed_constructors_first: true
await_only_futures: true # core
discarded_futures: true
type_init_formals: true
unawaited_futures: true
unnecessary_await_in_return: true
unnecessary_brace_in_string_interps: true
Expand All @@ -111,15 +120,25 @@ linter:
unnecessary_new: true
unnecessary_null_aware_assignments: true
unnecessary_null_in_if_null_operators: true
unnecessary_overrides: true
unnecessary_parenthesis: true
unnecessary_raw_strings: true
unnecessary_string_escapes: true
unnecessary_string_interpolations: true
unnecessary_this: true
unnecessary_to_list_in_spreads: true
use_full_hex_values_for_flutter_colors: true # flutter
use_function_type_syntax_for_parameters: true
use_if_null_to_convert_nulls_to_bools: true
use_is_even_rather_than_modulo: true
use_named_constants: true
use_raw_strings: true
use_rethrow_when_possible: true
use_super_parameters: true
void_checks: true

# Pub Rules
depend_on_referenced_packages: true
package_names: true # flutter
secure_pubspec_urls: true
sort_pub_dependencies: false
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_iconica_analysis
version: 3.0.0
version: 4.0.0
description: Lint rules for Dart and Flutter used internally at Iconica Development BV.
repository: https://github.com/Iconica-Development/flutter_iconica_analysis
issue_tracker: https://github.com/Iconica-Development/flutter_iconica_analysis/issues
Expand Down

0 comments on commit 8012483

Please sign in to comment.