Skip to content

Commit 8e76772

Browse files
committed
Upload project
1 parent 2448c85 commit 8e76772

File tree

7 files changed

+178
-0
lines changed

7 files changed

+178
-0
lines changed

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26+
/pubspec.lock
27+
**/doc/api/
28+
.dart_tool/
29+
.packages
30+
build/

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "2524052335ec76bb03e04ede244b071f1b86d190"
8+
channel: "stable"
9+
10+
project_type: package

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 1.0.0
2+
3+
* Initial release.

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Monstarlab Flutter Lints [![pub version][pub-version-img]][pub-version-url]
2+
3+
Set of [Flutter](https://flutter.dev) lint rules used by [Monstarlab](https://monstar-lab.com/global). Built on top of the [officially recommended](https://pub.dev/packages/flutter_lints) Flutter rules.
4+
5+
- All the Flutter existing lint rules are listed on [this page](https://dart.dev/tools/linter-rules).
6+
- Check out our [Flutter template](https://github.com/monstar-lab-oss/flutter-template).
7+
8+
## Usage
9+
10+
### Install
11+
12+
```bash
13+
dart pub add dev:monstarlab_lints
14+
# or
15+
flutter pub add dev:monstarlab_lints
16+
```
17+
18+
Or add it to the `pubspec.yaml` yourself:
19+
20+
```yaml
21+
dev_dependencies:
22+
monstarlab_lints: ^1.0.0
23+
```
24+
25+
### Configure analysis options
26+
27+
Modify your [`analysis_options.yaml`](https://dart.dev/tools/analysis#the-analysis-options-file):
28+
29+
```yaml
30+
include: package:monstarlab_lints/analysis_options.yaml
31+
```
32+
33+
34+
<!-- References -->
35+
[pub-version-img]: https://img.shields.io/badge/pub-v1.0.0-0175c2?logo=flutter
36+
[pub-version-url]: https://pub.dev/packages/monstarlab_lints

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

lib/analysis_options.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Additional information about this file can be found at
2+
# https://dart.dev/guides/language/analysis-options
3+
4+
linter:
5+
rules:
6+
# https://github.com/dart-lang/linter/blob/master/example/all.yaml
7+
- always_declare_return_types
8+
- always_require_non_null_named_parameters
9+
- always_use_package_imports
10+
- annotate_overrides
11+
- avoid_init_to_null
12+
- avoid_multiple_declarations_per_line
13+
- avoid_null_checks_in_equality_operators
14+
- avoid_positional_boolean_parameters
15+
- avoid_print
16+
- avoid_relative_lib_imports
17+
- avoid_return_types_on_setters
18+
- avoid_shadowing_type_parameters
19+
- avoid_single_cascade_in_expression_statements
20+
- avoid_types_as_parameter_names
21+
- avoid_unnecessary_containers
22+
- avoid_unused_constructor_parameters
23+
- avoid_void_async
24+
- avoid_web_libraries_in_flutter
25+
- await_only_futures
26+
- camel_case_extensions
27+
- curly_braces_in_flow_control_structures
28+
- empty_catches
29+
- empty_constructor_bodies
30+
- library_names
31+
- library_prefixes
32+
- no_duplicate_case_values
33+
- no_logic_in_create_state
34+
- null_closures
35+
- omit_local_variable_types
36+
- prefer_adjacent_string_concatenation
37+
- prefer_collection_literals
38+
- prefer_conditional_assignment
39+
- prefer_const_constructors
40+
- prefer_const_constructors_in_immutables
41+
- prefer_const_declarations
42+
- prefer_const_literals_to_create_immutables
43+
- prefer_contains
44+
- prefer_final_fields
45+
- prefer_for_elements_to_map_fromIterable
46+
- prefer_generic_function_type_aliases
47+
- prefer_if_null_operators
48+
- prefer_inlined_adds
49+
- prefer_is_empty
50+
- prefer_is_not_empty
51+
- prefer_iterable_whereType
52+
- prefer_single_quotes
53+
- prefer_spread_collections
54+
- recursive_getters
55+
- require_trailing_commas
56+
- sized_box_for_whitespace
57+
- slash_for_doc_comments
58+
- sort_child_properties_last
59+
- type_init_formals
60+
- unawaited_futures
61+
- unnecessary_brace_in_string_interps
62+
- unnecessary_const
63+
- unnecessary_getters_setters
64+
- unnecessary_new
65+
- unnecessary_null_in_if_null_operators
66+
- unnecessary_this
67+
- unrelated_type_equality_checks
68+
- unsafe_html
69+
- use_build_context_synchronously
70+
- use_colored_box
71+
- use_decorated_box
72+
- use_full_hex_values_for_flutter_colors
73+
- use_function_type_syntax_for_parameters
74+
- use_key_in_widget_constructors
75+
- use_rethrow_when_possible
76+
- valid_regexps

pubspec.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: monstarlab_lints
2+
description: Flutter lint rules used in Monstarlab EMEA.
3+
version: 1.0.0
4+
homepage: https://github.com/monstar-lab-oss/flutter_lints
5+
repository: https://github.com/monstar-lab-oss/flutter_lints
6+
issue_tracker: https://github.com/monstar-lab-oss/flutter_lints/issues
7+
documentation: https://github.com/monstar-lab-oss/flutter_lints
8+
9+
environment:
10+
sdk: ">=3.0.0 <4.0.0"
11+
12+
dependencies:
13+
flutter:
14+
sdk: flutter
15+
16+
topics:
17+
- lints
18+
- analysis
19+
- analyzer

0 commit comments

Comments
 (0)