codelyzer icon indicating copy to clipboard operation
codelyzer copied to clipboard

Static analysis for Angular projects.

Results 89 codelyzer issues
Sort by recently updated
recently updated
newest added

**Describe the bug** I'm having a problem with the aforementioned rule when using modified key events. For instance: `(keydown.enter)="handler()"` **Context and configuration** - **Rule:** template-click-events-have-key-events - **Contents of tslint.json:** ```...

I am facing a use case where I do not want to specify an empty or non-empty alt text on an image element. However, I still want to provide an...

The changelog entry for version 6.0.0 is missing.

The docs pages for the rules should mention each rule's default. Otherwise the only way to know is to inspect the code.

help wanted

I found this could be useful if we want to enforce the code to use always specific rule in decorators e.g always use `OnPush` change detection References: https://github.com/angular/components/pull/7119/files#diff-ace19bd0c04529e685320269e3c05de9 https://github.com/angular/components/pull/6800/files#diff-4f12977d13592c5f817099357ce8af08

**Reproduction:** ```JSON { "rules": { "template-no-call-expression": true } } ``` ```ts @Component({ template: ` {{ obj?.nested1() }} {{ obj!.nested1() }} ` }) class TestComponent {} ```

bug

This relates to me trying to use pug with codelyzer here: https://github.com/mgechev/codelyzer/issues/880 The problem is that I don't have sourcemaps. When I use tslint --fix, any template rules that have...

bug

**Describe the bug** Can't disable the `template-cyclomatic-complexity` rule. **Context and configuration** I'm using tslint in an Angular project. `tsconfig.json` setting: `"template-cyclomatic-complexity": [true, 10],` Following this readme (https://github.com/mgechev/codelyzer/blob/master/README.md#disable-a-rule-that-validates-template-or-styles) in order to...

bug

**Describe the bug** Single HTML entities should be ignored. **To Reproduce** Rule: template-i18n is enabled Template contains: `–` **Expected behavior** Do not throw a linter error for single HTML entities.

Rules that apply to templates lowercase the file paths. (Perhaps only on macOS.) This makes [tools](https://github.com/SublimeLinter/SublimeLinter/issues/1665#issuecomment-535213408) trying to identify the location of the file not be able to do a...