Skip to content

Commit

Permalink
Major refactor and clean up (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias authored Nov 13, 2023
1 parent 71b0501 commit f8816b1
Show file tree
Hide file tree
Showing 406 changed files with 20,258 additions and 19,487 deletions.
Empty file added .cursorignore
Empty file.
4 changes: 0 additions & 4 deletions .fvm/fvm_config.json

This file was deleted.

3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "stable"
}
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ doc/
*.iws
.idea/


# FVM
.fvm/flutter_sdk

# 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
Expand Down Expand Up @@ -83,4 +81,7 @@ yarn.lock
node_modules

# FVM
.fvm/flutter_sdk

# FVM Version Cache
.fvm/
**/**.context.md
42 changes: 32 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
{
"dart.flutterSdkPath": ".fvm/flutter_sdk",
// Remove .fvm files from search
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll": true,
"source.dcm.fixAll": true
},
"dart.flutterSdkPath": ".fvm/versions/stable",
"search.exclude": {
"**/.fvm": true
"**/.fvm/versions": true
},
// Remove from file watching
"files.watcherExclude": {
"**/.fvm": true
"**/.fvm/versions": true
},
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll": true
}
}
"files.exclude": {
"**/.fvm/versions": true
},
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#0a1a34",
"activityBar.background": "#0a1a34",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#a01f50",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#e7e7e799",
"sash.hoverBorder": "#0a1a34",
"statusBar.background": "#02050a",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#0a1a34",
"statusBarItem.remoteBackground": "#02050a",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#02050a",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#02050a99",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.color": "#02050a"
}
72 changes: 55 additions & 17 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Defines a default set of lint rules enforced for
# projects at Google. For details and rationale,
# see https://github.com/dart-lang/pedantic#enabled-lints.

include: package:flutter_lints/flutter.yaml

# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
Expand All @@ -11,23 +9,63 @@ linter:
prefer_relative_imports: true

analyzer:
plugins:
- dart_code_metrics
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"



dart_code_metrics:
metrics:
cyclomatic-complexity: 20
number-of-parameters: 4
maximum-nesting-level: 5
extends:
- package:dart_code_metrics_presets/all.yaml
metrics-exclude:
- test/**
rules-exclude:
- "test/**"
rules:
- newline-before-return
- no-boolean-literal-compare
- no-empty-block
- prefer-trailing-comma
- no-equal-then-else
prefer-match-file-name: false
prefer-single-widget-per-file: false
parameters-ordering: false
arguments-ordering:
child-last: true
avoid-dynamic: false
prefer-getter-over-method: false
enum-constants-ordering: false
prefer-widget-private-members: false
prefer-static-class: false
avoid-late-keyword: false
avoid-barrel-files: false
avoid-declaring-call-method: false
avoid-long-parameter-list: false
avoid-recursive-calls: false
no-magic-number: false
avoid-ignoring-return-values: false
prefer-commenting-analyzer-ignores: false
prefer-correct-identifier-length: false
avoid-unsafe-collection-methods: false
avoid-similar-names: false
format-comment: false
no-equal-arguments: false
prefer_initializing_formals: false
avoid-nested-conditional-expressions:
acceptable-level: 3
member-ordering:
order:
- public-fields
- private-fields
- constructors
- static-methods
- public-getters
- private-getters
- public-setters
- private-setters
- public-methods
- private-methods
- overridden-public-methods
- overridden-public-getters
- build-method
prefer-named-boolean-parameters:
ignore-single: true


anti-patterns:
- long-method
- long-parameter-list

6 changes: 0 additions & 6 deletions benchmarks/.gitignore

This file was deleted.

45 changes: 0 additions & 45 deletions benchmarks/.metadata

This file was deleted.

3 changes: 0 additions & 3 deletions benchmarks/CHANGELOG.md

This file was deleted.

11 changes: 0 additions & 11 deletions benchmarks/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions benchmarks/analysis_options.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions benchmarks/android/.gitignore

This file was deleted.

71 changes: 0 additions & 71 deletions benchmarks/android/app/build.gradle

This file was deleted.

8 changes: 0 additions & 8 deletions benchmarks/android/app/src/debug/AndroidManifest.xml

This file was deleted.

34 changes: 0 additions & 34 deletions benchmarks/android/app/src/main/AndroidManifest.xml

This file was deleted.

Loading

0 comments on commit f8816b1

Please sign in to comment.