Skip to content

Commit c5506fd

Browse files
author
AlexRogalskiy
committed
Added info on workflows
Updates on github-actions
1 parent df3a1ac commit c5506fd

File tree

6 files changed

+211
-6
lines changed

6 files changed

+211
-6
lines changed

.codeclimate.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
engines:
2+
duplication:
3+
enabled: false
4+
config:
5+
languages:
6+
python:
7+
python_version: 3
8+
mass_threshold: 50
9+
exclude_paths:
10+
- doc/
11+
pep8:
12+
enabled: false
13+
radon:
14+
enabled: true
15+
config:
16+
threshold: 'C'
17+
eslint:
18+
enabled: false
19+
shellcheck:
20+
enabled: false
21+
csslint:
22+
enabled: false
23+
24+
ratings:
25+
paths:
26+
- '**.py'
27+
- '**.js'
28+
- '**.sh'
29+
- '**.css'
30+
31+
exclude_paths:

.github/workflows/rebase.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Automatic Rebase
2+
3+
on:
4+
issue_comment:
5+
types: [ created ]
6+
7+
jobs:
8+
rebase:
9+
name: Rebase
10+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout the latest code
14+
uses: actions/checkout@v2
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
18+
- name: Automatic Rebase
19+
uses: cirrus-actions/[email protected]
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.scrutinizer.yml

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
checks:
2+
python:
3+
basic_assert_on_tuple: true
4+
basic_dangerous_default_value: true
5+
basic_duplicate_key: true
6+
basic_empty_docstring: true
7+
basic_eval_used: true
8+
basic_exec_used: true
9+
basic_expression_not_assigned: true
10+
basic_function_redefined: true
11+
basic_init_is_generator: true
12+
basic_invalid_name:
13+
arguments: '[a-z_][a-z0-9_]{2,30}$'
14+
attributes: '[a-z_][a-z0-9_]{2,30}$'
15+
class_attributes: '([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$'
16+
classes: '[A-Z_][a-zA-Z0-9]+$'
17+
constants: '(([A-Z_][A-Z0-9_]*)|(__.*__))$'
18+
functions: '[a-z_][a-z0-9_]{2,30}$'
19+
inline_vars: '[A-Za-z_][A-Za-z0-9_]*$'
20+
methods: '[a-z_][a-z0-9_]{2,30}$'
21+
modules: '(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$'
22+
variables: '[a-z_][a-z0-9_]{2,30}$'
23+
whitelisted_names: 'i,j,k,u,v,x,ex,it,ch,Run,_,__'
24+
basic_lost_exception: true
25+
basic_missing_docstring: true
26+
basic_old_raise_syntax: true
27+
basic_pointless_statement: true
28+
basic_pointless_string_statement: true
29+
basic_return_in_init: true
30+
basic_unnecessary_lambda: true
31+
basic_unnecessary_pass: true
32+
basic_unreachable: true
33+
basic_useless_else_on_loop: true
34+
classes_arguments_differ: true
35+
classes_attribute_defined_outside_init: true
36+
classes_bad_classmethod_argument: true
37+
classes_bad_context_manager: true
38+
classes_bad_mcs_classmethod_argument: true
39+
classes_bad_mcs_method_argument: true
40+
classes_bad_staticmethod_argument: true
41+
classes_interface_is_not_class: true
42+
classes_method_hidden: true
43+
classes_missing_interface_method: true
44+
classes_no_method_argument: true
45+
classes_non_iterator_returned: true
46+
classes_non_parent_init_called: true
47+
classes_no_self_argument: true
48+
classes_no_self_use: true
49+
classes_protected_access: true
50+
classes_signature_differs: true
51+
classes_super_init_not_called: true
52+
classes_valid_slots: true
53+
code_rating: true
54+
design_abstract_class_not_used: true
55+
design_interface_not_implemented: true
56+
duplicate_code: true
57+
exceptions_bad_except_order: true
58+
exceptions_bare_except: true
59+
exceptions_binary_op_exception: true
60+
exceptions_broad_except: true
61+
exceptions_catching_non_exception: true
62+
exceptions_notimplemented_raised: true
63+
exceptions_pointless_except: true
64+
exceptions_raising_bad_type: true
65+
exceptions_raising_non_exception: true
66+
exceptions_raising_string: true
67+
format_backtick: true
68+
format_bad_indentation:
69+
indentation: '4 spaces'
70+
format_bad_whitespace: true
71+
format_line_too_long:
72+
max_length: '120'
73+
format_lowercase_l_suffix: true
74+
format_missing_final_newline: true
75+
format_mixed_indentation: true
76+
format_old_ne_operator: true
77+
format_superfluous_parens: true
78+
format_trailing_whitespace: true
79+
format_unnecessary_semicolon: true
80+
imports_cyclic_import: true
81+
imports_deprecated_module: true
82+
imports_import_error: true
83+
imports_import_self: true
84+
imports_reimported: true
85+
imports_wildcard_import: true
86+
logging_not_lazy: true
87+
miscellaneous_fixme: true
88+
newstyle_bad_super_call: true
89+
string_bad_format_string_key: true
90+
string_bad_str_strip_call: true
91+
string_mixed_format_string: true
92+
typecheck_assignment_from_none: true
93+
typecheck_assignment_from_no_return: true
94+
variables_global_at_module_level: true
95+
variables_global_variable_not_assigned: true
96+
variables_global_variable_undefined: true
97+
variables_invalid_all_object: true
98+
variables_no_name_in_module: true
99+
variables_redefined_builtin: true
100+
variables_redefined_outer_name: true
101+
variables_redefine_in_handler: true
102+
variables_undefined_all_variable: true
103+
variables_undefined_loop_variable: true
104+
variables_unpacking_non_sequence: true
105+
variables_unused_argument: true
106+
variables_unused_import: true
107+
variables_unused_variable: true
108+
variables_unused_wildcard_import: true
109+
variables_used_before_assignment: true

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [0.0.0](https://github.com/AlexRogalskiy/java-patterns/compare/v1.0.1...v0.0.0) (2021-07-22)
1+
# [0.0.0](https://github.com/AlexRogalskiy/java-patterns/compare/v1.0.1...v0.0.0) (2021-07-23)
22

33

44

README.md

+25-5
Original file line numberDiff line numberDiff line change
@@ -265,21 +265,24 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
265265
### *Reddit posts*
266266

267267
<!-- REDDIT-POST-LIST:START -->
268+
268269
- [Why can’t there be null values in a stream?](https://www.reddit.com/r/java/comments/oou0wt/why_cant_there_be_null_values_in_a_stream/)
269-
- [Book about Java 9 Modules](https://www.reddit.com/r/java/comments/ooq5wo/book_about_java_9_modules/)
270+
- [Book about Java 9 Modules](https://www.reddit.com/r/java/comments/ooq5wo/book_about_java\_9\_modules/)
270271
- [JavaFX: One Codebase for Web, PC, and Mobile](https://www.reddit.com/r/java/comments/ooq55g/javafx_one_codebase_for_web_pc_and_mobile/)
271272
- [Java Server Page (JSP)](https://www.reddit.com/r/java/comments/oooucy/java_server_page_jsp/)
272273
- [Foojay.io (Friends of OpenJDK) recently had a redesign, let us know what you think!](https://www.reddit.com/r/java/comments/oolnln/foojayio_friends_of_openjdk_recently_had_a/)
273-
- [JVM Anatomy Quark #29: Uncommon Traps](https://www.reddit.com/r/java/comments/ooka83/jvm_anatomy_quark_29_uncommon_traps/)
274-
- [JVM Anatomy Quark #28: Frequency-Based Code Layout](https://www.reddit.com/r/java/comments/ooj5gm/jvm_anatomy_quark_28_frequencybased_code_layout/)
274+
- [JVM Anatomy Quark #29: Uncommon Traps](https://www.reddit.com/r/java/comments/ooka83/jvm_anatomy_quark\_29\_uncommon_traps/)
275+
- [JVM Anatomy Quark #28: Frequency-Based Code Layout](https://www.reddit.com/r/java/comments/ooj5gm/jvm_anatomy_quark\_28\_frequencybased_code_layout/)
275276
- [Trying to Self Study Java](https://www.reddit.com/r/java/comments/ooixsa/trying_to_self_study_java/)
276-
- [OpenJDK Vulnerability Advisory: 2021/07/20](https://www.reddit.com/r/java/comments/oohs96/openjdk_vulnerability_advisory_20210720/)
277+
- [OpenJDK Vulnerability Advisory: 2021/07/20](https://www.reddit.com/r/java/comments/oohs96/openjdk_vulnerability_advisory\_20210720/)
277278
- [Libraries for GitHub-style multi-organization authorization?](https://www.reddit.com/r/java/comments/oobu4q/libraries_for_githubstyle_multiorganization/)
279+
278280
<!-- REDDIT-POST-LIST:END -->
279281

280282
### *InfoWorld posts*
281283

282284
<!-- INFOWORLD-POST-LIST:START -->
285+
283286
- [Java state API would speed app startup](https://www.infoworld.com/article/3626351/java-state-api-would-speed-app-startup.html#tk.rss_java)
284287
- [Visual Studio Code 1.58 improves debugging, Jupyter Notebook support](https://www.infoworld.com/article/3626031/visual-studio-code-158-improves-debugging-jupyter-notebook-support.html#tk.rss_java)
285288
- [Kotlin gains Java coding enhancements](https://www.infoworld.com/article/3623371/kotlin-gains-java-coding-enhancements.html#tk.rss_java)
@@ -290,12 +293,14 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
290293
- [Eclipse Jakarta EE 9.1 aligns with Java 11](https://www.infoworld.com/article/3620088/eclipse-jakarta-ee-91-aligns-with-java-11.html#tk.rss_java)
291294
- [Build a Java application in Visual Studio Code](https://www.infoworld.com/article/3619031/build-a-java-application-in-visual-studio-code.html#tk.rss_java)
292295
- [Scala 3 ushers in ‘complete overhaul’ of the language](https://www.infoworld.com/article/3608574/scala-3-moves-to-release-candidate-stage.html#tk.rss_java)
296+
293297
<!-- INFOWORLD-POST-LIST:END -->
294298

295299
### *Let's talk posts*
296300

297301
<!-- LETSTALK-POST-LIST:START -->
298-
- [4 Developers 2020](http://letstalkaboutjava.blogspot.com/2020/02/4-developers-2020_9.html)
302+
303+
- [4 Developers 2020](http://letstalkaboutjava.blogspot.com/2020/02/4-developers-2020\_9.html)
299304
- [You won't do it later!](http://letstalkaboutjava.blogspot.com/2019/12/you-wont-do-it-later.html)
300305
- [JDD 2019!](http://letstalkaboutjava.blogspot.com/2019/09/once-again-im-media-partner-of-jdd-and.html)
301306
- [4 Developers 2019](http://letstalkaboutjava.blogspot.com/2019/02/4-developers-2019.html)
@@ -305,11 +310,13 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
305310
- [JDD is coming!](http://letstalkaboutjava.blogspot.com/2018/08/jdd-is-coming.html)
306311
- [Just stop for a moment](http://letstalkaboutjava.blogspot.com/2018/06/just-stop-for-moment.html)
307312
- [Refactoring vs. Redesign](http://letstalkaboutjava.blogspot.com/2017/11/refactoring-vs-redesign.html)
313+
308314
<!-- LETSTALK-POST-LIST:END -->
309315

310316
### *Random thoughts posts*
311317

312318
<!-- RANDOMTHOUGHTS-POST-LIST:START -->
319+
313320
- [Hibernate's @FetchProfile](http://randomthoughtsonjavaprogramming.blogspot.com/2021/06/hibernates-fetchprofile.html)
314321
- [Docker](http://randomthoughtsonjavaprogramming.blogspot.com/2021/06/docker.html)
315322
- [Aristotle's Wheel Paradox - To Infinity and Beyond](http://randomthoughtsonjavaprogramming.blogspot.com/2021/06/aristotles-wheel-paradox-to-infinity.html)
@@ -320,11 +327,13 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
320327
- [Jelastic CLI](http://randomthoughtsonjavaprogramming.blogspot.com/2021/04/jelastic-cli.html)
321328
- [Alternate Docroots](http://randomthoughtsonjavaprogramming.blogspot.com/2021/04/alternate-docroots.html)
322329
- [Learning Kotlin](http://randomthoughtsonjavaprogramming.blogspot.com/2021/04/learning-kotlin.html)
330+
323331
<!-- RANDOMTHOUGHTS-POST-LIST:END -->
324332

325333
### *Better code posts*
326334

327335
<!-- BETTERCODE-POST-LIST:START -->
336+
328337
- [Using Apache Kafka With Spring Boot](https://betterjavacode.com/kafka/using-apache-kafka-with-spring-boot)
329338
- [What Makes a Good Junior Developer](https://betterjavacode.com/programming/what-makes-a-good-junior-developer)
330339
- [Integration Testing in Spring Boot Application](https://betterjavacode.com/programming/integration-testing-in-spring-boot-application)
@@ -335,11 +344,13 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
335344
- [Everything you need to know about Spring Data JPA](https://betterjavacode.com/spring-boot/everything-you-need-to-know-about-spring-data-jpa)
336345
- [Conversion of Entity to DTO Using ModelMapper](https://betterjavacode.com/spring-boot/conversion-of-entity-to-dto-using-modelmapper)
337346
- [Spring Retry vs Resilience4j Retry](https://betterjavacode.com/programming/spring-retry-vs-resilience4j-retry)
347+
338348
<!-- BETTERCODE-POST-LIST:END -->
339349

340350
### *Inside Java posts*
341351

342352
<!-- INSIDE-POST-LIST:START -->
353+
343354
- [A few updates to JEP 411: Deprecate the Security Manager for Removal](https://inside.java/2021/07/16/a-few-updates-to-jep411/)
344355
- [Inside Java Newscast #8](https://inside.java/2021/07/15/insidejava-newscast-008/)
345356
- [Call for Discussion : New Project to support the Wayland display server on Linux](https://inside.java/2021/07/07/call-for-discussion/)
@@ -350,11 +361,13 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
350361
- [Episode 17 “Pattern Matching for switch” with Gavin Bierman](https://inside.java/2021/06/13/podcast-017/)
351362
- [Oracle JRE and JDK Cryptographic Roadmap](https://inside.java/2021/06/11/security-roadmap-update/)
352363
- [Inside Java Newscast #6](https://inside.java/2021/06/10/insidejava-newscast-006/)
364+
353365
<!-- INSIDE-POST-LIST:END -->
354366

355367
### *Java programmer posts*
356368

357369
<!-- JAVAPROG-POST-LIST:START -->
370+
358371
- [Evaluate Postfix Expression in Java](https://www.thejavaprogrammer.com/evaluate-postfix-expression-in-java/)
359372
- [Java Reflection Invoke Static Method](https://www.thejavaprogrammer.com/java-reflection-invoke-static-method/)
360373
- [Volatile vs Synchronized in Java](https://www.thejavaprogrammer.com/volatile-vs-synchronized/)
@@ -365,11 +378,13 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
365378
- [Advantages and Disadvantages of Generics in Java](https://www.thejavaprogrammer.com/advantages-and-disadvantages-of-generics-in-java/)
366379
- [Nested Switch in Java](https://www.thejavaprogrammer.com/nested-switch-in-java/)
367380
- [TreeSet Vs TreeMap in Java](https://www.thejavaprogrammer.com/treeset-vs-treemap/)
381+
368382
<!-- JAVAPROG-POST-LIST:END -->
369383

370384
### *Dreamix posts*
371385

372386
<!-- DREAMIX-POST-LIST:START -->
387+
373388
- [Java vs JavaScript: How to Choose the Right Backend Technology?](https://dreamix.eu/blog/java/java-vs-javascript-how-to-choose-the-right-backend-technology)
374389
- [Splitting String in Java – Examples and Tips](https://dreamix.eu/blog/java/splitting-string-in-java-examples-and-tips)
375390
- [Learn from Java Champion Gerrit Grunwald: JavaFx – not dead yet](https://dreamix.eu/blog/java/learn-from-java-champion-gerrit-grunwald-javafx-not-dead-yet)
@@ -380,11 +395,13 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
380395
- [5 Reasons Why Bespoke Software Development Projects Succeed](https://dreamix.eu/blog/java/5-reasons-why-bespoke-software-development-projects-succeed)
381396
- [Continuous Integration and Delivery to Improve the Software Development Workflow](https://dreamix.eu/blog/java/continuous-integration-and-delivery-to-improve-the-software-development-workflow)
382397
- [Why good (clean) software architecture matters](https://dreamix.eu/blog/java/why-good-clean-software-architecture-matters)
398+
383399
<!-- DREAMIX-POST-LIST:END -->
384400

385401
### *Plumbr posts*
386402

387403
<!-- PLUMBR-POST-LIST:START -->
404+
388405
- [Plumbr has been acquired by Splunk](https://plumbr.io/blog/plumbr-blog/acquired-by-splunk)
389406
- [Using Plumbr with OpenTelemetry NodeJS agent](https://plumbr.io/blog/plumbr-blog/using-plumbr-with-opentelemetry-nodejs-agent)
390407
- [Extending Plumbr RUM with Web Vitals metrics](https://plumbr.io/blog/performance-blog/extending-plumbr-rum-with-web-vitals-metrics)
@@ -395,11 +412,13 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
395412
- [Plumbr now monitors Python applications and APIs](https://plumbr.io/blog/product-updates/plumbr-now-monitors-python-applications-and-apis)
396413
- [Distributed tracing in practice](https://plumbr.io/blog/tracing/distributed-tracing-in-practice)
397414
- [Plumbr now supports application versioning](https://plumbr.io/blog/product-updates/plumbr-now-supports-application-versioning)
415+
398416
<!-- PLUMBR-POST-LIST:END -->
399417

400418
### *Thorben Janssen posts*
401419

402420
<!-- TJ-POST-LIST:START -->
421+
403422
- [How and when to use JPA’s getReference() Method](https://thorben-janssen.com/jpa-getreference/)
404423
- [Quarkus & Hibernate – Getting Started](https://thorben-janssen.com/quarkus-hibernate/)
405424
- [Hibernate’s Read-Only Query Hint For Faster Read Operations](https://thorben-janssen.com/read-only-query-hint/)
@@ -410,6 +429,7 @@ and ***Java Patterns*** ? Consider buying me a coffee :)
410429
- [How to retrieve DTOs from your Envers Audit Logs](https://thorben-janssen.com/envers-dto/)
411430
- [Polymorphic association mappings of independent classes](https://thorben-janssen.com/polymorphic-association-mappings-of-independent-classes/)
412431
- [Hibernate Slow Query Log – The easiest way to find slow queries](https://thorben-janssen.com/hibernate-slow-query-log/)
432+
413433
<!-- TJ-POST-LIST:END -->
414434

415435
### *Redhat posts*

scripts/create_changelog.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
set -u -e -o pipefail
4+
5+
cd ../
6+
7+
VERSION=$(grep 'version:' package.json | sed -E "s/.*'([^']*)'/\1/")
8+
RELEASE_DATE=$(date "+%Y-%m-%d")
9+
10+
# compile a list of already reported PRs
11+
reported="$(mktemp)"
12+
grep -E "#[0-9]{4}" -o CHANGELOG.md | sort >"$reported"
13+
14+
echo "[$VERSION] - $RELEASE_DATE"
15+
echo "--------------------"
16+
echo '##### Enhancements'
17+
git log stable..master --first-parent --format='%s %b' |
18+
sed -E 's/.*#([0-9]+).*\[ENH\] *(.*)/\* \2 ([#\1](\.\.\/\.\.\/pull\/\1))/' |
19+
grep -E '^\*' | grep -v -F -f "$reported"
20+
echo
21+
echo "##### Bugfixes"
22+
git log stable..master --first-parent --format='%s %b' |
23+
sed -E 's/.*#([0-9]+).*\[FIX\] *(.*)/\* \2 ([#\1](\.\.\/\.\.\/pull\/\1))/' |
24+
grep -E '^\*' | grep -v -F -f "$reported"

0 commit comments

Comments
 (0)