Skip to content

Releases: mgechev/codelyzer

4.4.1

24 Jun 00:25
Compare
Choose a tag to compare

Bug Fixes

  • TypeError: ts.isStringLiteralLike is not a function #669 d922dcb
  • prefer-inline-decorator is missing in v4.4 #670 d922dcb

4.4.0

23 Jun 06:08
Compare
Choose a tag to compare

Bug Fixes

  • no-input-prefix: exact strings not being reported (#597) (1ed8d8c)
  • no-input-rename: aria attributes not being allowed to be renamed (#665) (2c905ab), closes #663
  • no-input-rename: fix bugs (#585) (75f9de6), closes #580
  • no-template-call-expression: not being exported (#582) (ad57552), closes #577
  • no-life-cycle-call: fix bugs (#575) (4415cc2), closes #573
  • no-input-prefix: not being able to check for multiple concurrent prefixes (#590) (43d415a), closes #589
  • no-output-rename: not being reported for some cases (#614) (5e34f41), closes #613
  • template-conditional-complexity: not reporting failures for '[ngIf]' (#611) (7fc3b09), closes #607
  • template-cyclomatic-complexity: not reporting failures for '[ngForOf]' and '[ngIf]' (#612) (fedd331), closes #609
  • trackBy-function: not reporting failures for '[ngForOf]' (#610) (af52912), closes #608
  • some rules not considering options correctly (#617) (bce0026)

Features

  • import-destructuring-spacing: add fixer (#595) (2acc27b)
  • max-inline-declarations: add option to limit animations lines (#569) (25f3e16), closes #568
  • rule: add no-queries-parameter rule (#571) (e9f4d23)
  • rule: add prefer-inline-decorator rule (#586) (5d5e21d), closes #549
  • build scripts are not cross-platform #581 204c8ef, closes #454
  • upgrade TypeScript dependency to 2.7.2 #584 d4bf62d, closes #583
  • turn on strict TS compilation mode (#631) (da0f553), closes #629
  • externalizing template, css visitor abstractions and NgWalker (#658) (b79ea58)

Credits to the codelyzer's maintainers and contributors.

4.3.0

23 Apr 05:48
Compare
Choose a tag to compare

New Rules

  • max-inline-declarations which limits the size of inline templates and/or styles. Credits to NagRock #536 174ed46.
  • prefer-output-readonly requires the @Outputs of a component to be readonly. Credits to rafaelss95 #515 3d652d1.
  • no-conflicting-life-cycle-hooks prevents to implement OnChanges and DoCheck on the same class. Credits to rafaelss95 #560 e521115.
  • enforce-component-selector Component Selector Required #551 b9c899b. Credits to wKoza.
  • no-life-cycle-call disallow explicit calls to lifecycle hooks. Credits to rafaelss95 #427 3e10013

Bug Fixes

  • Possible bug with no-input-rename #374 f3a53bd.
  • Removed dependency on @angular/platform-browser-dynamic #525 671e954.
  • Rule contextual-life-cycle too aggressively scoped #545 dcb4b3e.
  • no-output-named-after-standard-event Does Not Check Output Rename #537 96d9292.
  • Template Conditional Complexity reports incorrect threshold #533 5851306.

A lot of credits go to rafaelss95, wKoza. The rest of the amazing people who work on codelyzer can be found here.

4.2.1

04 Mar 19:21
Compare
Choose a tag to compare

Bug Fixes

  • Improved peerDependencies range.

4.2.0

04 Mar 19:20
Compare
Choose a tag to compare

New Rules

  • template-cyclomatic-complexity which limits the estimated Cyclomatic complexity in your templates. Credits to wKoza.
  • template-conditional-complexity which limits the complexity of boolean expressions inside of your templates. Credits to wKoza.

Features

  • Support for Angular version 6 #524 50fa2d6
  • Cyclomatic complexity rule template-cyclomatic-complexity #514 3221330
  • Limiting template condition complexity (rule template-conditional-complexity) #508 bb86295
  • Complete Rules Status section in README and complete Rules Page #501 1fe9d22

Bug Fixes

  • "extends": ["codelyzer"] is broken #505 7b76dfa
  • Message for 'use-host-property-decorator' includes invalid link to Angular style docs #510 5fc77c9

4.1.0

18 Jan 17:53
Compare
Choose a tag to compare

Features

  • Feature request: no output named after a standard DOM event #473 ae3f07b
  • Support for Angular Compiler 5.2 #496 6a6b3de

Bug Fixes

  • i18n check-text edge cases #442 4c1c8d4
  • Codelyzer hanging for "styles" attribute in Angular component #446 a31c6d2 and 9c90ac3
  • no-output-on-prefix incorrectly throws error if output property name starts with "one" #480 9b844cc

Thanks to @gbilodeau for NoOutputNamedAfterStandardEventRule and wKoza for the code reviews!

4.0.2

11 Dec 09:18
Compare
Choose a tag to compare

Bug Fixes

  • Two issues in angular-whitespace related to check-semicolon and check-interpolation #469 2ef7438
  • Check multiple semicolons inside the directive expressions #472 e6036d2

Thanks to @sagittarius-rev for the bug fixes!

4.0.1

03 Nov 18:08
Compare
Choose a tag to compare

Bug Fixes

  • Fix noOutputOnPrefixRule and rename it to no-output-on-prefix. You can now enable it with:
"no-output-on-prefix": true
  • Fix broken tests for noOutputOnPrefixRule.

4.0.0

01 Nov 19:34
Compare
Choose a tag to compare

Features

Enable the new rule by adding the following line in your tslint.json config file:

"no-output-on-prefix-name": true

Thanks to @eromano for the rule implementation!

Breaking Changes

  • The rules templates-use-public, no-access-missing-member, invoke-injectable and template-to-ng-template no longer exist. Remove them from your tslint.json configuration.

3.2.2

23 Oct 19:46
Compare
Choose a tag to compare

Features

Bug Fixes