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

Fix for NSFE when mvn test run from /diktat-rules #1366

Merged
merged 1 commit into from
Jun 16, 2022
Merged

Conversation

nulls
Copy link
Member

@nulls nulls commented Jun 16, 2022

What's done:

  • added arguments for methods in Generation.kt

Which rule and warnings did you add?

This pull request closes #1345

@nulls nulls added this to the 1.1.2 milestone Jun 16, 2022
@nulls nulls self-assigned this Jun 16, 2022
@nulls nulls enabled auto-merge (squash) June 16, 2022 08:36
@codecov
Copy link

codecov bot commented Jun 16, 2022

Codecov Report

Merging #1366 (2712a19) into master (aa093cc) will not change coverage.
The diff coverage is n/a.

❗ Current head 2712a19 differs from pull request most recent head 7914c76. Consider uploading reports for the commit 7914c76 to get more accurate results

@@            Coverage Diff            @@
##             master    #1366   +/-   ##
=========================================
  Coverage     83.67%   83.67%           
  Complexity     2588     2588           
=========================================
  Files           106      106           
  Lines          7387     7387           
  Branches       2048     2048           
=========================================
  Hits           6181     6181           
  Misses          354      354           
  Partials        852      852           
Flag Coverage Δ
unittests 83.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...g/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt 89.45% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48360cd...7914c76. Read the comment docs.

### What's done:
- added arguments for methods in Generation.kt
validateYear()
fun main(args: Array<String>) {
require(args.size == 2) {
"Only to arguments are expected"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"Only to arguments are expected"
"Only two arguments are expected: <source root> <test resource root>"

Maybe something like this?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeap, fixed in #1367

@nulls nulls merged commit fc84620 into master Jun 16, 2022
@nulls nulls deleted the bugfix/maven-test branch June 16, 2022 09:04
@nulls nulls modified the milestones: 1.1.2, 1.1.1 Jun 17, 2022
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.

NSFE: diktat-rules\src\test\resources\test\paragraph2\header when running mvn test from diktat-rules/
3 participants