Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0926 committed Oct 8, 2019
1 parent b87c04d commit 8ce4514
Show file tree
Hide file tree
Showing 13 changed files with 176 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .gitignore
@@ -0,0 +1,73 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.packages
.pub-cache/
.pub/
build/

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
10 changes: 10 additions & 0 deletions .metadata
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: cc949a8e8b9cf394b9290a8e80f87af3e207dce5
channel: beta

project_type: package
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,3 @@
## [0.0.1]

- First release.
13 changes: 13 additions & 0 deletions README.md
@@ -0,0 +1,13 @@
# pedantic_mono

[mono edition] How to get the most value from Dart static analysis.


https://github.com/dart-lang/pedantic
+
https://github.com/flutter/samples

## Usage

1. Copy [analysis_options.yaml](https://github.com/mono0926/pedantic_mono/blob/master/example/analysis_options.yaml) to project root.
2. Add your rules if needed.
1 change: 1 addition & 0 deletions analysis_options.yaml
@@ -0,0 +1 @@
include: lib/analysis_options.yaml
2 changes: 2 additions & 0 deletions example/analysis_options.yaml
@@ -0,0 +1,2 @@
# https://pub.dev/packages/pedantic_mono
include: package:pedantic_mono/analysis_options.yaml
12 changes: 12 additions & 0 deletions example/pubspec.lock
@@ -0,0 +1,12 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
pedantic_mono:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.0.1"
sdks:
dart: ">=2.2.2 <3.0.0"
8 changes: 8 additions & 0 deletions example/pubspec.yaml
@@ -0,0 +1,8 @@
name: example
description: A example of pedantic_mono.
version: 1.0.0
environment:
sdk: ">=2.2.2 <3.0.0"
dependencies:
pedantic_mono:
path: ../../pedantic_mono
30 changes: 30 additions & 0 deletions lib/analysis_options.yaml
@@ -0,0 +1,30 @@
# https://pub.dev/packages/pedantic
include: package:pedantic/analysis_options.yaml
# Follows https://github.com/flutter/samples
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: false
linter:
rules:
- avoid_types_on_closure_parameters
- avoid_void_async
- await_only_futures
- camel_case_types
- cancel_subscriptions
- close_sinks
- constant_identifier_names
- control_flow_in_finally
- empty_statements
- hash_and_equals
- implementation_imports
- non_constant_identifier_names
- package_api_docs
- package_names
- package_prefixed_library_names
- test_types_in_equals
- throw_in_finally
- unnecessary_brace_in_string_interps
- unnecessary_getters_setters
- unnecessary_new
- unnecessary_statements
1 change: 1 addition & 0 deletions lib/pedantic_mono.dart
@@ -0,0 +1 @@
library pedantic_mono;
12 changes: 12 additions & 0 deletions pubspec.lock
@@ -0,0 +1,12 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
pedantic:
dependency: "direct dev"
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0+1"
sdks:
dart: ">=2.1.1-dev.0.0 <3.0.0"
11 changes: 11 additions & 0 deletions pubspec.yaml
@@ -0,0 +1,11 @@
name: pedantic_mono
description: "[mono edition] How to get the most value from Dart static analysis."
version: 0.0.1
author: Masayuki Ono <mono0926@gmail.com>
homepage: https://github.com/mono0926/pedantic_mono

environment:
sdk: ">=2.1.0 <3.0.0"

dev_dependencies:
pedantic: ^1.8.0
Empty file added test/.gitkeep
Empty file.

0 comments on commit 8ce4514

Please sign in to comment.