This repository has been archived by the owner on Dec 10, 2020. It is now read-only.
forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
--verbose
and --quiet
options to compile.scalastyle
This adds new `--verbose` and `--quiet` options to the `compile.scalastyle` goal, which get threaded directly to scalastyle, as requested in issue pantsbuild#1888. Note: `scalastyle` currently accepts but ignores the `--verbose` option (See: scalastyle/scalastyle#159). However, I include it anyway for when that issue is eventually fixed. Testing Done: $ ./pants test tests/python/pants_test/tasks:scalastyle_integration # Newly added integration test passes $ ./pants test tests/python/pants_test:all # Unit tests pass I'm relying on Travis for the remaining integration tests Bugs closed: 2172 Reviewed at https://rbcommons.com/s/twitter/r/2799/
- Loading branch information
1 parent
1fd2293
commit 5fdf71d
Showing
5 changed files
with
51 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
scala_library(name = 'styleissue', | ||
sources = ['StyleIssue.scala'], | ||
) |
8 changes: 8 additions & 0 deletions
8
examples/src/scala/org/pantsbuild/example/styleissue/StyleIssue.scala
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
// Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
package org.pantsbuild.example.hello.styleissue; | ||
|
||
// A program designed to deliberately fail a scalastyle check | ||
class StyleIssue { | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/src/scala/org/pantsbuild/example/styleissue/style.xml
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<scalastyle> | ||
<check level="error" class="org.scalastyle.file.FileTabChecker" enabled="true" /> | ||
</scalastyle> |
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