Skip to content

Fixed KdocComments and KdocFormatting#1892

Open
DrAlexD wants to merge 10 commits into
masterfrom
bugfix/kdoc_formatting
Open

Fixed KdocComments and KdocFormatting#1892
DrAlexD wants to merge 10 commits into
masterfrom
bugfix/kdoc_formatting

Conversation

@DrAlexD

@DrAlexD DrAlexD commented Dec 22, 2023

Copy link
Copy Markdown
Member

What's done:

  • Made refactoring in KdocComments.
  • Added fix test for case when there is class description and some properties in class KDoc at the same time.
  • Fixed bug in KdocFormatting for case when @property and @constructor basic tags haven't empty line before them.
  • Modified fix test for case when there is class description before @property tag.
  • Added smoke test for class KDoc. Currently disabled due to Empty lines in class constructor before properties with comments #1889.

Closes #1884

@codecov

codecov Bot commented Dec 22, 2023

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.29630% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.99%. Comparing base (cd77a0b) to head (ffd6dd2).

Files with missing lines Patch % Lines
...diktat/ruleset/rules/chapter2/kdoc/KdocComments.kt 97.29% 0 Missing and 1 partial ⚠️
...ktat/ruleset/rules/chapter2/kdoc/KdocFormatting.kt 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1892      +/-   ##
============================================
+ Coverage     77.95%   77.99%   +0.04%     
+ Complexity     2996     2976      -20     
============================================
  Files           134      134              
  Lines          8863     8848      -15     
  Branches       2119     2112       -7     
============================================
- Hits           6909     6901       -8     
+ Misses          943      941       -2     
+ Partials       1011     1006       -5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Dec 22, 2023

Copy link
Copy Markdown
Contributor

JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2)

  167 files  ±0    167 suites  ±0   8m 6s ⏱️ -19s
1 449 tests +3  1 430 ✅ +1  19 💤 +2  0 ❌ ±0 
2 829 runs  +3  2 810 ✅ +1  19 💤 +2  0 ❌ ±0 

Results for commit ffd6dd2. ± Comparison against base commit cd77a0b.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Dec 22, 2023

Copy link
Copy Markdown
Contributor

JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v2)

  167 files  ±0    167 suites  ±0   3m 28s ⏱️ +3s
1 449 tests +3  1 408 ✅ +1  41 💤 +2  0 ❌ ±0 
2 829 runs  +3  2 788 ✅ +1  41 💤 +2  0 ❌ ±0 

Results for commit ffd6dd2. ± Comparison against base commit cd77a0b.

♻️ This comment has been updated with latest results.

@DrAlexD DrAlexD self-assigned this Dec 22, 2023
@DrAlexD DrAlexD added the bug Something isn't working label Dec 22, 2023
@DrAlexD DrAlexD added this to the 2.1.0 milestone Dec 22, 2023

@orchestr7 orchestr7 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I do not understand how 90% of refactoring work, but basically there are a lot of tests, so I believe in you :)

…ugfix/kdoc_formatting

# Conflicts:
#	diktat-cli/src/test/kotlin/com/saveourtool/diktat/smoke/DiktatSmokeTestBase.kt
@DrAlexD DrAlexD removed the request for review from diphtongue June 20, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KDOC_NEWLINES_BEFORE_BASIC_TAGS is not fixing a newline problem from the first run

3 participants