Skip to content

Commit 5b5699e

Browse files
committed
npm run format:write
1 parent 1170f4d commit 5b5699e

File tree

11 files changed

+38
-26
lines changed

11 files changed

+38
-26
lines changed

.github/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ changelog:
88
- bug
99
- title: Other Changes
1010
labels:
11-
- "*"
11+
- '*'
1212
exclude:
1313
labels:
1414
- dependencies

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ jobs:
5757
id: test-action
5858
uses: ./
5959
with:
60-
report-path: ${{ github.workspace }}/__tests__/resource/lint-results.xml
60+
report-path:
61+
${{ github.workspace }}/__tests__/resource/lint-results.xml
6162
continue-on-error: true

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
# GitHub Action for Android Lint
44

5-
This Action generates annotations from [Android Lint](https://developer.android.com/studio/write/lint) Report XML.
5+
This Action generates annotations from
6+
[Android Lint](https://developer.android.com/studio/write/lint) Report XML.
67

78
## Usage
89

9-
An example workflow(.github/workflows/android-lint.yml) to executing Android Lint follows:
10+
An example workflow(.github/workflows/android-lint.yml) to executing Android
11+
Lint follows:
1012

1113
```yml
1214
name: AndroidLint
@@ -48,9 +50,13 @@ jobs:
4850
4951
## References
5052
51-
- Generated from [actions/typescript-action](https://github.com/actions/typescript-action) as template.
52-
- This refer to [mobileposse/github-android-lint-action](https://github.com/mobileposse/github-android-lint-action).
53+
- Generated from
54+
[actions/typescript-action](https://github.com/actions/typescript-action) as
55+
template.
56+
- This refer to
57+
[mobileposse/github-android-lint-action](https://github.com/mobileposse/github-android-lint-action).
5358
5459
## License
5560
56-
action-android-lint is available under the MIT license. See [the LICENSE file](./LICENSE) for more info.
61+
action-android-lint is available under the MIT license. See
62+
[the LICENSE file](./LICENSE) for more info.

__tests__/annotation.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {expect} from '@jest/globals'
2-
import {Annotation} from '../src/annotation.js'
1+
import { expect } from '@jest/globals'
2+
import { Annotation } from '../src/annotation.js'
33

44
describe('annotation.ts', () => {
55
it('test Annotation.constructor with Warning', () => {

__tests__/main.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { jest } from '@jest/globals'
22
import * as path from 'path'
33
import { fileURLToPath } from 'url'
4-
import {expect} from '@jest/globals'
4+
import { expect } from '@jest/globals'
55
import * as core from '../__fixtures__/core.js'
66

77
jest.unstable_mockModule('@actions/core', () => core)
@@ -40,7 +40,10 @@ describe('main.ts', () => {
4040
})
4141

4242
await run()
43-
expect(core.setFailed).toHaveBeenNthCalledWith(1, 'Android Lint with 1 error')
43+
expect(core.setFailed).toHaveBeenNthCalledWith(
44+
1,
45+
'Android Lint with 1 error'
46+
)
4447
})
4548

4649
it('test runs without error', async () => {

__tests__/parser.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import path from 'path'
22
import { fileURLToPath } from 'url'
3-
import {expect} from '@jest/globals'
4-
import {Annotation} from '../src/annotation.js'
5-
import {parseXmls, parseXml} from '../src/parser.js'
3+
import { expect } from '@jest/globals'
4+
import { Annotation } from '../src/annotation.js'
5+
import { parseXmls, parseXml } from '../src/parser.js'
66

77
describe('parser.ts', () => {
88
const __dirname = path.dirname(fileURLToPath(import.meta.url))

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ branding:
88

99
inputs:
1010
report-path:
11-
description: The lint report file path. Support glob patterns. e.g `build/reports/*.xml`
11+
description:
12+
The lint report file path. Support glob patterns. e.g
13+
`build/reports/*.xml`
1214
required: true
1315
follow-symbolic-links:
1416
description: Indicates whether to follow symbolic links

src/annotation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {AnnotationProperties} from '@actions/core'
2-
import {AnnotationSeverityLevel} from './annotation-severity-level.js'
1+
import { AnnotationProperties } from '@actions/core'
2+
import { AnnotationSeverityLevel } from './annotation-severity-level.js'
33

44
export class Annotation {
55
severityLevel: AnnotationSeverityLevel

src/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as core from '@actions/core'
2-
import {Annotation} from './annotation.js'
2+
import { Annotation } from './annotation.js'
33

44
export const echoMessages = (annotations: Annotation[]): void => {
55
for (const annotation of annotations) {

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as core from '@actions/core'
22
import * as glob from '@actions/glob'
3-
import {echoMessages} from './command.js'
4-
import {parseXmls} from './parser.js'
3+
import { echoMessages } from './command.js'
4+
import { parseXmls } from './parser.js'
55

66
export async function run(): Promise<void> {
77
try {
8-
const reportPath = core.getInput('report-path', {required: true})
8+
const reportPath = core.getInput('report-path', { required: true })
99
const globOptions = {
1010
followSymbolicLinks: core.getBooleanInput('follow-symbolic-links')
1111
}
@@ -18,7 +18,7 @@ export async function run(): Promise<void> {
1818

1919
echoMessages(annotations)
2020

21-
const errors = annotations.filter(annotation => {
21+
const errors = annotations.filter((annotation) => {
2222
return annotation.severityLevel === 'error'
2323
})
2424
if (errors.length) {

0 commit comments

Comments
 (0)