diff --git a/README.md b/README.md index ac2ba664f..0f938e98b 100644 --- a/README.md +++ b/README.md @@ -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' @@ -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. diff --git a/src/formatter/text.ts b/src/formatter/text.ts index c2459f071..0902830bc 100644 --- a/src/formatter/text.ts +++ b/src/formatter/text.ts @@ -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;