Skip to content

Conversation

manodnyab
Copy link
Contributor

Description

Emits a metric every 30 minutes that sends in opened file extensions

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

github-actions bot commented Sep 3, 2024

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

Comment on lines 20 to 22
FileEditorManager.getInstance(project).openFiles.forEach {
it.extension?.let { openFileExtension -> currentOpenedFileTypes.add(openFileExtension) }
}
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to filter this to project files? (i.e no library code)

object : FileEditorManagerListener {
override fun fileOpened(source: FileEditorManager, file: VirtualFile) {

file.extension?.let { currentOpenedFileTypes.add(it) }
Copy link
Contributor

Choose a reason for hiding this comment

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

did they want an 'unknown'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The file types is now from a specified list of file extensions sourced from the ticket

@manodnyab manodnyab marked this pull request as ready for review September 9, 2024 17:24
@manodnyab manodnyab requested a review from a team as a code owner September 9, 2024 17:24
@manodnyab manodnyab enabled auto-merge (squash) September 17, 2024 17:29
@manodnyab manodnyab merged commit 82ea164 into main Sep 17, 2024
13 of 14 checks passed
@manodnyab manodnyab deleted the manodnyb/addeditcodemetrics branch September 17, 2024 18:00
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