Skip to content

Commit 944118e

Browse files
authored
unnecessary_new (#72)
* unnecessary_new * workflow permissions
1 parent 781c189 commit 944118e

File tree

7 files changed

+303
-324
lines changed

7 files changed

+303
-324
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ on:
88
push:
99
tags: [ 'v[0-9]+.[0-9]+.[0-9]+*' ]
1010

11+
permissions:
12+
pull-requests: write
13+
1114
jobs:
1215
publish:
1316
if: ${{ github.repository_owner == 'devoncarew' }}
14-
permissions:
15-
pull-requests: write
1617
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main

analysis_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
include: package:lints/core.yaml
2+
# include: package:lints/recommended.yaml
23

34
linter:
45
rules:
56
- always_declare_return_types
7+
- unnecessary_new
68
- use_function_type_syntax_for_parameters

0 commit comments

Comments
 (0)