Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ jobs:
channel:
- master
pub:
# TODO - uncomment this after the SDK bumps its dependencies
# - get
- get
- upgrade

steps:
Expand All @@ -36,16 +35,16 @@ jobs:
- 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"
- name: Add pub cache to env
run: echo "PUB_CACHE=\"$HOME/.pub-cache\"" >> $GITHUB_ENV

- run: dart pub global activate melos

- name: Install dependencies
run: melos exec -- "dart pub ${{ matrix.pub }}"
run: |
dart pub ${{ matrix.pub }}
cd packages/custom_lint/example/example_lint/ dart pub ${{ matrix.pub }}
cd ../../../custom_lint_builder/example/example_lint/ dart pub ${{ matrix.pub }}

- name: Check format
run: dart format --set-exit-if-changed .
Expand Down
6 changes: 0 additions & 6 deletions melos.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/custom_lint/example/example_lint/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: custom_lint_example_lint
publish_to: none

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: ">=3.5.0 <4.0.0"

dependencies:
analyzer: ^7.5.0
Expand Down

This file was deleted.

4 changes: 3 additions & 1 deletion packages/custom_lint/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: custom_lint_example_app
publish_to: none

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: ">=3.5.0 <4.0.0"

resolution: workspace

dependencies:
riverpod: ^2.0.0
Expand Down
10 changes: 0 additions & 10 deletions packages/custom_lint/example/pubspec_overrides.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion packages/custom_lint/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ repository: https://github.com/invertase/dart_custom_lint
issue_tracker: https://github.com/invertase/dart_custom_lint/issues

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"

resolution: workspace

dependencies:
analyzer: ^7.5.0
Expand Down
4 changes: 0 additions & 4 deletions packages/custom_lint/pubspec_overrides.yaml

This file was deleted.

10 changes: 3 additions & 7 deletions packages/custom_lint/tools/analyzer_plugin/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ version: 0.8.0
publish_to: none

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"

resolution: workspace

dependencies:
custom_lint: 0.8.0

# TODO: If you want to contribute to custom_lint, add a pubspec_overrides.yaml file
# in this folder, containing the following:
# dependency_overrides:
# custom_lint:
# path: /absolute/path/to/custom_lint/folder
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: custom_lint_builder_example_lint
publish_to: none

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: ">=3.5.0 <4.0.0"

resolution: workspace

dependencies:
analyzer: ^7.5.0
Expand Down

This file was deleted.

4 changes: 3 additions & 1 deletion packages/custom_lint_builder/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: custom_lint_builder_example_app
publish_to: none

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: ">=3.5.0 <4.0.0"

resolution: workspace

dependencies:
riverpod: ^2.0.0
Expand Down
10 changes: 0 additions & 10 deletions packages/custom_lint_builder/example/pubspec_overrides.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion packages/custom_lint_builder/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ description: A package to help writing custom linters
repository: https://github.com/invertase/dart_custom_lint

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"

resolution: workspace

dependencies:
analyzer: ^7.5.0
Expand Down
8 changes: 0 additions & 8 deletions packages/custom_lint_builder/pubspec_overrides.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion packages/custom_lint_core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ description: A package to help writing custom linters
repository: https://github.com/invertase/dart_custom_lint

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"

resolution: workspace

dependencies:
analyzer: ^7.5.0
Expand Down
6 changes: 0 additions & 6 deletions packages/custom_lint_core/pubspec_overrides.yaml

This file was deleted.

5 changes: 3 additions & 2 deletions packages/custom_lint_visitor/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ description: A package that exports visitors for CustomLint.
repository: https://github.com/invertase/dart_custom_lint

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"

resolution: workspace

dependencies:
analyzer: ">=7.4.5 <7.7.0"

dev_dependencies:
build_runner: ^2.5.0
lint_visitor_generator:
path: ../lint_visitor_generator
test: ^1.22.2
4 changes: 0 additions & 4 deletions packages/custom_lint_visitor/pubspec_overrides.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion packages/lint_visitor_generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: lint_visitor_generator
publish_to: none

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"

resolution: workspace

dependencies:
analyzer: ^7.5.0
Expand Down
15 changes: 13 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ name: melos_root
publish_to: none

environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ^3.5.0

workspace:
- packages/custom_lint
- packages/custom_lint/example
- packages/custom_lint/tools/analyzer_plugin
- packages/custom_lint_builder
- packages/custom_lint_builder/example
- packages/custom_lint_core
- packages/custom_lint_visitor
- packages/lint_visitor_generator

dev_dependencies:
melos: ^3.0.0
melos: ^7.1.0