Skip to content

feat: add support for configuration error severities in analysis_options.yaml #325

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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
374 commits
Select commit Hold shift + click to select a range
657dd57
Revert "Add CI and issue templates (#35)" (#44)
rrousselGit Nov 23, 2022
c707048
Ci and templates (#46)
rrousselGit Nov 23, 2022
942094b
0.0.13
rrousselGit Nov 23, 2022
809ae8f
Remove pubspec_overrides in tools/analyzer_plugin
rrousselGit Nov 23, 2022
ee8e74b
Gitignore pubspec_overrides
rrousselGit Nov 23, 2022
1eb86f4
0.0.14
rrousselGit Nov 23, 2022
f4985fc
Bump analyzer/plugin to 5.0.0/011.0 (#49)
kuhnroyal Dec 1, 2022
384790b
Changelog
rrousselGit Dec 1, 2022
d786e6b
Merge branch 'main' of https://github.com/invertase/unamed_dart_analy…
rrousselGit Dec 1, 2022
99a913c
Add pubspec_override
rrousselGit Dec 1, 2022
bf2780a
Upgrade analyzer plugin (#51)
rrousselGit Dec 5, 2022
87aa7f7
feat: Add support for // expect_lint (#52)
rrousselGit Dec 6, 2022
d3daa7f
0.0.15
rrousselGit Dec 6, 2022
1275510
Fix expect_lint on files with no lints in it
rrousselGit Dec 9, 2022
28751d6
Add failing test for file change
rrousselGit Dec 12, 2022
eb49894
Remove dead code
rrousselGit Dec 12, 2022
c9dea84
Remove more dead code
rrousselGit Dec 12, 2022
bf2679c
Update README.md
Salakar Jan 3, 2023
4b52625
Fuse all plugins (#58)
rrousselGit Jan 5, 2023
bb95d26
Merge branch 'main' of https://github.com/invertase/unamed_dart_analy…
rrousselGit Jan 5, 2023
2cbc75f
Fix readme typo
rrousselGit Jan 6, 2023
68d81ec
Add assist support
rrousselGit Jan 6, 2023
f66b5ce
0.1.0
rrousselGit Jan 6, 2023
d91ea89
Update README.md
rrousselGit Jan 8, 2023
3167dc1
Optimize reanalysis (#61)
rrousselGit Jan 9, 2023
dd764ee
Version 0.1.1
rrousselGit Jan 9, 2023
cbc374e
Refactor zone (#62)
rrousselGit Jan 10, 2023
964bf16
Support enabling/disabling lints and configuration (#63)
rrousselGit Jan 20, 2023
dd39f74
0.2.0
rrousselGit Jan 20, 2023
a728928
some minor spelling and trailing whitespace (#67)
Luckey-Elijah Jan 20, 2023
8e1ff3b
Add TypeChecker.every & TypeChecker.package
rrousselGit Jan 30, 2023
957f716
Do not try to read ignores outside of Dart files. (#70)
rrousselGit Jan 31, 2023
cf674cb
0.2.2
rrousselGit Jan 31, 2023
2431870
Retry analysis on InconsistentAnalysisException (#72)
rrousselGit Feb 1, 2023
275978a
chore(website): add website homepage (#73)
webdevleo Feb 9, 2023
b1f5c6d
release
rrousselGit Feb 9, 2023
83f3a93
Add testing utilities
rrousselGit Feb 9, 2023
7305bdf
0.2.4
rrousselGit Feb 9, 2023
e3316f1
Update goldens
rrousselGit Feb 9, 2023
cf482be
Fix process leak
rrousselGit Feb 10, 2023
718515b
Fix tests
rrousselGit Feb 10, 2023
e538ef8
0.2.5
rrousselGit Feb 10, 2023
dcbbc34
Lint
rrousselGit Feb 10, 2023
5201662
Fix infinite loop on InconsistentAnalysisException
rrousselGit Feb 10, 2023
5f35a69
Update goldens
rrousselGit Feb 10, 2023
1b6caf6
Split custom_lint_builder into two packages (#76)
rrousselGit Feb 12, 2023
fd147bf
Remove unused dependencies
rrousselGit Feb 12, 2023
7552323
0.2.7
rrousselGit Feb 12, 2023
ed7aa53
update website with new cover and more plugin libraries
mhadaily Feb 13, 2023
d5bca2f
Fix exception thrown by `TypeChecker.isExactlyType` if `DartType.elem…
rrousselGit Feb 13, 2023
6ccae56
Merge branch 'main' of https://github.com/invertase/dart_custom_lint
rrousselGit Feb 13, 2023
3f44bf3
0.2.8
rrousselGit Feb 13, 2023
2e28c1b
Fix `TypeChecker.fromPackage` not always return `true` when it should
rrousselGit Feb 13, 2023
99da4e0
Fix `filesToAnalyze` only working on the file name instead of the fil…
rrousselGit Feb 20, 2023
43ddfa5
v0.2.10
rrousselGit Feb 20, 2023
ecf18e2
Fix typos (#85)
kuhnroyal Feb 23, 2023
055e6d7
Improve dependency conflict error message (#91)
adsonpleal Feb 27, 2023
69fb143
Changelog
rrousselGit Feb 27, 2023
025b5a4
Fixes `LintCode.url` no-longer showing-up in the IDE (#93)
rrousselGit Feb 27, 2023
aa60267
Merge branch 'main' of https://github.com/invertase/dart_custom_lint
rrousselGit Feb 27, 2023
6be99e3
Fix quick-fixes not working on the last offset of a lint error (#94)
rrousselGit Feb 27, 2023
b019d57
chore: Bump minimum Dart SDK (#95)
rrousselGit Feb 27, 2023
63f0ffc
Delete dead code
rrousselGit Feb 27, 2023
2300a7d
0.2.11
rrousselGit Feb 27, 2023
2cd4cfb
Move json_serializable to dev dependencies
rrousselGit Feb 28, 2023
cd84233
0.2.12
rrousselGit Feb 28, 2023
e467e3e
Upgrade analyzer to 5.7.0 (#106)
rrousselGit Mar 8, 2023
848d631
Fix FileSystemException thrown when deleting a file (#107)
rrousselGit Mar 9, 2023
c4263c8
Fix unused port error (#108)
rrousselGit Mar 9, 2023
e880581
Add melos workspace
rrousselGit Mar 9, 2023
a399a7c
0.3.0
rrousselGit Mar 9, 2023
f185b2b
Add publish_to: none
rrousselGit Mar 9, 2023
86e913d
Fix dependency versions
rrousselGit Mar 9, 2023
19ed635
typo
rrousselGit Mar 9, 2023
8929ee5
Randomize vm-service port (#109)
rrousselGit Mar 9, 2023
0a6215d
Test disabled watch mode
rrousselGit Mar 9, 2023
bef878a
Test disabled watch mode
rrousselGit Mar 9, 2023
30d4d2a
Release
rrousselGit Mar 9, 2023
f95df21
Fix typo (#116)
K9i-0 Mar 13, 2023
6023a54
Add root pubspec
rrousselGit Mar 13, 2023
1d668c9
Merge branch 'main' of https://github.com/invertase/dart_custom_lint
rrousselGit Mar 13, 2023
ad5ac75
Disable VM-services when started in the CI (#122)
rrousselGit Mar 15, 2023
2024298
Lint
rrousselGit Mar 15, 2023
e75befb
Some test project setup fixes (#121)
kuhnroyal Mar 16, 2023
c00b5cd
Fix Cli hanging on error, don't manually kill process (#98)
kuhnroyal Mar 16, 2023
cffee7f
Delete settings.json
rrousselGit Mar 17, 2023
ae0f197
CI: Update checkout action, replace flutter format with dart format (…
kuhnroyal Mar 17, 2023
05fd942
Update goldens
rrousselGit Mar 17, 2023
a8cf798
Use master channel again
rrousselGit Mar 17, 2023
c514cf6
Refactor lint rendering to avoid loops (#124)
kuhnroyal Mar 17, 2023
0f45b94
Keep using flutter in CI
rrousselGit Mar 17, 2023
54ef0fa
Merge branch 'main' of https://github.com/invertase/dart_custom_lint
rrousselGit Mar 17, 2023
70ea4d8
Check only first few lines
rrousselGit Mar 17, 2023
d692819
Increase timeout for process tests & remove some stream matchers (#127)
kuhnroyal Mar 20, 2023
ff8243e
Have the plugin host only include dependencies used by plugins (#128)
rrousselGit Apr 5, 2023
ad83ba8
Upgrade `analyzer` to `>=5.7.0 <5.11.0` (#132)
rrousselGit Apr 6, 2023
1d5a856
Automagically generate node_lint_visitor.dart (#133)
rrousselGit Apr 6, 2023
4af43c1
Upgrade cli_util (#134)
rrousselGit Apr 6, 2023
8f4f00b
Fix lint
rrousselGit Apr 6, 2023
c65905b
The command line no-longer throws if ran on an empty project or a pro…
rrousselGit Apr 6, 2023
b695c95
Exposes the Pubspec in CustomLintContext (#137)
rrousselGit Apr 6, 2023
1325996
custom_lint : 0.3.2 -> 0.3.3
rrousselGit Apr 6, 2023
56a34f1
Update JsonSocketChannel to send the message length in the uintlist i…
rrousselGit Apr 13, 2023
9f279c7
Add ignore quick fix for analysisErrors (#142)
rrousselGit Apr 16, 2023
003b765
Fix project parsing on windows (#145)
rrousselGit Apr 19, 2023
ff9978b
The following packages have been updated:
rrousselGit Apr 19, 2023
655cbc4
Remove todo example
rrousselGit Apr 24, 2023
b87a687
Fix: Report uncaught errors inside post frame callbacks (#146)
rrousselGit Apr 24, 2023
52efb41
Cleanup todos
rrousselGit Apr 24, 2023
1e1e0b6
Fix: replace docs page on website
mhadaily May 4, 2023
8345c2e
Fix: update docs link on website navigation
mhadaily May 4, 2023
1dd0f8f
Merge branch 'main' of https://github.com/invertase/dart_custom_lint
rrousselGit May 10, 2023
e50c8da
Update templates
rrousselGit May 10, 2023
58e6d0f
Support analyzer 5.12 (#150)
rrousselGit May 12, 2023
bbbf3fd
Changelog
rrousselGit May 12, 2023
524b8ff
The following packages have been updated:
rrousselGit May 12, 2023
f44710e
Fix analysis error
rrousselGit Jun 15, 2023
29afb22
Add trailing commas
rrousselGit Jun 20, 2023
402a6b5
Fix test
rrousselGit Jun 20, 2023
d138982
Added severity to CLI output (#48)
praxder Jun 20, 2023
d401d58
Changelog
rrousselGit Jun 20, 2023
6586df1
Ensure temporary directories are correctly cleaned up
rrousselGit Jun 20, 2023
a9f97b1
Release
rrousselGit Jun 21, 2023
d68a6b5
Document analysis_options config
rrousselGit Jun 27, 2023
1e1c887
Resolve packages using "pub get" if offline package resolution fails …
rrousselGit Jul 12, 2023
06c70b0
Update custom_lint_example_lint.dart (#175)
mafreud Jul 27, 2023
6dab5fe
Support analyzer v6 (#176)
rrousselGit Aug 3, 2023
a378c9b
The following packages have been updated:
rrousselGit Aug 3, 2023
584a13b
Increase timeout
rrousselGit Aug 13, 2023
1a3eb12
Loosen analyzer version constraint (#177)
rrousselGit Aug 16, 2023
a4f5c29
Changelog
rrousselGit Aug 16, 2023
1e8a264
Use ipv6 localhost as suggested by @rijalulfikri (#172)
rrousselGit Aug 16, 2023
aba8381
Changelog
rrousselGit Aug 16, 2023
af38107
The following packages have been updated:
rrousselGit Aug 16, 2023
6f28802
Support error severity screening option (#129)
yamarkz Aug 29, 2023
952c297
Changelog
rrousselGit Aug 29, 2023
ac20083
custom_lint 0.5.3
rrousselGit Aug 29, 2023
a673cbb
Sort lints by severity before anything else (#183)
kuhnroyal Sep 4, 2023
02b7ff7
Fix watch mode not quitting (#182)
kuhnroyal Sep 4, 2023
60c5f18
Improve command line output (#126)
kuhnroyal Sep 12, 2023
c2f800c
Support uid 4.0.0
rrousselGit Sep 18, 2023
d785885
Commas
rrousselGit Sep 24, 2023
a1aefb4
Upgrade SDK constraints
rrousselGit Sep 24, 2023
3f14355
Use CliLogger for watch mode (#194)
kuhnroyal Oct 20, 2023
b12e07f
Fix port leak (#196)
rrousselGit Oct 20, 2023
585a741
Apply 193 (#197)
rrousselGit Oct 20, 2023
5a1e1f5
custom_lint : 0.5.3 -> 0.5.4
rrousselGit Oct 20, 2023
0c16565
Support hotreloader 4.0.0
rrousselGit Oct 26, 2023
1a27cac
custom_lint : 0.5.4 -> 0.5.5
rrousselGit Oct 26, 2023
ff03712
Automatically pick up unused port (#202)
rrousselGit Oct 30, 2023
9afa447
The following packages have been updated:
rrousselGit Oct 30, 2023
03a9e8b
Add --format to the CLI (#198)
kuhnroyal Nov 13, 2023
c6556f4
Increase timeout
rrousselGit Nov 13, 2023
c38fc3f
Merge branch 'main' of https://github.com/invertase/dart_custom_lint
rrousselGit Nov 13, 2023
2df29cb
The following packages have been updated:
rrousselGit Nov 20, 2023
8dae93e
Add indent to the ignore comment (#207)
PiotrRogulski Dec 4, 2023
031f41f
New customPath parameter with test (#199)
laurentschall Dec 5, 2023
6c955e0
Changelog
rrousselGit Dec 5, 2023
44ab232
Upgrade freezed
rrousselGit Dec 15, 2023
aa5f31c
Add Support for 'package:' configs (#205)
Jan 9, 2024
d45120b
custom_lint : 0.5.7 -> 0.5.8
rrousselGit Jan 9, 2024
827a3ab
`matcherNormalizedPrioritizedSourceChangeSnapshot` now optionally all…
rrousselGit Jan 26, 2024
d0c45b2
The following packages have been updated:
rrousselGit Jan 26, 2024
0ccb39e
Fix encoder not respected
rrousselGit Jan 26, 2024
11effa8
The following packages have been updated:
rrousselGit Jan 26, 2024
3fe75c6
Fix CI (#218)
rrousselGit Jan 27, 2024
89674cd
feat: Support nested analysis options files (#212)
mrgnhnt96 Jan 27, 2024
1c87974
Release
rrousselGit Jan 27, 2024
f6d7ea0
Add testing quick fixes and assists in README.md (#221)
charlescyt Feb 2, 2024
791d125
- Added `encodePrioritizedSourceChanges`, to enable writing a `List<P…
rrousselGit Feb 2, 2024
84bc9e1
custom_lint_core : 0.5.11 -> 0.5.12
rrousselGit Feb 2, 2024
350a68b
Improved formatting when specifying `source` on `encodePrioritizedSou…
rrousselGit Feb 3, 2024
20a50b6
custom_lint_core : 0.5.12 -> 0.5.13
rrousselGit Feb 3, 2024
f6b06b9
- Improved formatting when specifying `source` on `encodePrioritizedS…
rrousselGit Feb 3, 2024
28045a8
custom_lint_core : 0.5.13 -> 0.5.14
rrousselGit Feb 3, 2024
4fa4975
Support --fix and fix-all assist (#223)
rrousselGit Feb 4, 2024
a69f0ed
The following packages have been updated:
rrousselGit Feb 4, 2024
9c2a313
The following packages have been updated:
rrousselGit Feb 14, 2024
586a2d4
Fix CI
rrousselGit Feb 19, 2024
1765b98
Support analyzer 6.4.0
rrousselGit Feb 19, 2024
0daa388
Disable stable CI
rrousselGit Feb 19, 2024
4e56649
Fix TypeChecker.isSuperTypeOf throws on null value
charlescyt Feb 19, 2024
6b77a2c
Do not write progress if format is json (#225)
kzrnm Feb 19, 2024
e75f7a0
Changelog
rrousselGit Feb 19, 2024
942251a
Release
rrousselGit Feb 19, 2024
855df90
Remove UnimplementedError
rrousselGit Feb 26, 2024
1026ff6
Update README.md (#231)
snapsl Feb 28, 2024
f6c4188
remove reach_five_lints (#232)
snapsl Feb 28, 2024
75c97f3
Don't start debug mode by default
rrousselGit Mar 16, 2024
c345599
Move stuff around
rrousselGit Mar 16, 2024
0d275f7
The following packages have been updated:
rrousselGit Mar 16, 2024
442b671
Add override
rrousselGit Mar 16, 2024
3732428
The following packages have been updated:
rrousselGit Mar 16, 2024
7011db9
Update README.md (#239)
mafreud Mar 20, 2024
4d8d3af
Allow pub get execution on Windows platforms (#240)
srtonz May 14, 2024
ea89c10
Update lint_rule.dart (#259)
Jul 16, 2024
dcc1ec1
Fix LintCode conflict
rrousselGit Jul 16, 2024
ae8b79b
Fix warning
rrousselGit Jul 16, 2024
c9c296c
Update rxdart
rrousselGit Jul 16, 2024
d645ab2
Update rxdart
rrousselGit Jul 16, 2024
ce4a9cb
Fix
rrousselGit Jul 16, 2024
f070143
Support analyzer 6.6.0 (#266)
rrousselGit Aug 15, 2024
3287645
custom_lint_core : 0.6.3 -> 0.6.5
rrousselGit Aug 15, 2024
1b5adbc
Skip dependency caches path in `_findRoots`. (#269)
Kurogoma4D Sep 8, 2024
d96f79e
custom_lint : 0.6.5 -> 0.6.6
rrousselGit Sep 8, 2024
362b8dc
Remove offline package resolution
rrousselGit Sep 8, 2024
cadaa35
custom_lint : 0.6.6 -> 0.6.7
rrousselGit Sep 8, 2024
5cd9ccf
Delete unnecessary file
rrousselGit Sep 14, 2024
6958d6c
Fix CI
rrousselGit Sep 27, 2024
0eab34f
Deleted outdated test
rrousselGit Sep 27, 2024
ac242a0
Fix custom_lint sending incorrect filesToAnalyze
rrousselGit Oct 2, 2024
4a6f5ce
Update CHANGELOG.md
rrousselGit Oct 2, 2024
0e53cae
Update README.md (#274)
leventkantaroglu Oct 2, 2024
ed87273
Ignore hidden projects (#272)
Rexios80 Oct 8, 2024
996fbc9
The following packages have been updated:
rrousselGit Oct 8, 2024
ee72382
Handle analyzer 0.6.9
rrousselGit Oct 9, 2024
648cc19
Delete dead code
rrousselGit Oct 9, 2024
b070f33
The following packages have been updated:
rrousselGit Oct 9, 2024
42c4c7b
Ignore deprecated
rrousselGit Oct 9, 2024
f344480
Changelog
rrousselGit Oct 10, 2024
ffdf34e
feat: support dart: packages in TypeChecker.fromPackage and TypeCheck…
oskar-zeinomahmalat-sonarsource Oct 10, 2024
ace4328
Format
rrousselGit Oct 10, 2024
0116d0a
feat: Use linters from regular dependencies (#276)
dickermoshe Oct 10, 2024
c8b2ca4
custom_lint_core : 0.6.9 -> 0.6.10
rrousselGit Oct 10, 2024
a4b6604
Use tight constraint
rrousselGit Oct 18, 2024
cf73e43
Fix batch (#290)
rrousselGit Oct 27, 2024
88adcef
The following packages have been updated:
rrousselGit Oct 27, 2024
4cd45a7
Fix typo (#293)
matthiasn Nov 5, 2024
fe6a05d
custom_lint_visitor for analyzer 7.0.0
rrousselGit Jan 8, 2025
b1a0d56
custom_lint_visitor for analyzer 7.1.0
rrousselGit Jan 8, 2025
6272266
Upgrade analyzer, analyzer_plugin, source_gen (#300)
Rexios80 Jan 8, 2025
af355d1
custom_lint_core : 0.7.0 -> 0.7.1
rrousselGit Jan 8, 2025
39c840d
Fix analysis.setContextRoots failed when DAS launched from Android St…
EricSchlichting Jan 29, 2025
e3f96b7
custom_lint : 0.7.1 -> 0.7.2
rrousselGit Jan 29, 2025
7b939df
custom_lint : 0.7.2 -> 0.7.3
rrousselGit Feb 8, 2025
a41406c
1.0.0+7.3.0
rrousselGit Feb 10, 2025
2ddcba1
Bump Freezed (#319)
rrousselGit Feb 26, 2025
61c0ccb
feat(custom_lint_core): Support workspaces (#312)
Rexios80 Feb 26, 2025
2982bc0
Upgrade analyzer_plugin to 0.13.0 (#311)
Rexios80 Feb 26, 2025
0ea97d8
Changelog
rrousselGit Feb 26, 2025
d8323f7
Handle custom hosted dependency (#288)
MobiliteDev Feb 27, 2025
685099a
Changelog
rrousselGit Feb 27, 2025
a9ab602
Merge branch 'main' of https://github.com/invertase/dart_custom_lint
rrousselGit Feb 27, 2025
119bff3
custom_lint : 0.7.3 -> 0.7.4
rrousselGit Feb 27, 2025
eb8ef17
_analyzer_plugin too
rrousselGit Feb 27, 2025
7ef70c2
custom_lint_core : 0.7.1 -> 0.7.2
rrousselGit Feb 27, 2025
7ad8d91
feature: add config severities
Artur-Wisniewski Mar 26, 2025
23708f6
feature: add error severity to readme
Artur-Wisniewski Mar 26, 2025
5f0fbcc
feature: add error severity tests
Artur-Wisniewski Mar 26, 2025
7f740e9
feature: update unknown error test
Artur-Wisniewski Mar 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Bug report
about: There is a problem in how provider behaves
title: ""
labels: bug, needs triage
assignees:
- rrousselGit
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**

<Please add a small sample to that can be executed to reproduce the problem. As a general rule, 100 lines is the maximum>

**Expected behavior**
A clear and concise description of what you expected to happen.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: I have a problem and I need help
url: https://github.com/rrousselGit/riverpod/discussions
about: Pleast ask and answer questions here
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/example_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Documentation improvement request
about: >-
Suggest a new example/documentation or ask for clarification about an
existing one.
title: ""
labels: documentation, needs triage
assignees:
- rrousselGit
---

**Describe what scenario you think is uncovered by the existing examples/articles**
A clear and concise description of the problem that you want explained.

**Describe why existing examples/articles do not cover this case**
Explain which examples/articles you have seen before making this request, and
why they did not help you with your problem.

**Additional context**
Add any other context or screenshots about the documentation request here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: enhancement, needs triage
assignees:
- rrousselGit
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
7 changes: 7 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
enable-beta-ecosystems: true
updates:
- package-ecosystem: "pub"
directory: "/"
schedule:
interval: "weekly"
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build

on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- main
paths-ignore:
- "**.md"
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
channel:
- master
pub:
- get
- upgrade

steps:
- uses: actions/checkout@v3

- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.channel }}

- name: Add pub cache bin to PATH
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

- name: Add pub cache to PATH
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV

- name: Add pubspec_overrides to the analyzer_plugin starter
run: "echo \"dependency_overrides:\n custom_lint:\n path: ${{github.workspace}}/packages/custom_lint\" > packages/custom_lint/tools/analyzer_plugin/pubspec_overrides.yaml"

- run: dart pub global activate melos

- name: Install dependencies
run: melos exec -- "dart pub ${{ matrix.pub }}"

- name: Check format
run: dart format --set-exit-if-changed .

- name: Analyze
run: dart analyze

- name: Run tests
run: melos exec --dir-exists=test "dart test"

# - name: Upload coverage to codecov
# run: curl -s https://codecov.io/bash | bash
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
log.txt

pubspec.lock
.packages

# Ignoring generated files, as they pollute pull requests and can create merge conflicts
*.g.dart
*.freezed.dart
# Including generated files from the lib folders, as these should be published on pub
!packages/*/lib/**/*.freezed.dart
!packages/*/lib/**/*.g.dart

# Ignoring native folders of the example as they can be re-generated easily
**/example/android/
Expand Down
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"tasks": [
{
"label": "delete .plugin_manager",
"command": "rm -rf /Users/remirousselet/.dartServer/.plugin_manager/ ; echo ' ' > /Users/remirousselet/dev/invertase/custom_lint/packages/target_lint/log.txt ; echo ' ' > /Users/remirousselet/dev/invertase/custom_lint/packages/custom_lint/log.txt ; echo ' ' > /Users/remirousselet/dev/invertase/custom_lint/packages/riverpod_lint/log.txt",
"command": "rm -rf ~/.dartServer/.plugin_manager/",
"type": "shell",
"presentation": {
"reveal": "silent",
"reveal": "never",
}
}
]
Expand Down
201 changes: 201 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Invertase Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading