Skip to content

Latest commit

 

History

History
513 lines (358 loc) · 21 KB

CHANGELOG.md

File metadata and controls

513 lines (358 loc) · 21 KB

Changelog

[Unreleased]

[3.3.1] 2024-05-08

  • Upgrade npm-groovy-lint to fix issues with Mac

[3.3.0] 2024-04-28

  • Upgrade dependencies
  • Change license to MIT

[3.2.3] 2024-03-13

  • Upgrade npm-groovy-lint to v14.2.4
  • Upgrade npm dependencies

[3.2.2] 2024-03-09

  • Upgrade npm-groovy-lint to v14.2.3
    • Fix "directories aren't cleaned up"
  • Upgrade npm dependencies

[3.2.1] 2024-02-19

  • Upgrade npm-groovy-lint to v14.2.1
    • fix: class not found request failure
  • Upgrade npm dependencies

[3.2.0] 2024-01-15

  • fix: file end of line character changes (#176)
  • dep: Upgrade npm-groovy-lint to v4.2.0
    • fix: missing parse errors with --noserver
    • fix: deactivate log file by default

[3.1.0] 2023-12-17

  • Added new setting showProblemsView that controls if Problems View should open after initial lint pass
  • Fix doc deployment
  • Add stale workflow

[3.0.0] 2023-12-17

  • Update all packages, to address security issues and bring in the latest version of npm-groovy-lint and related fixes.
  • Refactor of tests to more reliable, including being independent of each other so if one test fails others are not effected.
  • Fix partial fixes never applying due to npm-groovy-lint v10.0.0 breaking change.
  • Fix Analyze Groovy files in folder (#177)
  • Debug sessions correctly enable debugging by default including npm-groovy-lint.
  • Upgrade MegaLinter and fix related issues

[2.0.0] 2022-08-13

  • Upgrade to npm-groovy-lint v10.0.0

  • UI

    • Better display for issues contextual menu
  • Fixes

    • Wrong lines highlighted when spaces are replaced by tabs
    • Document should not be reopened if closed without saving
    • Some errors were displayed at the beginning of the file instead of the good line
    • Wrong diagnostics lines are format or fix

[1.9.1] 2022-08-08

  • Fix bug when file diagnostics is stuck with message GroovyLint is analyzing code... (#157)
  • CI: Upgrade to MegaLinter v6

[1.9.0] 2022-04-12

[1.8.0] 2022-02-25

  • Disable telemetry by default (#93)

[1.7.5] 2022-01-26

  • Fix crash when npm-groovy-lint does not return results (#141)

[1.7.4] 2022-01-09

[1.7.3] 2022-01-06

  • Upgrade to npm-groovy-lint v9.3.1
    • Fix issue when used as module and with file containing spaces (#137)

[1.7.2] 2021-12-29

  • Upgrade to npm-groovy-lint v9.3.0
    • Upgrade again log4j to avoid security flaw

[1.7.1] 2021-12-24

  • Upgrade to npm-groovy-lint v9.2.0
    • Upgrade again log4j to avoid security flaw

[1.7.0] 2021-12-14

[1.6.0] 2021-11-27

  • Detect Jenkinsfile

[1.5.2] 2021-11-24

  • Fix TS error & package-lock.json version

[1.5.1] 2021-11-23

  • Upgrade to npm-groovy-lint v9.0.0
  • Fix use of VsCode setting groovyLint.basic.config to use a generic npm-groovy-lint configuration file
  • Upgrade to MegaLinter v5 and move config in .mega-linter.yml file

[1.4.0] 2020-12-15

  • Upgrade to npm-groovy-lint v8.1.0
    • Exclude UnnecessaryGetter, FactoryMethodName, MethodReturnTypeRequired, and GStringExpressionWithinString in recommended-jenkinsfile (#140) (Felipe Santos)

[1.3.0] 2020-11-15

  • Upgrade to npm-groovy-lint v8.0.0
    • Upgrade to CodeNarc 2.0.0
    • Improve performances
    • Fix bugs

[1.2.8] 2020-09-04

[1.2.7] 2020-09-04

[1.2.6] 2020-09-02

  • Upgrade to npm-groovy-lint v7.5.2
  • Fix crash when empty groovy file
  • Fix crash when non-sense groovy file

[1.2.4] 2020-08-29

[1.2.3] 2020-08-29

  • Fix bug on Windows when username contains space(s)

[1.2.2] 2020-08-21

  • Allow user to hide future npm-groovy-lint error messages
  • Manage correctly user choice Never for tabs auto-replacement by spaces
  • Upgrade to npm-groovy-lint v7.4.0

[1.2.1] 2020-08-16

[1.2.0] 2020-08-15

  • Upgrade to npm-groovy-lint v7.3.0
    • Allow to link to CodeNarc RuleSet files from .groovylintrc.json, using property "codenarcRulesets". Warning: doing so means that all other properties of config file will be ignored.

[1.1.1] 2020-08-11

[1.1.0] 2020-08-10

[1.0.0] 2020-08-07

  • Upgrade to npm-groovy-lint v7.0.0
    • Upgrade to CodeNarc 1.6.1
    • Improved performances
    • Fix formatting
    • New default recommended rules

[0.18.1] 2020-08-01

[0.18.0] 2020-07-12

  • New settings groovyLint.java.executable and groovyLint.java.options
  • Upgrade to npm-groovy-lint v5.5.0
    • Allow to override java executable and options (#54)
    • Use os.EOL (#65) solving (#63) --fix for indentation adds CRLF line-endings to all files it touches

[0.17.1] 2020-07-05

Fixes:

  • Fix npm-groovy-lint formatting arguments when loglevel is not info

[0.17.0] 2020-07-01

[0.16.4] 2020-06-04

  • Upgrade to npm-groovy-lint v5.1.0
    • Install Java 8 using node-jre in case java version found is higher than Java 11 (CodeNarc compatibility is Java 8 to 11)

[0.16.3] 2020-05-30

  • Fixes

    • Issue when requesting lints too quickly just after the extension is launched (#51)
  • Upgrade to npm-groovy-lint v5.0.3

    • Updated fix rules
      • Indentation
      • IndentationClosingBrace

[0.16.2] 2020-05-27

  • Fixes

    • When a rule is ignored for all project (updating .groovylintrc.json), lint again all open documents (#46)
    • Setting groovyLint.fix.trigger was not updateable (#47)
    • After applying a QuickFix, wait for the text to be updated to trigger a new code analysis
    • Better catch and display of fatal errors
  • Upgrade to npm-groovy-lint v5.0.2

    • Avoid to apply wrong fix in case of CodeNarc false positive
    • New fix rules
      • BlankLineBeforePackage
    • Updated fix rules
      • BracesForIfElse
      • BracesForMethod
      • BracesForTryCatchFinally
      • ClassEndsWithBlankLine
      • ClassStartsWithBlankLine
      • MissingBlankLineAfterImports
      • MissingBlankLineAfterPackage
      • UnnecessaryGroovyImport
      • UnusedImport

[0.16.0] 2020-25-05

  • Upgrade to npm-groovy-lint v5.0.0
    • BIG BANG: Improve performances, compatibility, architecture and delivery
      • Get rid of jDeploy dependency
        • Use own java-caller.js for java commands
        • Update CircleCI config to use npm linkinstead of jdeploy install
      • Get rid of request dependency
        • Use axios for promisified http calls

[0.15.1] 2020-05-22

[0.15.0] 2020-05-21

  • Use Indent size provided by VsCode Formatter API #34
  • Add Formatter in Vs Code extension categories #41
  • Upgrade to npm-groovy-lint v4.13.0
    • Manage to send options for rules sent in rulesets: Ex: Indentation{"spacesPerIndentLevel":2,"severity":"warning"},UnnecessarySemicolon

[0.14.0] 2020-05-18

  • Upgrade to npm-groovy-lint v4.12.0
    • Improve performances and compatibility

[0.13.2] 2020-05-16

[0.13.1] 2020-05-12

[0.13.0] 2020-05-12

  • New setting groovyLint.insight.enable: Allow to send anonymous usage statistics used only to improve the tool (we will of course never send your code or sensitive information)

  • Upgrade to npm-groovy-lint v4.10.2

    • Collect anonymous usage statistics using analytics & @analytics-segment, in order to make new improvements based on how users use this package. Analytics obviously does not receive sensitive information like your code, as you can see in analytics.js.

[0.12.0] 2020-05-08

  • Upgrade to npm-groovy-lint v4.8.0

    • New fix rules

      • AssignmentInConditional
      • DuplicateImport
      • ExplicitLinkedListInstantiation
      • InsecureRandom
      • UnnecessaryDefInVariableDeclaration
      • UnnecessaryDotClass
      • UnnecessaryFinalOnPrivateMethod
      • UnnecessaryInstantiationToGetClass
    • Updated fix rules

      • BracesForForLoop: False positive triggering messy code after fixing
      • UnnecessaryGString: Fix multiline replacements ( """ by ''' )
    • Fixes :

      • Launch JVM with high memory (-Xms256m -Xmx2048m) to improve performances on big files
      • Increase CodeNarcServ call timeout (+ Manage ETIMEOUT as result, not only ECONNREFUSED )
  • Exclude more files from the VsCode extension package

[0.11.0] 2020-05-06

  • Upgrade to npm-groovy-lint v4.7.0
    • New fix rules

      • BracesForClass
      • BracesForForLoop
      • BracesForIfElse
      • BracesForMethod
      • BracesForTryCatchFinally
      • ExplicitArrayListInstantiation
      • MissingBlankLineAfterImports
      • MissingBlankLineAfterPackage
    • Updated fix rules

      • UnnecessaryGString: Fix replacements containing \n and \r

[0.10.0] 2020-05-01

  • Upgrade to npm-groovy-lint v4.6.0
    • New fix rules

      • SpaceBeforeClosingBrace
      • UnnecessaryDefInMethodDeclaration
      • UnnecessaryPackageReference
      • UnnecessaryParenthesesForMethodCallWithClosure
    • Updated fix rules

      • MisorderedStaticImports: Fix @Grapes killer fixing rule
      • ElseBlockBrace: issue when instruction is on the same line than else

[0.9.5] 2020-04-29

  • Upgrade to npm-groovy-lint v4.5.4
    • Take in account user overridden indentation space (and other rules) when using --format option #31
    • Handle better CodeNarcServer concurrent calls

[0.9.4] 2020-04-28

  • Upgrade to npm-groovy-lint v4.5.0 Davide Bizzarri
    • Configuration updates (#29):
      • New default config "recommended-jenkinsfile". Use it with argument --config recommended-jenkinsfile
      • Allow to directly target a config file name. Use it with argument --config /my/custom/path/.groovylintrc-custom-name.json
      • Allow to send a string key that will be used to find config file --config custom-name
    • Updated fix rules:
      • IfStatementBraces
      • ElseStatementBraces

[0.9.3] 2020-04-22

  • Fixes
    • Crash when apply QuickFix after disabling an error with a comment
    • Error when groovylint-disable and groovylint-disable-next-line are both at the beginning of the source file
    • Decrease delay before onType lint from 4 seconds to 3 seconds
    • Misspellings

[0.9.2] 2020-04-21

  • Hotfix crazy status bar item (#26)

[0.9.1] 2020-04-20

  • Upgrade to npm-groovy-lint v4.4.1
    • CodeNarcServer: Use cachedThreadPool instead of fixedThreadPool

[0.9.0] 2020-04-17

  • Default lint mode to "onType" (use onSave or user if you prefer to not lint while typing), after 4 seconds of inactivity after last source update
  • New contextual commands:
    • Disable rule for the current line
    • Disable rule for the entire file
  • Do not open files in tabs when diagnostics are from Lint Folder command
  • Upgrade to npm-groovy-lint v4.4.0

[0.8.2] 2020-04-13

[0.8.1] 2020-04-13

  • Upgrade to npm-groovy-lint v4.2.0
    • Display source parsing errors
    • New fix rules (thanks CatSue !):
      • SpaceAfterSemicolon
      • SpaceAfterWhile
  • Remove useless files from VsCode extension package

[0.7.2] 2020-04-12

[0.7.1] 2020-04-09

  • Add setting groovyLint.debug.enable : Display more logs in VsCode Output panel (select "GroovyLint") for issue investigation
  • Update settings definition in README documentation

[0.7.0] 2020-04-08

  • New command Lint Groovy in folder available in folder context menu
  • Performances: avoid to lint again a file if it has already been linter with the same content
  • Upgrade to npm-groovy-lint v4.0.0
    • Much better performances on Linux and MacOs
    • When formatting, always run some custom npm-groovy-lint fix rules not corresponding to CodeNarc violations
    • Return CodeNarc and Groovy versions when --version options is called
    • Fixes
      • Lost indentation when applying some fix rules
    • Updated fix rules:
      • IndentationClosingBraces
      • IndentationComments
      • SpaceAfterCatch
      • SpaceAfterIf
    • New fix rules:
      • ClassEndsWithBlankLine
      • ClassStartsWithNewLine
      • SpaceAfterFor
      • SpaceAfterSwitch
  • Add Jenkinsfile in test files

[0.6.3] 2020-04-03

  • Improve QuickFix actions labels

[0.6.2] 2020-04-02

  • Warn user in case of fix error(s) failures, and advise to do so manually
  • Improve QuickFix action performances
  • Upgrade to npm-groovy-lint v3.2.3
    • Improve performances
    • Fix indentation when rules IfStatementBraces or ElseBlockBraces are corrected during a format or a fix
  • Fixes
    • Infinite spinner when using QuickFix "Fix in all file"

[0.6.1] 2020-04-01

  • Hotfix: republish again with regenerated compiled Javascript from Typescript

[0.6.0] 2020-03-31

  • New animated gif for VsCode Groovy Lint home page

  • Increase size of Show rule documentation quick action message, and add a "Read More" link to CodeNarc WebSite

  • If source has been updated by the user during a format or fix, do not apply the formatting/fix to avoid overriding the user updates, and notify the user

  • Fixes:

    • Provide CodeActions even when there is no QuickFix (Ignore in all files, Show documentation)
    • Fix npm-groovy-lint requests queue management
    • If a file contains groovy errors, display info diagnostic while linting/formatting/fixing again
    • Fix "infinite" status bar spinner when a lint/format/fix actions has been cancelled
  • Technical:

    • Harmonize notifications URIS with new namespace: groovylintlsp
    • Reorganize files: types.ts for structures, and mode commands in commands.ts
    • Upgrade to npm-groovy-lint v3.2.2

[0.5.3] 2020-03-29

  • New diagnostic QuickAction: Show rule documentation
  • Fix location error to create .groovylintrc.json from a QuickFix when user has multiple workspaces
  • Upgrade to npm-groovy-lint v3.2.1

[0.5.0] 2020-03-26

  • New command "Format" (Right click in code editor -> format, or Shift+Alt+F)
  • Automated tests with mocha and vscode-test
  • CI Integration (CircleCI), build & run tests on Linux & Windows
  • If hidden, show Diagnostics panel after first lint result. If closed again by the user, it won't be reopened
  • Update README (doc + badges)
  • Upgrade to npm-groovy-lint v3.2.0
  • Fixes
    • Tab focus should not be disrupted by VsCode Groovy Lint

[0.4.1] 2020-03-23

  • Fix blocking issue when using QuickFix Action (source was not replaced). If someone knows how to make good automated tests for a VsCode extension, please contact me !
  • Change README

[0.4.0] 2020-03-23

  • Upgrade to npm-groovy-lint v3.1.3
  • Hide GroovyLint status bar item when the active VsCode file is not Groovy code (and if no GroovyLint action in progress)
  • Add screenshot image in README
  • Add CONTRIBUTING section
  • Fix issue when creating/updating .groovylintrc.js file when the VsCode Workspace has multiple folders
  • Fix tabs navigation issue

0.3.0 2020-03-22

  • Initial release