-
Notifications
You must be signed in to change notification settings - Fork 133
WIP linter for Effective Dart #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
546f878
setup pedantic lint rules for Effective Dart
RandomDalek cd185dc
fix avoid_init_to_null warning
RandomDalek 1acdc3e
fix unnecessary_const and avoid_shadowing_type_parameters warnings
RandomDalek b2e2e4e
Merge pull request #1 from objectbox/dev
GregorySech 2f55dd1
fix avoid_types_as_parameter_names warning
RandomDalek 6e26d5a
Merge branch 'dev' of github.com:GregorySech/objectbox-dart into dev
RandomDalek e175a59
fix expected output after avoid_init_to_null change.
GregorySech d58fc2c
fix unused_import warning
GregorySech bfdec2b
fix curly_braces_in_flow_control_structures warning
GregorySech 082acdd
fix unnecessary_new warning
GregorySech c06b4c1
fix prefer_contains warning
GregorySech 3638dc1
fix prefer_is_empty warning
GregorySech 17dfbfe
Merge branch 'dev' into dev
GregorySech 187b1f2
setup dart_package_analyzer
GregorySech ae0a55b
Merge branch 'dev' of github.com:GregorySech/objectbox-dart into dev
GregorySech c5cea8c
move analysis actions to its own file.
GregorySech 3fb312f
renaming analysis jobs
GregorySech a62df9f
fix unawaited_futures warning
GregorySech 0961a73
fix renaming analysis jobs.
GregorySech 1cc12f5
Update .github/workflows/analysis.yml
GregorySech e08a873
remove useless part according to action docs and merge jobs in one.
GregorySech 583700c
calling pub get before analysis
GregorySech 20b8efb
formatting
GregorySech df1a982
dart container is needed for pub get
GregorySech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Analysis | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
packages_analysis: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: google/dart:latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install lib dependencies | ||
run: pub get | ||
- name: Install generator dependencies | ||
working-directory: bin/objectbox_model_generator | ||
run: pub get | ||
- uses: axel-op/dart_package_analyzer@stable | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
maxScoreToComment: 99.99 # only a 100 score will not post a comment. | ||
- uses: axel-op/dart_package_analyzer@stable | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
maxScoreToComment: 99.99 # only a 100 score will not post a comment. | ||
relativePath: 'bin/objectbox_model_generator/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include: package:pedantic/analysis_options.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
class Entity { | ||
final int uid; | ||
const Entity({this.uid = null}); | ||
const Entity({this.uid}); | ||
} | ||
|
||
class Property { | ||
final int uid; | ||
const Property({this.uid = null}); | ||
const Property({this.uid}); | ||
} | ||
|
||
class Id { | ||
final int uid; | ||
const Id({this.uid = null}); | ||
const Id({this.uid}); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems to be unnecessary, see https://github.com/axel-op/dart_package_analyzer#usage