Skip to content

Enable more IntelliJ inspections #2827

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

Merged
merged 4 commits into from
Nov 16, 2021

Conversation

Bennett-Lynch
Copy link
Contributor

Motivation and Context

We recently created a repository-wide, project-level inspection profile,
which allows us to share and synchronize the inspections used across all
contributors. This works well, but the inspection profile we created was
based on the IntelliJ defaults, which is intentionally conservative
(i.e., does not enable most inspections). We should take advantage of
more of the very helpful inspections that IntelliJ offers, since they
can help improve code quality, and IntelliJ's static analysis recognizes
many issues that SonarQube does not.

Description

This change enables most inspections that I personally feel offer value,
as well as setting them to the severity-level (i.e. weak vs strong
warning) that I personally feel is appropriate. Whether an inspection
offers value is obviously highly subjective, but this change allows us
to bias towards increasing our overall visibility to potential issues.
Over time, if we feel certain inspections do not offer value, we can
then selectively tune or disable those.

License

  • I confirm that this pull request can be released under the Apache 2 license

Bennett Lynch and others added 3 commits November 5, 2021 14:44
## Motivation

We recently created a repository-wide, project-level inspection profile,
which allows us to share and synchronize the inspections used across all
contributors. This works well, but the inspection profile we created was
based on the IntelliJ defaults, which is intentionally conservative
(i.e., does not enable most inspections). We should take advantage of
more of the very helpful inspections that IntelliJ offers, since they
can help improve code quality, and IntelliJ's static analysis recognizes
many issues that SonarQube does not.

## Modifications

This change enables most inspections that I personally feel offer value,
as well as setting them to the severity-level (i.e. weak vs strong
warning) that I personally feel is appropriate. Whether an inspection
offers value is obviously highly subjective, but this change allows us
to bias towards increasing our overall visibility to potential issues.
Over time, if we feel certain inspections do not offer value, we can
then selectively tune or disable those.
@Bennett-Lynch Bennett-Lynch changed the title Enable many more IntelliJ inspections Enable more IntelliJ inspections Nov 8, 2021
@Bennett-Lynch Bennett-Lynch requested a review from a team as a code owner November 16, 2021 01:02
@Bennett-Lynch Bennett-Lynch merged commit 3be3c42 into aws:master Nov 16, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

aws-sdk-java-automation added a commit that referenced this pull request Dec 6, 2023
…b8a17cbfd

Pull request: release <- staging/0ca70569-3edc-4287-bb57-cc6b8a17cbfd
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