Skip to content

MTG-12 use custom detekt rule#1233

Merged
xgouchet merged 3 commits into
developfrom
xgouchet/MTG-12/detekt_custom_rules
Jan 19, 2023
Merged

MTG-12 use custom detekt rule#1233
xgouchet merged 3 commits into
developfrom
xgouchet/MTG-12/detekt_custom_rules

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

A brief description of the change being made with this pull request.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@xgouchet
xgouchet force-pushed the xgouchet/MTG-12/detekt_custom_rules branch from 59a872f to 85f0ca8 Compare January 17, 2023 16:54
@xgouchet
xgouchet marked this pull request as ready for review January 17, 2023 17:06
@xgouchet
xgouchet requested a review from a team as a code owner January 17, 2023 17:06
@xgouchet
xgouchet requested a review from daniel-m-dd January 17, 2023 17:06
@codecov-commenter

codecov-commenter commented Jan 17, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.33%. Comparing base (120224b) to head (85f0ca8).
Report is 2325 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1233      +/-   ##
===========================================
+ Coverage    82.31%   82.33%   +0.02%     
===========================================
  Files          353      353              
  Lines        11795    11802       +7     
  Branches      2007     2008       +1     
===========================================
+ Hits          9708     9716       +8     
+ Misses        1475     1474       -1     
  Partials       612      612              

see 12 files with indirect coverage changes

Comment thread .gitlab-ci.yml
DETEKT_PUBLIC_API: "true"
DETEKT_CUSTOM_RULES_BUILD_TASK: ":tools:detekt:jar"
DETEKT_CUSTOM_RULES_JAR_PATH: "tools/detekt/build/libs/detekt.jar"
DETEKT_CUSTOM_RULES_YML_PATH: "detekt_custom.yml"

@daniel-m-dd daniel-m-dd Jan 19, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this goes surely too deep for now but what do you think about just pointing to a file, say datadog-static-analysis-detekt-config.{yml/json...} (couldnt care less about the format), where all these variables would be defined; giving more freedom to each project, and bonus :

  • avoid an ever grwoing list of env variable
  • file versioned in each project (so less "magic"; somebody could rename the task on one project not being aware it is used by dd-source)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah that makes sense, but indeed maybe this is going too deep for now ;)

@xgouchet
xgouchet merged commit 65a52f4 into develop Jan 19, 2023
@xgouchet
xgouchet deleted the xgouchet/MTG-12/detekt_custom_rules branch January 19, 2023 16:35
@xgouchet xgouchet added this to the 1.17.0 milestone Dec 13, 2023
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.

5 participants