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

refactor: various client SDK lints #298

Merged
merged 2 commits into from
Nov 22, 2023
Merged

refactor: various client SDK lints #298

merged 2 commits into from
Nov 22, 2023

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Nov 21, 2023

This is a mostly removing a bunch of redundant namespace qualifiers + formatting changes in the client SDK, which I addressed while building the Redis integration.

We can merge these directly to main instead to make the Redis PR cleaner.

@@ -30,14 +30,14 @@ using launchdarkly::client_side::data_sources::DataSourceStatus;
using launchdarkly::config::shared::built::DataSourceConfig;
using launchdarkly::config::shared::built::HttpProperties;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing redundant namespace + formatting

@@ -1,33 +1,32 @@
#pragma once

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorting include paths according to our standard from most specific to least specific.

@@ -0,0 +1,20 @@
#pragma once
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copying this from internal lib, as it will be removed when the server-side SDK is introduced and we don't want to port over the client immediately.

@@ -1,14 +1,13 @@
#pragma once
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sort includes + remove redundant namespace

@@ -1,24 +1,24 @@
#pragma once

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ditto

@@ -1,10 +1,8 @@
#pragma once

#include <chrono>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove useless using and sort includes + remove redundant namespaces

@cwaldren-ld cwaldren-ld marked this pull request as ready for review November 21, 2023 22:43
@cwaldren-ld cwaldren-ld requested a review from a team November 21, 2023 22:43
@cwaldren-ld
Copy link
Contributor Author

Mac CI is expected to fail due to a known issue with the updated boost libraries.

@cwaldren-ld cwaldren-ld merged commit 08d8872 into main Nov 22, 2023
15 of 17 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/client-updates branch November 22, 2023 15:09
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.

2 participants