This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Support for ERROR & WARN per rule #1738
Merged
Merged
Changes from 11 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
b002f7c
Support config object in tslint.json
olore c597b28
Use arrayify to make tslint.json cleaner if only 1 option, remove con…
olore 9afc794
Handle warnings in stylishFormatter, verboseFormatter & vsoFormatter
olore 35add24
* Formatter#format now takes failures,warnings,fixes (was failures, f…
olore ba2b4e2
Fix formatter tests
olore 47e610e
Set warnings to default to [] if none passed in
olore 135f215
Merge branch 'master' into enhanced-config-options
olore 7c5e844
cleanup
olore 024570a
Merge branch 'master' into enhanced-config-options
olore 2c74270
Merge branch 'master' into enhanced-config-options
olore 0af2c4c
cleanup for public unveiling, prepping for critique
olore f666d7c
RuleFailure -> RuleViolation
olore 8fd7469
WIP - broken tests
olore 9ab5e56
Merge branch 'master' into extend-rule-failure-to-include-warnings
olore 4e6c572
Merge branch 'master' into extend-rule-failure-to-include-warnings
olore 5087498
Cleanup after comparison with master
olore cc31e19
Merge branch 'master' into enhanced-config-options
olore 2868256
revert RuleViolation -> RuleFailure because it would break all custom…
olore 556fd4b
Complete the reverting of 'violation' back to 'failure'
olore d427ae3
Reverting some changes after comparing to master
olore 7700ba1
Merge branch 'master' into enhanced-config-options
olore 2302949
Revert tslint.json as we're still using the 'latest' from npm to lint…
olore bb5d808
Merge branch 'master' into enhanced-config-options
olore ec26ccc
Merge branch 'master' into enhanced-config-options
olore 86e535f
Merge branch 'master' into enhanced-config-options
olore 2401d38
Merge branch 'master' into enhanced-config-options
olore 258c41e
Merge branch 'master' into fix
olore 2ce7074
post-merge cleanup
olore ac388b8
pmdFormatter - Change priority depending on level (3 = error, 4 = war…
olore dcc3916
msbuildFormatter - output 'error' and 'warning' based on RuleLevel
olore 68d94a3
checkstyleFormatter - output 'error' and 'warning' based on RuleLevel
olore 33959e2
proseFormatter - output 'error' and 'warning' based on RuleLevel
olore b7aabcb
Accept warn/WARN/warning/WARNING in config
olore c0ac041
Add breaking changes to CHANGELOG.md
olore 4d97b14
Merge branch 'master' into enhanced-config-options
olore dec3e12
Refactor - move config/ tests to config-legacy/
olore bb86f73
Create config tests for new tslint.json format and split legacy tests…
olore 05d324e
Add valid values for to changelog
olore 0683ae0
Merge branch 'master' into enhanced-config-options-tests
olore 6e9967b
Cleanup after merge
olore 1b0aedc
Merge branch 'master' into enhanced-config-options
olore 18fb432
RuleLevel -> RuleSeverity to align with ESLint
olore f73e930
Tests for setting severity with and without options
olore 8e826ff
Merge branch 'master' into enhanced-config-options
olore 1999a4e
Merge branch 'master' into enhanced-config-options
olore 1d0a6e0
Update scripts for config-legacy/
olore d1016da
remove legacy tests and add boolean config inheirt test
82c7036
Merge branch 'master' of github.com:palantir/tslint into enhanced-con…
e7e99cc
fix up constructor args
7d38ffb
use string literal union instead of enum
96c1f6f
populate rule severity in failures without specifying as argument for…
c15eb34
only exit(2) if errors > 0. Otherwise, exit(0) even with warnings
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ var Rule = (function (_super) { | |
Rule.prototype.apply = function (sourceFile) { | ||
return this.applyWithWalker(new NoFailWalker(sourceFile, this.getOptions())); | ||
}; | ||
Rule.prototype.isWarning = function() { return false; }; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I couldn't figure out where these files were generated from, so I just modified by hand. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think the .ts files were checked in |
||
return Rule; | ||
})(Lint.Rules.AbstractRule); | ||
exports.Rule = Rule; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allow the tslint.json maintainer to no be forced to put a single value in an array