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

Added static code analysis / PMD #201

Merged
merged 5 commits into from
Sep 13, 2021

Conversation

jamessimone
Copy link
Collaborator

@jamessimone jamessimone requested a review from jongpie September 13, 2021 18:02
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 18:04 Inactive
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 18:14 Inactive
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 18:22 Inactive
@jongpie jongpie added the devops Items related to tooling, automation, and guidelines used for developing Nebula Logger label Sep 13, 2021
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 18:31 Inactive
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 18:35 Inactive
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 18:35 Inactive
@codecov
Copy link

codecov bot commented Sep 13, 2021

Codecov Report

Merging #201 (0134d7c) into feature/security-enhancements (07d82af) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@                      Coverage Diff                       @@
##           feature/security-enhancements     #201   +/-   ##
==============================================================
  Coverage                          95.20%   95.20%           
==============================================================
  Files                                 26       26           
  Lines                               2689     2689           
  Branches                              25       25           
==============================================================
  Hits                                2560     2560           
  Misses                               129      129           
Flag Coverage Δ
Apex 95.61% <100.00%> (ø)
LWC 89.56% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...logger-plugins/Slack/classes/SlackLoggerPlugin.cls 92.14% <ø> (ø)
...in/log-management/classes/LogEntryEventHandler.cls 98.54% <ø> (ø)
...er/main/log-management/classes/LogEntryHandler.cls 97.07% <ø> (ø)
.../log-management/classes/LogMassDeleteExtension.cls 100.00% <ø> (ø)
...in/log-management/classes/LoggerSObjectHandler.cls 96.47% <ø> (ø)
...management/classes/RelatedLogEntriesController.cls 93.00% <ø> (ø)
...ger/main/logger-engine/classes/ComponentLogger.cls 98.96% <ø> (-0.02%) ⬇️
...-logger/main/log-management/classes/LogHandler.cls 98.75% <100.00%> (ø)
...ain/logger-engine/classes/LogEntryEventBuilder.cls 95.49% <100.00%> (ø)
...ebula-logger/main/logger-engine/classes/Logger.cls 93.27% <100.00%> (+<0.01%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07d82af...0134d7c. Read the comment docs.

@jamessimone jamessimone temporarily deployed to Test September 13, 2021 18:51 Inactive
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 19:19 Inactive
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 19:23 Inactive
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 19:23 Inactive
@jamessimone jamessimone temporarily deployed to Test September 13, 2021 19:32 Inactive
Copy link
Owner

@jongpie jongpie left a comment

Choose a reason for hiding this comment

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

Looks great to me, it's ready to merge! Thanks again for working on this!

@jongpie jongpie mentioned this pull request Sep 13, 2021
@jamessimone jamessimone merged commit de176f8 into feature/security-enhancements Sep 13, 2021
@jamessimone jamessimone deleted the feature/pmd-scanning branch September 13, 2021 20:33
jongpie added a commit that referenced this pull request Sep 14, 2021
* Added StripInaccessibleRecordFields__c setting

* Added all CMDT objects to LoggerAdmin.permissionset

* Added LogEntryDataMaskRule__mdt object for applying data mask rules to log entry message & record JSON fields in LogEntryEventBuilder

* Added CMDT rules for credit card numbers & social security numbers

* Added setting ApplyDataMaskRules__c to control if CMDT data mask rules are applied

* Added some user managament settings to scratch-def files

* Added test suites for each module

* Moved some test helper methods to LoggerTestUtils, cleaned up LogEntryEventBuilder_Tests methods

* Optimized setTagsDetails()

* Made record & records parameters optional in FlowRecordLogEntry & FlowCollectionLogEntry (respectively) to handle situations where null is passed (e.g., Get Records returns null for no matches, instead of an empty list) (reported in #198)

* Changed FlowDescription__c.field to long text area + added automatic field-truncation for LogEntry__c inserts + added a ridiculously long description to one of the Flows in nebula-logger-recipes (reported in #199)

* Made fancier buttons that include the release number

* Cleaned up a few areas in README

* Added 'Code Quality Tests' to deploy.yml + ran prettier

* Setup ESLint for lwc + fixed some reported issues

* Removed some unused scripts in package.json

* Switched back to using extra-tests folder, created LogEntryEventBuilder_IntegrationTests class (AccountBrand doesn't exist in all orgs)

* Added new step to pipeline to create an unvalidated package version & auto-install it into the package-demo org, then reinstall the latest released package version

* Reenabled Codecov.io integration in the pipeline

* Added static code analysis / PMD through sfdx-scanner (#201 by @jamessimone)

* Fixed line breaks not working when calling System.debug()
@jamessimone and I had a lot of... "fun" with this one

Co-authored-by: James Simone <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup devops Items related to tooling, automation, and guidelines used for developing Nebula Logger
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants