Skip to content

Commit

Permalink
Added rule no-trailing-whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
duaraghav8 committed Apr 7, 2019
1 parent 8ff8ad4 commit c92994f
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 66 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Changelog

## 1.2.4 ()
- Added `getLines()` sourceCode utility function for rule developers
- Added rule `no-trailing-whitespace` to warn the user when code, comment or blank lines contain trailing whitespaces. This rule will supply the `fix` functionality in a future release.
- Added `getLines()` sourceCode utility function for rule developers. This method returns the source code split into lines.
- Added `getComments()` sourceCode utility function for rule developers. This method returns a list of AST Nodes representing comments in the source code.

## 1.2.3 (2019-02-11)
- Added support for `solium-disable-previous-line` comment directive.
Expand Down
7 changes: 7 additions & 0 deletions config/solium.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@
"recommended": true,
"type": "error",
"description": "Ensure consistent linebreak style"
},

"no-trailing-whitespace": {
"enabled": true,
"recommended": true,
"type": "warning",
"description": "Disallow trailing spaces and tabs at the end of lines"
}
}
}
Loading

0 comments on commit c92994f

Please sign in to comment.