Comparing version 0.4.4 to 0.4.5
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -7,2 +7,4 @@ var __extends = this.__extends || function (d, b) { | ||
}; | ||
var OPTION_CHECK_PARAMETERS = "check-parameters"; | ||
var Rule = (function (_super) { | ||
@@ -83,5 +85,5 @@ __extends(Rule, _super); | ||
var variableName = node.identifier.text(); | ||
var position = this.positionAfter(node.modifiers); | ||
var position = this.positionAfter(node.dotDotDotToken, node.modifiers) + node.leadingTriviaWidth(); | ||
if (!this.hasModifier(node.modifiers, "public") && !this.skipParameterDeclaration) { | ||
if (!this.hasModifier(node.modifiers, "public") && !this.skipParameterDeclaration && this.hasOption(OPTION_CHECK_PARAMETERS)) { | ||
this.validateReferencesForVariable(variableName, position); | ||
@@ -88,0 +90,0 @@ } |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
@@ -0,0 +0,0 @@ var __extends = this.__extends || function (d, b) { |
Change Log | ||
=== | ||
v0.4.5 | ||
--- | ||
* [feature] `no-unused-variable` no longer checks parameters by defualt. Parameters are now only checked if the `check-parameters` option is set. | ||
* [bug] `no-unused-variable` parameter check no longer fails on variable argument parameters (like ...args) and on cases where the parameters are broken up by newlines. | ||
v0.4.4 | ||
@@ -5,0 +10,0 @@ --- |
{ | ||
"name": "tslint", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "a static analysis linter for TypeScript", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -41,2 +41,4 @@ TSLint [![NPM version](https://badge.fury.io/js/tslint.png)](http://badge.fury.io/js/tslint) [![Builds](https://api.travis-ci.org/repositories/palantir/tslint.png?branch=master)](https://travis-ci.org/palantir/tslint) | ||
* `no-unused-variable` disallows unused imports, variables, functions and private class members. | ||
* `"check-parameters"` disallows unused function and constructor parameters. | ||
* NOTE: this option is experimental and does not work with classes that use abstract method declarations, among other things. Use at your own risk. | ||
* `no-unreachable` disallows unreachable code after `break`, `catch`, `throw`, and `return` statements. | ||
@@ -43,0 +45,0 @@ * `no-use-before-declare` disallows usage of variables before their declaration. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125458
197
7036152