Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create lint tests #15

Merged
merged 5 commits into from
Oct 14, 2023
Merged

feat: create lint tests #15

merged 5 commits into from
Oct 14, 2023

Conversation

alexeagle
Copy link
Member

Fixes #11

FYI @Bencodes

Demo:

example % bazel test test:pmd   
INFO: Analyzed target //test:pmd (9 packages loaded, 990 targets configured).
INFO: Found 1 test target...
INFO: From PMD src/foo.PMD-report.txt:
Oct 14, 2023 8:18:06 AM net.sourceforge.pmd.PMD encourageToUseIncrementalAnalysis
WARNING: This analysis could be faster, please consider using Incremental Analysis: https://pmd.github.io/pmd-6.55.0/pmd_userdocs_incremental_analysis.html
FAIL: //test:pmd (see /private/var/tmp/_bazel_alexeagle/3eecd93732ac7c6f4f360a54a468da50/execroot/_main/bazel-out/darwin_arm64-fastbuild/testlogs/test/pmd/test.log)
INFO: From Testing //test:pmd:
==================== Test output for //test:pmd:
src/Foo.java:8: FinalizeOverloaded:     Finalize methods should not be overloaded
================================================================================
Target //test:pmd up-to-date:
  bazel-bin/test/assert_no_lint_warnings.sh
INFO: Elapsed time: 13.232s, Critical Path: 2.97s
INFO: 14 processes: 8 internal, 5 darwin-sandbox, 1 worker.
//test:pmd                                                               FAILED in 0.3s
  /private/var/tmp/_bazel_alexeagle/3eecd93732ac7c6f4f360a54a468da50/execroot/_main/bazel-out/darwin_arm64-fastbuild/testlogs/test/pmd/test.log

Executed 1 out of 1 test: 1 fails locally.

Copy link
Member

@gregmagolan gregmagolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌯

@alexeagle alexeagle merged commit 6e181a2 into main Oct 14, 2023
3 of 4 checks passed
@alexeagle alexeagle deleted the test branch October 19, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR]: Expose lint actions as tests
2 participants