Commit Graph
24 Commits
Author SHA1 Message Date
Michael Comella 7bad35ad41 Bug 1258789 - Remove allowEmptyLoops I added previously to simplify things. r=grisha
MozReview-Commit-ID: 7iL8VjkMSTh
2016-04-13 11:22:41 -07:00
Michael Comella 8e357ee7f0 Bug 1258789 - Remove WhitespaceAround tokens filter and fix lcurly issues. r=grisha
Some issues remain.

MozReview-Commit-ID: 3vWQ3z5mnba
2016-04-13 11:17:55 -07:00
Michael Comella acc0113162 Bug 1258789 - Add div* token for WhitespaceAround. r=grisha
Fix some cast issues while I was at it.

MozReview-Commit-ID: 53ANWpnIGwk
2016-04-13 11:15:00 -07:00
Michael Comella 3f67ad622b Bug 1258789 - Add rcurly and fix {} issues. r=grisha
MozReview-Commit-ID: m2dF4mPC1u
2016-04-13 10:51:26 -07:00
Michael Comella 8c39920a2b Bug 1258789 - Add passing tokens to WhitespaceAround. r=grisha
MozReview-Commit-ID: ANbUHFNzE7W
2016-04-12 18:44:18 -07:00
Michael Comella a046b02bac Bug 1258789 - Add plus operator to WhitespaceAround and fix. r=grisha
MozReview-Commit-ID: 419NkkMHWCG
2016-04-12 18:42:40 -07:00
Michael Comella b0b8adb484 Bug 1258789 - Add star to WhitespaceAround and fix. r=grisha
MozReview-Commit-ID: 3FY8m1qPj8V
2016-04-12 18:36:28 -07:00
Michael Comella 4f835cbf66 Bug 1258789 - Add shift operators to WhitespaceAround & fix. r=grisha
MozReview-Commit-ID: 9sCtvvUYixh
2016-04-12 18:29:58 -07:00
Michael Comella 3dca5b57f7 Bug 1258789 - Add a few more to WhitespaceAround and fix. r=grisha
MozReview-Commit-ID: AkJEXhlp3Rf
2016-04-12 18:27:20 -07:00
Michael Comella bc0bac7670 Bug 1258789 - Add while to WhitespaceAround. r=grisha
MozReview-Commit-ID: HhbBCjojNiC
2016-04-12 18:21:45 -07:00
Michael Comella b7fa7351c7 Bug 1258789 - Add synchronized & non-failing try to WhitespaceAround. r=grisha
MozReview-Commit-ID: EBnxF8j2eeY
2016-04-12 18:20:51 -07:00
Michael Comella 3a2272e8a0 Bug 1258789 - Add switch for whitespaceAround. r=grisha
MozReview-Commit-ID: 167JoSl5go5
2016-04-12 18:19:14 -07:00
Michael Comella 6d0aab4c68 Bug 1258789 - Add if & return for WhitespaceAround. r=grisha
MozReview-Commit-ID: HcWrFHy2CeP
2016-04-12 18:18:02 -07:00
Michael Comella cad83a23ef Bug 1258789 - Add literal catch & a few others that don't break for WhitespaceAround. r=grisha
MozReview-Commit-ID: 1En0xuxT4md
2016-04-12 18:16:16 -07:00
Michael Comella 421913d097 Bug 1258789 - Add binary logic operators for WhitespaceAround. r=grisha
MozReview-Commit-ID: 12BUCUmassJ
2016-04-12 18:10:55 -07:00
Michael Comella f74f532420 Bug 1258789 - Add WhitespaceAround for ASSIGN token. r=grisha
MozReview-Commit-ID: 6IOIatuHuYW
2016-04-12 18:07:33 -07:00
Michael Comella edb03807c1 Bug 1263056 - Add TODO for CAST check in WhitespaceAfter. r=sebastian
MozReview-Commit-ID: 5ZRSnGylCnJ
2016-04-07 18:23:54 -07:00
Michael Comella e606eeea86 Bug 1263056 - Add WhitespaceAfter comma & fix issues. r=sebastian
Fixed via:
 gsed -i"" -e "s/,\([^[:space:]\"']\)/, \1/g" **/*.java

And hand curation.

MozReview-Commit-ID: DHaXJbW4plY
2016-04-07 18:07:29 -07:00
Michael Comella fa76e2c48d Bug 1263056 - Add WhitespaceAfter for semi-colons & fix warnings. r=sebastian
MozReview-Commit-ID: FWujl1XuxgR
2016-04-07 17:53:55 -07:00
Michael Comella fb562480f3 Bug 1258794 - Add trailing whitespace checkstyle check & fix issues. r=nalexander
MozReview-Commit-ID: IUslNabcTHO
2016-04-06 10:08:46 -07:00
Michael Comella 5fff7545cb Bug 1258794 - Pre: Add GenericWhitespace and fix single issue. r=nalexander
MozReview-Commit-ID: DVO9zFQCRzZ
2016-04-06 09:57:26 -07:00
Michael Comella b71fc4cb73 Bug 1258769 - Add checkstyle gradle task. r=nalexander
Run checkstyle via:
 ./mach gradle app:checkstyle

This is intended to be added to automation in bug 1258787 and made more robust
in bug 1261486.

For the addition of future checks, it's worth noting Google's config is
available:
  https://github.com/checkstyle/checkstyle/blob/3e4367941c3e9680703e8ea8400abbd5dc78e1d9/src/main/resources/google_checks.xml

And this version contains links with descriptions of each of the tasks:
  http://checkstyle.sourceforge.net/google_style.html

MozReview-Commit-ID: 5HvtQsyY2JQ
2016-04-01 14:20:45 -07:00
Michael Comella c11bbea33b Bug 1258769 - Backed out changeset fe11700b6cdf.
MozReview-Commit-ID: Jxz5RK8o4n4
2016-03-25 13:53:58 -07:00
Michael Comella c6fb907a78 Bug 1258769 - Use soter to add checkstyle gradle task with simple checks. r=nalexander
Run checkstyle via:
 ./mach gradle app:checkstyle

This is intended to be added to automation in bug 1258787.

Concerns with this patch:
  1) I don't have a maven-metadata-local.xml. However, I didn't take the
snapshotted version and [1] seems to indicate it's unnecessary for my
particular build.

For the addition of future checks, it's worth noting Google's config is
available:
  https://github.com/checkstyle/checkstyle/blob/3e4367941c3e9680703e8ea8400abbd5dc78e1d9/src/main/resources/google_checks.xml

And this version contains links with descriptions of each of the tasks:
  http://checkstyle.sourceforge.net/google_style.html

[1]: https://maven.apache.org/ref/3.3.3/maven-repository-metadata/

MozReview-Commit-ID: ID3X9ZA27b0
2016-03-25 09:52:15 -07:00