Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: 8fb69b24db2ac934cc175c983b395d6000353da5
      https://github.com/pmd/pmd/commit/8fb69b24db2ac934cc175c983b395d6000353da5
  Author: Jeff Bartolotta <[email protected]>
  Date:   2020-10-05 (Mon, 05 Oct 2020)

  Changed paths:
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/internal/Helper.java
    A 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AbstractAvoidNodeInLoopsRule.java
    A 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidDatabaseMethodCallsInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidDmlStatementsInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidSoqlInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidSoslInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/security/ApexSharingViolationsRule.java
    M pmd-apex/src/main/resources/category/apex/performance.xml
    M pmd-apex/src/main/resources/rulesets/apex/performance.xml
    M pmd-apex/src/main/resources/rulesets/apex/quickstart.xml
    M pmd-apex/src/main/resources/rulesets/apex/ruleset.xml
    A 
pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidDatabaseMethodCallsInLoopsTest.java
    A 
pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/performance/xml/AvoidDatabaseMethodCallsInLoops.xml
    A pmd-core/src/main/resources/rulesets/releases/6290.xml

  Log Message:
  -----------
  Add Apex AvoidDatabaseMethodCallsInLoopsRule

Fixes https://github.com/pmd/pmd/issues/1713, Database statements aren't 
detected in for loops.

- Added new AvoidDatabaseMethodCallsInLoopsRule that adds a violation if any 
methods from the System Database class are invoked from within a loop.

- Refactored AvoidDmlStatementsInLoopsRule, AvoidSoqlInLoopsRule, and 
AvoidSoslInLoopsRule to derive from AbstractAvoidNodeInLoopsRule.


  Commit: 98d0f0f38f9134926f90708faff1c5a9963448e1
      https://github.com/pmd/pmd/commit/98d0f0f38f9134926f90708faff1c5a9963448e1
  Author: Jeff Bartolotta <[email protected]>
  Date:   2020-10-21 (Wed, 21 Oct 2020)

  Changed paths:
    R 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidDatabaseMethodCallsInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidDmlStatementsInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidSoqlInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidSoslInLoopsRule.java
    A 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/OperationWithLimitsInLoopRule.java
    M pmd-apex/src/main/resources/category/apex/performance.xml
    M pmd-apex/src/main/resources/rulesets/apex/performance.xml
    M pmd-apex/src/main/resources/rulesets/apex/quickstart.xml
    M pmd-apex/src/main/resources/rulesets/apex/ruleset.xml
    M 
pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/DefaultRulesetTest.java
    R 
pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidDatabaseMethodCallsInLoopsTest.java
    A 
pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/rule/performance/OperationWithLimitsInLoopTest.java
    R 
pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/performance/xml/AvoidDatabaseMethodCallsInLoops.xml
    A 
pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/performance/xml/OperationWithLimitsInLoop.xml
    M pmd-core/src/main/resources/rulesets/releases/6290.xml

  Log Message:
  -----------
  Changes based on initial PR feedback

- Rename AvoidDatabaseMethodCallsInLoopsRule to OperationWithLimitsInLoop.
- Add AvoidDmlStatementsInLoopsRule, AvoidSoqlInLoopsRule, and 
AvoidSoslInLoopsRule checks into OperationWithLimitsInLoop.
- Deprecate AvoidDmlStatementsInLoopsRule, AvoidSoqlInLoopsRule, and 
AvoidSoslInLoopsRule in favor of OperationWithLimitsInLoop.


  Commit: 0745789bb72ce2a283b469a6d96d10de1241994a
      https://github.com/pmd/pmd/commit/0745789bb72ce2a283b469a6d96d10de1241994a
  Author: Andreas Dangel <[email protected]>
  Date:   2020-10-22 (Thu, 22 Oct 2020)

  Changed paths:
    M pmd-apex/src/main/resources/rulesets/apex/quickstart.xml
    M pmd-apex/src/main/resources/rulesets/apex/ruleset.xml
    M 
pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/DefaultRulesetTest.java

  Log Message:
  -----------
  [apex] Remove deprecated rules from quickstart.xml, restore Test


  Commit: 888fe3b15e3cb919011362f31a78a2ce8b25dd96
      https://github.com/pmd/pmd/commit/888fe3b15e3cb919011362f31a78a2ce8b25dd96
  Author: Andreas Dangel <[email protected]>
  Date:   2020-10-22 (Thu, 22 Oct 2020)

  Changed paths:
    M docs/pages/release_notes.md

  Log Message:
  -----------
  [doc] Update release notes, refs #2816, fixes #1713


  Commit: 47d3e1b9f98362d968a8dba7ecb82b62a9edf1f4
      https://github.com/pmd/pmd/commit/47d3e1b9f98362d968a8dba7ecb82b62a9edf1f4
  Author: Andreas Dangel <[email protected]>
  Date:   2020-10-22 (Thu, 22 Oct 2020)

  Changed paths:
    M docs/pages/release_notes.md
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/internal/Helper.java
    A 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AbstractAvoidNodeInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidDmlStatementsInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidSoqlInLoopsRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/AvoidSoslInLoopsRule.java
    A 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/performance/OperationWithLimitsInLoopRule.java
    M 
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/security/ApexSharingViolationsRule.java
    M pmd-apex/src/main/resources/category/apex/performance.xml
    M pmd-apex/src/main/resources/rulesets/apex/quickstart.xml
    M pmd-apex/src/main/resources/rulesets/apex/ruleset.xml
    M 
pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/DefaultRulesetTest.java
    A 
pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/rule/performance/OperationWithLimitsInLoopTest.java
    A 
pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/performance/xml/OperationWithLimitsInLoop.xml
    A pmd-core/src/main/resources/rulesets/releases/6290.xml

  Log Message:
  -----------
  Merge branch 'pr-2816' into master

[apex] Detect 'Database' method invocations inside loops #2816


Compare: https://github.com/pmd/pmd/compare/2f4079ed8f3c...47d3e1b9f983


_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits

Reply via email to