Skip to content
Merged
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
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Run the `ui5lint` command in your project root folder
```sh
ui5lint

## UI5Lint Report ##
UI5 linter report:

/application/webapp/controller/App.controller.js
10:4 error Call to deprecated function 'attachTap' of class 'Button'
Expand All @@ -67,6 +67,15 @@ Note: Use "ui5lint --details" to show more information about the findings

### Options

#### `--file-paths`

Specify which files to lint by providing a list of file paths.

**Example:**
```sh
ui5lint --file-paths webapp/controller/App.controller.js webapp/view/App.view.xml
```

#### `--details`

Show more information about the findings and how to fix them.
Expand Down
3 changes: 1 addition & 2 deletions src/formatter/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export class Text {
#buffer = "";

format(lintResults: LintResult[], showDetails: boolean) {
this.#writeln("");
this.#writeln(`## UI5Lint Report (${new Date().toLocaleString()}) ##`);
this.#writeln(`UI5 linter report:`);
this.#writeln("");
let totalErrorCount = 0;
let totalWarningCount = 0;
Expand Down