npm-groovy-lint
Advanced tools
Comparing version 11.1.2-beta202310250645.0 to 11.1.2-beta202310271757.0
{ | ||
"rules": { | ||
"basic.AssertWithinFinallyBlock": {}, | ||
"basic.AssignmentInConditional": {}, | ||
"basic.BigDecimalInstantiation": {}, | ||
"basic.BitwiseOperatorInConditional": {}, | ||
"basic.BooleanGetBoolean": {}, | ||
"basic.BrokenNullCheck": {}, | ||
"basic.BrokenOddnessCheck": {}, | ||
"basic.ClassForName": {}, | ||
"basic.ComparisonOfTwoConstants": {}, | ||
"basic.ComparisonWithSelf": {}, | ||
"basic.ConstantAssertExpression": {}, | ||
"basic.ConstantIfExpression": {}, | ||
"basic.ConstantTernaryExpression": {}, | ||
"basic.DeadCode": {}, | ||
"basic.DoubleNegative": {}, | ||
"basic.DuplicateCaseStatement": {}, | ||
"basic.DuplicateMapKey": {}, | ||
"basic.DuplicateSetValue": {}, | ||
"basic.EmptyCatchBlock": {}, | ||
"basic.EmptyClass": {}, | ||
"basic.EmptyElseBlock": {}, | ||
"basic.EmptyFinallyBlock": {}, | ||
"basic.EmptyForStatement": {}, | ||
"basic.EmptyIfStatement": {}, | ||
"basic.EmptyInstanceInitializer": {}, | ||
"basic.EmptyMethod": {}, | ||
"basic.EmptyStaticInitializer": {}, | ||
"basic.EmptySwitchStatement": {}, | ||
"basic.EmptySynchronizedStatement": {}, | ||
"basic.EmptyTryBlock": {}, | ||
"basic.EmptyWhileStatement": {}, | ||
"basic.EqualsAndHashCode": {}, | ||
"basic.EqualsOverloaded": {}, | ||
"basic.ExplicitGarbageCollection": {}, | ||
"basic.ForLoopShouldBeWhileLoop": {}, | ||
"basic.HardCodedWindowsFileSeparator": {}, | ||
"basic.HardCodedWindowsRootDirectory": {}, | ||
"basic.IntegerGetInteger": {}, | ||
"basic.MultipleUnaryOperators": {}, | ||
"basic.ParameterAssignmentInFilterClosure": {}, | ||
"basic.RandomDoubleCoercedToZero": {}, | ||
"basic.RemoveAllOnSelf": {}, | ||
"basic.ReturnFromFinallyBlock": {}, | ||
"basic.ThrowExceptionFromFinallyBlock": {}, | ||
"braces.ElseBlockBraces": {}, | ||
"braces.ForStatementBraces": {}, | ||
"braces.IfStatementBraces": {}, | ||
"braces.WhileStatementBraces": {}, | ||
"comments.ClassJavadoc": {}, | ||
"comments.JavadocConsecutiveEmptyLines": {}, | ||
"comments.JavadocEmptyAuthorTag": {}, | ||
"comments.JavadocEmptyExceptionTag": {}, | ||
"comments.JavadocEmptyFirstLine": {}, | ||
"comments.JavadocEmptyLastLine": {}, | ||
"comments.JavadocEmptyParamTag": {}, | ||
"comments.JavadocEmptyReturnTag": {}, | ||
"comments.JavadocEmptySeeTag": {}, | ||
"comments.JavadocEmptySinceTag": {}, | ||
"comments.JavadocEmptyThrowsTag": {}, | ||
"comments.JavadocEmptyVersionTag": {}, | ||
"comments.JavadocMissingExceptionDescription": {}, | ||
"comments.JavadocMissingParamDescription": {}, | ||
"comments.JavadocMissingThrowsDescription": {}, | ||
"concurrency.BusyWait": {}, | ||
"concurrency.DoubleCheckedLocking": {}, | ||
"concurrency.InconsistentPropertyLocking": {}, | ||
"concurrency.InconsistentPropertySynchronization": {}, | ||
"concurrency.NestedSynchronization": {}, | ||
"concurrency.StaticCalendarField": {}, | ||
"concurrency.StaticConnection": {}, | ||
"concurrency.StaticDateFormatField": {}, | ||
"concurrency.StaticMatcherField": {}, | ||
"concurrency.StaticSimpleDateFormatField": {}, | ||
"concurrency.SynchronizedMethod": {}, | ||
"concurrency.SynchronizedOnBoxedPrimitive": {}, | ||
"concurrency.SynchronizedOnGetClass": {}, | ||
"concurrency.SynchronizedOnReentrantLock": {}, | ||
"concurrency.SynchronizedOnString": {}, | ||
"concurrency.SynchronizedOnThis": {}, | ||
"concurrency.SynchronizedReadObjectMethod": {}, | ||
"concurrency.SystemRunFinalizersOnExit": {}, | ||
"concurrency.ThisReferenceEscapesConstructor": {}, | ||
"concurrency.ThreadGroup": {}, | ||
"concurrency.ThreadLocalNotStaticFinal": {}, | ||
"concurrency.ThreadYield": {}, | ||
"concurrency.UseOfNotifyMethod": {}, | ||
"concurrency.VolatileArrayField": {}, | ||
"concurrency.VolatileLongOrDoubleField": {}, | ||
"concurrency.WaitOutsideOfWhileLoop": {}, | ||
"convention.CompileStatic": {}, | ||
"convention.ConfusingTernary": {}, | ||
"convention.CouldBeElvis": {}, | ||
"convention.CouldBeSwitchStatement": {}, | ||
"convention.FieldTypeRequired": {}, | ||
"convention.HashtableIsObsolete": {}, | ||
"convention.IfStatementCouldBeTernary": {}, | ||
"convention.ImplicitClosureParameter": {}, | ||
"convention.ImplicitReturnStatement": {}, | ||
"convention.InvertedCondition": {}, | ||
"convention.InvertedIfElse": {}, | ||
"convention.LongLiteralWithLowerCaseL": {}, | ||
"convention.MethodParameterTypeRequired": {}, | ||
"convention.MethodReturnTypeRequired": {}, | ||
"convention.NoDef": {}, | ||
"convention.NoDouble": {}, | ||
"convention.NoFloat": {}, | ||
"convention.NoJavaUtilDate": {}, | ||
"convention.NoTabCharacter": {}, | ||
"convention.ParameterReassignment": {}, | ||
"convention.PublicMethodsBeforeNonPublicMethods": {}, | ||
"convention.StaticFieldsBeforeInstanceFields": {}, | ||
"convention.StaticMethodsBeforeInstanceMethods": {}, | ||
"convention.TernaryCouldBeElvis": {}, | ||
"convention.TrailingComma": {}, | ||
"convention.VariableTypeRequired": {}, | ||
"convention.VectorIsObsolete": {}, | ||
"design.AbstractClassWithPublicConstructor": {}, | ||
"design.AbstractClassWithoutAbstractMethod": {}, | ||
"design.AssignmentToStaticFieldFromInstanceMethod": {}, | ||
"design.BooleanMethodReturnsNull": {}, | ||
"design.BuilderMethodWithSideEffects": {}, | ||
"design.CloneableWithoutClone": {}, | ||
"design.CloseWithoutCloseable": {}, | ||
"design.CompareToWithoutComparable": {}, | ||
"design.ConstantsOnlyInterface": {}, | ||
"design.EmptyMethodInAbstractClass": {}, | ||
"design.FinalClassWithProtectedMember": {}, | ||
"design.ImplementationAsType": {}, | ||
"design.Instanceof": {}, | ||
"design.LocaleSetDefault": {}, | ||
"design.NestedForLoop": {}, | ||
"design.OptionalCollectionReturnType": {}, | ||
"design.OptionalField": {}, | ||
"design.OptionalMethodParameter": {}, | ||
"design.PrivateFieldCouldBeFinal": {}, | ||
"design.PublicInstanceField": {}, | ||
"design.ReturnsNullInsteadOfEmptyArray": {}, | ||
"design.ReturnsNullInsteadOfEmptyCollection": {}, | ||
"design.SimpleDateFormatMissingLocale": {}, | ||
"design.StatelessSingleton": {}, | ||
"design.ToStringReturnsNull": {}, | ||
"dry.DuplicateListLiteral": {}, | ||
"dry.DuplicateMapLiteral": {}, | ||
"dry.DuplicateNumberLiteral": {}, | ||
"dry.DuplicateStringLiteral": {}, | ||
"enhanced.CloneWithoutCloneable": {}, | ||
"enhanced.JUnitAssertEqualsConstantActualValue": {}, | ||
"enhanced.MissingOverrideAnnotation": {}, | ||
"enhanced.UnsafeImplementationAsMap": {}, | ||
"exceptions.CatchArrayIndexOutOfBoundsException": {}, | ||
"exceptions.CatchError": {}, | ||
"exceptions.CatchException": {}, | ||
"exceptions.CatchIllegalMonitorStateException": {}, | ||
"exceptions.CatchIndexOutOfBoundsException": {}, | ||
"exceptions.CatchNullPointerException": {}, | ||
"exceptions.CatchRuntimeException": {}, | ||
"exceptions.CatchThrowable": {}, | ||
"exceptions.ConfusingClassNamedException": {}, | ||
"exceptions.ExceptionExtendsError": {}, | ||
"exceptions.ExceptionExtendsThrowable": {}, | ||
"exceptions.ExceptionNotThrown": {}, | ||
"exceptions.MissingNewInThrowStatement": {}, | ||
"exceptions.ReturnNullFromCatchBlock": {}, | ||
"exceptions.SwallowThreadDeath": {}, | ||
"exceptions.ThrowError": {}, | ||
"exceptions.ThrowException": {}, | ||
"exceptions.ThrowNullPointerException": {}, | ||
"exceptions.ThrowRuntimeException": {}, | ||
"exceptions.ThrowThrowable": {}, | ||
"formatting.BlankLineBeforePackage": {}, | ||
"formatting.BlockEndsWithBlankLine": {}, | ||
"formatting.BlockStartsWithBlankLine": {}, | ||
"formatting.BracesForClass": {}, | ||
"formatting.BracesForForLoop": {}, | ||
"formatting.BracesForIfElse": {}, | ||
"formatting.BracesForMethod": {}, | ||
"formatting.BracesForTryCatchFinally": {}, | ||
"formatting.ClassEndsWithBlankLine": {}, | ||
"formatting.ClassStartsWithBlankLine": {}, | ||
"formatting.ClosureStatementOnOpeningLineOfMultipleLineClosure": {}, | ||
"formatting.ConsecutiveBlankLines": {}, | ||
"formatting.FileEndsWithoutNewline": {}, | ||
"formatting.Indentation": {}, | ||
"formatting.LineLength": {}, | ||
"formatting.MissingBlankLineAfterImports": {}, | ||
"formatting.MissingBlankLineAfterPackage": {}, | ||
"formatting.MissingBlankLineBeforeAnnotatedField": {}, | ||
"formatting.SpaceAfterCatch": {}, | ||
"formatting.SpaceAfterClosingBrace": {}, | ||
"formatting.SpaceAfterComma": {}, | ||
"formatting.SpaceAfterFor": {}, | ||
"formatting.SpaceAfterIf": {}, | ||
"formatting.SpaceAfterMethodCallName": {}, | ||
"formatting.SpaceAfterMethodDeclarationName": {}, | ||
"formatting.SpaceAfterNotOperator": {}, | ||
"formatting.SpaceAfterOpeningBrace": {}, | ||
"formatting.SpaceAfterSemicolon": {}, | ||
"formatting.SpaceAfterSwitch": {}, | ||
"formatting.SpaceAfterWhile": {}, | ||
"formatting.SpaceAroundClosureArrow": {}, | ||
"formatting.SpaceAroundMapEntryColon": {}, | ||
"formatting.SpaceAroundOperator": {}, | ||
"formatting.SpaceBeforeClosingBrace": {}, | ||
"formatting.SpaceBeforeOpeningBrace": {}, | ||
"formatting.SpaceInsideParentheses": {}, | ||
"formatting.TrailingWhitespace": {}, | ||
"generic.IllegalClassMember": {}, | ||
"generic.IllegalClassReference": {}, | ||
"generic.IllegalPackageReference": {}, | ||
"generic.IllegalRegex": {}, | ||
"generic.IllegalString": {}, | ||
"generic.IllegalSubclass": {}, | ||
"generic.RequiredRegex": {}, | ||
"generic.RequiredString": {}, | ||
"generic.StatelessClass": {}, | ||
"grails.GrailsDomainGormMethods": {}, | ||
"grails.GrailsDomainHasEquals": {}, | ||
"grails.GrailsDomainHasToString": {}, | ||
"grails.GrailsDomainReservedSqlKeywordName": {}, | ||
"grails.GrailsDomainStringPropertyMaxSize": {}, | ||
"grails.GrailsDomainWithServiceReference": {}, | ||
"grails.GrailsDuplicateConstraint": {}, | ||
"grails.GrailsDuplicateMapping": {}, | ||
"grails.GrailsMassAssignment": {}, | ||
"grails.GrailsPublicControllerMethod": {}, | ||
"grails.GrailsServletContextReference": {}, | ||
"grails.GrailsStatelessService": {}, | ||
"groovyism.AssignCollectionSort": {}, | ||
"groovyism.AssignCollectionUnique": {}, | ||
"groovyism.ClosureAsLastMethodParameter": {}, | ||
"groovyism.CollectAllIsDeprecated": {}, | ||
"groovyism.ConfusingMultipleReturns": {}, | ||
"groovyism.ExplicitArrayListInstantiation": {}, | ||
"groovyism.ExplicitCallToAndMethod": {}, | ||
"groovyism.ExplicitCallToCompareToMethod": {}, | ||
"groovyism.ExplicitCallToDivMethod": {}, | ||
"groovyism.ExplicitCallToEqualsMethod": {}, | ||
"groovyism.ExplicitCallToGetAtMethod": {}, | ||
"groovyism.ExplicitCallToLeftShiftMethod": {}, | ||
"groovyism.ExplicitCallToMinusMethod": {}, | ||
"groovyism.ExplicitCallToModMethod": {}, | ||
"groovyism.ExplicitCallToMultiplyMethod": {}, | ||
"groovyism.ExplicitCallToOrMethod": {}, | ||
"groovyism.ExplicitCallToPlusMethod": {}, | ||
"groovyism.ExplicitCallToPowerMethod": {}, | ||
"groovyism.ExplicitCallToPutAtMethod": {}, | ||
"groovyism.ExplicitCallToRightShiftMethod": {}, | ||
"groovyism.ExplicitCallToXorMethod": {}, | ||
"groovyism.ExplicitHashMapInstantiation": {}, | ||
"groovyism.ExplicitHashSetInstantiation": {}, | ||
"groovyism.ExplicitLinkedHashMapInstantiation": {}, | ||
"groovyism.ExplicitLinkedListInstantiation": {}, | ||
"groovyism.ExplicitStackInstantiation": {}, | ||
"groovyism.ExplicitTreeSetInstantiation": {}, | ||
"groovyism.GStringAsMapKey": {}, | ||
"groovyism.GStringExpressionWithinString": {}, | ||
"groovyism.GetterMethodCouldBeProperty": {}, | ||
"groovyism.GroovyLangImmutable": {}, | ||
"groovyism.UseCollectMany": {}, | ||
"groovyism.UseCollectNested": {}, | ||
"imports.DuplicateImport": {}, | ||
"imports.ImportFromSamePackage": {}, | ||
"imports.ImportFromSunPackages": {}, | ||
"imports.MisorderedStaticImports": {}, | ||
"imports.NoWildcardImports": {}, | ||
"imports.UnnecessaryGroovyImport": {}, | ||
"imports.UnusedImport": {}, | ||
"jdbc.DirectConnectionManagement": {}, | ||
"jdbc.JdbcConnectionReference": {}, | ||
"jdbc.JdbcResultSetReference": {}, | ||
"jdbc.JdbcStatementReference": {}, | ||
"junit.ChainedTest": {}, | ||
"junit.CoupledTestCase": {}, | ||
"junit.JUnitAssertAlwaysFails": {}, | ||
"junit.JUnitAssertAlwaysSucceeds": {}, | ||
"junit.JUnitFailWithoutMessage": {}, | ||
"junit.JUnitLostTest": {}, | ||
"junit.JUnitPublicField": {}, | ||
"junit.JUnitPublicNonTestMethod": {}, | ||
"junit.JUnitPublicProperty": {}, | ||
"junit.JUnitSetUpCallsSuper": {}, | ||
"junit.JUnitStyleAssertions": {}, | ||
"junit.JUnitTearDownCallsSuper": {}, | ||
"junit.JUnitTestMethodWithoutAssert": {}, | ||
"junit.JUnitUnnecessarySetUp": {}, | ||
"junit.JUnitUnnecessaryTearDown": {}, | ||
"junit.JUnitUnnecessaryThrowsException": {}, | ||
"junit.SpockIgnoreRestUsed": {}, | ||
"junit.UnnecessaryFail": {}, | ||
"junit.UseAssertEqualsInsteadOfAssertTrue": {}, | ||
"junit.UseAssertFalseInsteadOfNegation": {}, | ||
"junit.UseAssertNullInsteadOfAssertEquals": {}, | ||
"junit.UseAssertSameInsteadOfAssertTrue": {}, | ||
"junit.UseAssertTrueInsteadOfAssertEquals": {}, | ||
"junit.UseAssertTrueInsteadOfNegation": {}, | ||
"logging.LoggerForDifferentClass": {}, | ||
"logging.LoggerWithWrongModifiers": {}, | ||
"logging.LoggingSwallowsStacktrace": {}, | ||
"logging.MultipleLoggers": {}, | ||
"logging.PrintStackTrace": {}, | ||
"logging.Println": {}, | ||
"logging.SystemErrPrint": {}, | ||
"logging.SystemOutPrint": {}, | ||
"naming.AbstractClassName": {}, | ||
"naming.ClassName": {}, | ||
"naming.ClassNameSameAsFilename": {}, | ||
"naming.ClassNameSameAsSuperclass": {}, | ||
"naming.ConfusingMethodName": {}, | ||
"naming.FactoryMethodName": {}, | ||
"naming.FieldName": {}, | ||
"naming.InterfaceName": {}, | ||
"naming.InterfaceNameSameAsSuperInterface": {}, | ||
"naming.MethodName": {}, | ||
"naming.ObjectOverrideMisspelledMethodName": {}, | ||
"naming.PackageName": {}, | ||
"naming.PackageNameMatchesFilePath": {}, | ||
"naming.ParameterName": {}, | ||
"naming.PropertyName": {}, | ||
"naming.VariableName": {}, | ||
"security.FileCreateTempFile": {}, | ||
"security.InsecureRandom": {}, | ||
"security.JavaIoPackageAccess": {}, | ||
"security.NonFinalPublicField": {}, | ||
"security.NonFinalSubclassOfSensitiveInterface": {}, | ||
"security.ObjectFinalize": {}, | ||
"security.PublicFinalizeMethod": {}, | ||
"security.SystemExit": {}, | ||
"security.UnsafeArrayDeclaration": {}, | ||
"serialization.EnumCustomSerializationIgnored": {}, | ||
"serialization.SerialPersistentFields": {}, | ||
"serialization.SerialVersionUID": {}, | ||
"serialization.SerializableClassMustDefineSerialVersionUID": {}, | ||
"size.ClassSize": {}, | ||
"size.MethodCount": {}, | ||
"size.MethodSize": {}, | ||
"size.NestedBlockDepth": {}, | ||
"size.ParameterCount": {}, | ||
"unnecessary.AddEmptyString": {}, | ||
"unnecessary.ConsecutiveLiteralAppends": {}, | ||
"unnecessary.ConsecutiveStringConcatenation": {}, | ||
"unnecessary.UnnecessaryBigDecimalInstantiation": {}, | ||
"unnecessary.UnnecessaryBigIntegerInstantiation": {}, | ||
"unnecessary.UnnecessaryBooleanExpression": {}, | ||
"unnecessary.UnnecessaryBooleanInstantiation": {}, | ||
"unnecessary.UnnecessaryCallForLastElement": {}, | ||
"unnecessary.UnnecessaryCallToSubstring": {}, | ||
"unnecessary.UnnecessaryCast": {}, | ||
"unnecessary.UnnecessaryCatchBlock": {}, | ||
"unnecessary.UnnecessaryCollectCall": {}, | ||
"unnecessary.UnnecessaryCollectionCall": {}, | ||
"unnecessary.UnnecessaryConstructor": {}, | ||
"unnecessary.UnnecessaryDefInFieldDeclaration": {}, | ||
"unnecessary.UnnecessaryDefInMethodDeclaration": {}, | ||
"unnecessary.UnnecessaryDefInVariableDeclaration": {}, | ||
"unnecessary.UnnecessaryDotClass": {}, | ||
"unnecessary.UnnecessaryDoubleInstantiation": {}, | ||
"unnecessary.UnnecessaryElseStatement": {}, | ||
"unnecessary.UnnecessaryFinalOnPrivateMethod": {}, | ||
"unnecessary.UnnecessaryFloatInstantiation": {}, | ||
"unnecessary.UnnecessaryGString": {}, | ||
"unnecessary.UnnecessaryGetter": {}, | ||
"unnecessary.UnnecessaryIfStatement": {}, | ||
"unnecessary.UnnecessaryInstanceOfCheck": {}, | ||
"unnecessary.UnnecessaryInstantiationToGetClass": {}, | ||
"unnecessary.UnnecessaryIntegerInstantiation": {}, | ||
"unnecessary.UnnecessaryLongInstantiation": {}, | ||
"unnecessary.UnnecessaryModOne": {}, | ||
"unnecessary.UnnecessaryNullCheck": {}, | ||
"unnecessary.UnnecessaryNullCheckBeforeInstanceOf": {}, | ||
"unnecessary.UnnecessaryObjectReferences": {}, | ||
"unnecessary.UnnecessaryOverridingMethod": {}, | ||
"unnecessary.UnnecessaryPackageReference": {}, | ||
"unnecessary.UnnecessaryParenthesesForMethodCallWithClosure": {}, | ||
"unnecessary.UnnecessaryPublicModifier": {}, | ||
"unnecessary.UnnecessaryReturnKeyword": {}, | ||
"unnecessary.UnnecessarySafeNavigationOperator": {}, | ||
"unnecessary.UnnecessarySelfAssignment": {}, | ||
"unnecessary.UnnecessarySemicolon": {}, | ||
"unnecessary.UnnecessarySetter": {}, | ||
"unnecessary.UnnecessaryStringInstantiation": {}, | ||
"unnecessary.UnnecessaryTernaryExpression": {}, | ||
"unnecessary.UnnecessaryToString": {}, | ||
"unnecessary.UnnecessaryTransientModifier": {}, | ||
"unused.UnusedArray": {}, | ||
"unused.UnusedMethodParameter": {}, | ||
"unused.UnusedObject": {}, | ||
"unused.UnusedPrivateField": {}, | ||
"unused.UnusedPrivateMethod": {}, | ||
"unused.UnusedPrivateMethodParameter": {}, | ||
"unused.UnusedVariable": {} | ||
} | ||
} | ||
"rules": { | ||
"basic.AssertWithinFinallyBlock": {}, | ||
"basic.AssignmentInConditional": {}, | ||
"basic.BigDecimalInstantiation": {}, | ||
"basic.BitwiseOperatorInConditional": {}, | ||
"basic.BooleanGetBoolean": {}, | ||
"basic.BrokenNullCheck": {}, | ||
"basic.BrokenOddnessCheck": {}, | ||
"basic.ClassForName": {}, | ||
"basic.ComparisonOfTwoConstants": {}, | ||
"basic.ComparisonWithSelf": {}, | ||
"basic.ConstantAssertExpression": {}, | ||
"basic.ConstantIfExpression": {}, | ||
"basic.ConstantTernaryExpression": {}, | ||
"basic.DeadCode": {}, | ||
"basic.DoubleNegative": {}, | ||
"basic.DuplicateCaseStatement": {}, | ||
"basic.DuplicateMapKey": {}, | ||
"basic.DuplicateSetValue": {}, | ||
"basic.EmptyCatchBlock": {}, | ||
"basic.EmptyClass": {}, | ||
"basic.EmptyElseBlock": {}, | ||
"basic.EmptyFinallyBlock": {}, | ||
"basic.EmptyForStatement": {}, | ||
"basic.EmptyIfStatement": {}, | ||
"basic.EmptyInstanceInitializer": {}, | ||
"basic.EmptyMethod": {}, | ||
"basic.EmptyStaticInitializer": {}, | ||
"basic.EmptySwitchStatement": {}, | ||
"basic.EmptySynchronizedStatement": {}, | ||
"basic.EmptyTryBlock": {}, | ||
"basic.EmptyWhileStatement": {}, | ||
"basic.EqualsAndHashCode": {}, | ||
"basic.EqualsOverloaded": {}, | ||
"basic.ExplicitGarbageCollection": {}, | ||
"basic.ForLoopShouldBeWhileLoop": {}, | ||
"basic.HardCodedWindowsFileSeparator": {}, | ||
"basic.HardCodedWindowsRootDirectory": {}, | ||
"basic.IntegerGetInteger": {}, | ||
"basic.MultipleUnaryOperators": {}, | ||
"basic.ParameterAssignmentInFilterClosure": {}, | ||
"basic.RandomDoubleCoercedToZero": {}, | ||
"basic.RemoveAllOnSelf": {}, | ||
"basic.ReturnFromFinallyBlock": {}, | ||
"basic.ThrowExceptionFromFinallyBlock": {}, | ||
"braces.ElseBlockBraces": {}, | ||
"braces.ForStatementBraces": {}, | ||
"braces.IfStatementBraces": {}, | ||
"braces.WhileStatementBraces": {}, | ||
"comments.ClassJavadoc": {}, | ||
"comments.JavadocConsecutiveEmptyLines": {}, | ||
"comments.JavadocEmptyAuthorTag": {}, | ||
"comments.JavadocEmptyExceptionTag": {}, | ||
"comments.JavadocEmptyFirstLine": {}, | ||
"comments.JavadocEmptyLastLine": {}, | ||
"comments.JavadocEmptyParamTag": {}, | ||
"comments.JavadocEmptyReturnTag": {}, | ||
"comments.JavadocEmptySeeTag": {}, | ||
"comments.JavadocEmptySinceTag": {}, | ||
"comments.JavadocEmptyThrowsTag": {}, | ||
"comments.JavadocEmptyVersionTag": {}, | ||
"comments.JavadocMissingExceptionDescription": {}, | ||
"comments.JavadocMissingParamDescription": {}, | ||
"comments.JavadocMissingThrowsDescription": {}, | ||
"concurrency.BusyWait": {}, | ||
"concurrency.DoubleCheckedLocking": {}, | ||
"concurrency.InconsistentPropertyLocking": {}, | ||
"concurrency.InconsistentPropertySynchronization": {}, | ||
"concurrency.NestedSynchronization": {}, | ||
"concurrency.StaticCalendarField": {}, | ||
"concurrency.StaticConnection": {}, | ||
"concurrency.StaticDateFormatField": {}, | ||
"concurrency.StaticMatcherField": {}, | ||
"concurrency.StaticSimpleDateFormatField": {}, | ||
"concurrency.SynchronizedMethod": {}, | ||
"concurrency.SynchronizedOnBoxedPrimitive": {}, | ||
"concurrency.SynchronizedOnGetClass": {}, | ||
"concurrency.SynchronizedOnReentrantLock": {}, | ||
"concurrency.SynchronizedOnString": {}, | ||
"concurrency.SynchronizedOnThis": {}, | ||
"concurrency.SynchronizedReadObjectMethod": {}, | ||
"concurrency.SystemRunFinalizersOnExit": {}, | ||
"concurrency.ThisReferenceEscapesConstructor": {}, | ||
"concurrency.ThreadGroup": {}, | ||
"concurrency.ThreadLocalNotStaticFinal": {}, | ||
"concurrency.ThreadYield": {}, | ||
"concurrency.UseOfNotifyMethod": {}, | ||
"concurrency.VolatileArrayField": {}, | ||
"concurrency.VolatileLongOrDoubleField": {}, | ||
"concurrency.WaitOutsideOfWhileLoop": {}, | ||
"convention.CompileStatic": {}, | ||
"convention.ConfusingTernary": {}, | ||
"convention.CouldBeElvis": {}, | ||
"convention.CouldBeSwitchStatement": {}, | ||
"convention.FieldTypeRequired": {}, | ||
"convention.HashtableIsObsolete": {}, | ||
"convention.IfStatementCouldBeTernary": {}, | ||
"convention.ImplicitClosureParameter": {}, | ||
"convention.ImplicitReturnStatement": {}, | ||
"convention.InvertedCondition": {}, | ||
"convention.InvertedIfElse": {}, | ||
"convention.LongLiteralWithLowerCaseL": {}, | ||
"convention.MethodParameterTypeRequired": {}, | ||
"convention.MethodReturnTypeRequired": {}, | ||
"convention.NoDef": {}, | ||
"convention.NoDouble": {}, | ||
"convention.NoFloat": {}, | ||
"convention.NoJavaUtilDate": {}, | ||
"convention.NoTabCharacter": {}, | ||
"convention.ParameterReassignment": {}, | ||
"convention.PublicMethodsBeforeNonPublicMethods": {}, | ||
"convention.StaticFieldsBeforeInstanceFields": {}, | ||
"convention.StaticMethodsBeforeInstanceMethods": {}, | ||
"convention.TernaryCouldBeElvis": {}, | ||
"convention.TrailingComma": {}, | ||
"convention.VariableTypeRequired": {}, | ||
"convention.VectorIsObsolete": {}, | ||
"design.AbstractClassWithPublicConstructor": {}, | ||
"design.AbstractClassWithoutAbstractMethod": {}, | ||
"design.AssignmentToStaticFieldFromInstanceMethod": {}, | ||
"design.BooleanMethodReturnsNull": {}, | ||
"design.BuilderMethodWithSideEffects": {}, | ||
"design.CloneableWithoutClone": {}, | ||
"design.CloseWithoutCloseable": {}, | ||
"design.CompareToWithoutComparable": {}, | ||
"design.ConstantsOnlyInterface": {}, | ||
"design.EmptyMethodInAbstractClass": {}, | ||
"design.FinalClassWithProtectedMember": {}, | ||
"design.ImplementationAsType": {}, | ||
"design.Instanceof": {}, | ||
"design.LocaleSetDefault": {}, | ||
"design.NestedForLoop": {}, | ||
"design.OptionalCollectionReturnType": {}, | ||
"design.OptionalField": {}, | ||
"design.OptionalMethodParameter": {}, | ||
"design.PrivateFieldCouldBeFinal": {}, | ||
"design.PublicInstanceField": {}, | ||
"design.ReturnsNullInsteadOfEmptyArray": {}, | ||
"design.ReturnsNullInsteadOfEmptyCollection": {}, | ||
"design.SimpleDateFormatMissingLocale": {}, | ||
"design.StatelessSingleton": {}, | ||
"design.ToStringReturnsNull": {}, | ||
"dry.DuplicateListLiteral": {}, | ||
"dry.DuplicateMapLiteral": {}, | ||
"dry.DuplicateNumberLiteral": {}, | ||
"dry.DuplicateStringLiteral": {}, | ||
"enhanced.CloneWithoutCloneable": {}, | ||
"enhanced.JUnitAssertEqualsConstantActualValue": {}, | ||
"enhanced.MissingOverrideAnnotation": {}, | ||
"enhanced.UnsafeImplementationAsMap": {}, | ||
"exceptions.CatchArrayIndexOutOfBoundsException": {}, | ||
"exceptions.CatchError": {}, | ||
"exceptions.CatchException": {}, | ||
"exceptions.CatchIllegalMonitorStateException": {}, | ||
"exceptions.CatchIndexOutOfBoundsException": {}, | ||
"exceptions.CatchNullPointerException": {}, | ||
"exceptions.CatchRuntimeException": {}, | ||
"exceptions.CatchThrowable": {}, | ||
"exceptions.ConfusingClassNamedException": {}, | ||
"exceptions.ExceptionExtendsError": {}, | ||
"exceptions.ExceptionExtendsThrowable": {}, | ||
"exceptions.ExceptionNotThrown": {}, | ||
"exceptions.MissingNewInThrowStatement": {}, | ||
"exceptions.ReturnNullFromCatchBlock": {}, | ||
"exceptions.SwallowThreadDeath": {}, | ||
"exceptions.ThrowError": {}, | ||
"exceptions.ThrowException": {}, | ||
"exceptions.ThrowNullPointerException": {}, | ||
"exceptions.ThrowRuntimeException": {}, | ||
"exceptions.ThrowThrowable": {}, | ||
"formatting.BlankLineBeforePackage": {}, | ||
"formatting.BlockEndsWithBlankLine": {}, | ||
"formatting.BlockStartsWithBlankLine": {}, | ||
"formatting.BracesForClass": {}, | ||
"formatting.BracesForForLoop": {}, | ||
"formatting.BracesForIfElse": {}, | ||
"formatting.BracesForMethod": {}, | ||
"formatting.BracesForTryCatchFinally": {}, | ||
"formatting.ClassEndsWithBlankLine": {}, | ||
"formatting.ClassStartsWithBlankLine": {}, | ||
"formatting.ClosureStatementOnOpeningLineOfMultipleLineClosure": {}, | ||
"formatting.ConsecutiveBlankLines": {}, | ||
"formatting.FileEndsWithoutNewline": {}, | ||
"formatting.Indentation": {}, | ||
"formatting.LineLength": {}, | ||
"formatting.MissingBlankLineAfterImports": {}, | ||
"formatting.MissingBlankLineAfterPackage": {}, | ||
"formatting.MissingBlankLineBeforeAnnotatedField": {}, | ||
"formatting.SpaceAfterCatch": {}, | ||
"formatting.SpaceAfterClosingBrace": {}, | ||
"formatting.SpaceAfterComma": {}, | ||
"formatting.SpaceAfterFor": {}, | ||
"formatting.SpaceAfterIf": {}, | ||
"formatting.SpaceAfterMethodCallName": {}, | ||
"formatting.SpaceAfterMethodDeclarationName": {}, | ||
"formatting.SpaceAfterNotOperator": {}, | ||
"formatting.SpaceAfterOpeningBrace": {}, | ||
"formatting.SpaceAfterSemicolon": {}, | ||
"formatting.SpaceAfterSwitch": {}, | ||
"formatting.SpaceAfterWhile": {}, | ||
"formatting.SpaceAroundClosureArrow": {}, | ||
"formatting.SpaceAroundMapEntryColon": {}, | ||
"formatting.SpaceAroundOperator": {}, | ||
"formatting.SpaceBeforeClosingBrace": {}, | ||
"formatting.SpaceBeforeOpeningBrace": {}, | ||
"formatting.SpaceInsideParentheses": {}, | ||
"formatting.TrailingWhitespace": {}, | ||
"generic.IllegalClassMember": {}, | ||
"generic.IllegalClassReference": {}, | ||
"generic.IllegalPackageReference": {}, | ||
"generic.IllegalRegex": {}, | ||
"generic.IllegalString": {}, | ||
"generic.IllegalSubclass": {}, | ||
"generic.RequiredRegex": {}, | ||
"generic.RequiredString": {}, | ||
"generic.StatelessClass": {}, | ||
"grails.GrailsDomainGormMethods": {}, | ||
"grails.GrailsDomainHasEquals": {}, | ||
"grails.GrailsDomainHasToString": {}, | ||
"grails.GrailsDomainReservedSqlKeywordName": {}, | ||
"grails.GrailsDomainStringPropertyMaxSize": {}, | ||
"grails.GrailsDomainWithServiceReference": {}, | ||
"grails.GrailsDuplicateConstraint": {}, | ||
"grails.GrailsDuplicateMapping": {}, | ||
"grails.GrailsMassAssignment": {}, | ||
"grails.GrailsPublicControllerMethod": {}, | ||
"grails.GrailsServletContextReference": {}, | ||
"grails.GrailsStatelessService": {}, | ||
"groovyism.AssignCollectionSort": {}, | ||
"groovyism.AssignCollectionUnique": {}, | ||
"groovyism.ClosureAsLastMethodParameter": {}, | ||
"groovyism.CollectAllIsDeprecated": {}, | ||
"groovyism.ConfusingMultipleReturns": {}, | ||
"groovyism.ExplicitArrayListInstantiation": {}, | ||
"groovyism.ExplicitCallToAndMethod": {}, | ||
"groovyism.ExplicitCallToCompareToMethod": {}, | ||
"groovyism.ExplicitCallToDivMethod": {}, | ||
"groovyism.ExplicitCallToEqualsMethod": {}, | ||
"groovyism.ExplicitCallToGetAtMethod": {}, | ||
"groovyism.ExplicitCallToLeftShiftMethod": {}, | ||
"groovyism.ExplicitCallToMinusMethod": {}, | ||
"groovyism.ExplicitCallToModMethod": {}, | ||
"groovyism.ExplicitCallToMultiplyMethod": {}, | ||
"groovyism.ExplicitCallToOrMethod": {}, | ||
"groovyism.ExplicitCallToPlusMethod": {}, | ||
"groovyism.ExplicitCallToPowerMethod": {}, | ||
"groovyism.ExplicitCallToPutAtMethod": {}, | ||
"groovyism.ExplicitCallToRightShiftMethod": {}, | ||
"groovyism.ExplicitCallToXorMethod": {}, | ||
"groovyism.ExplicitHashMapInstantiation": {}, | ||
"groovyism.ExplicitHashSetInstantiation": {}, | ||
"groovyism.ExplicitLinkedHashMapInstantiation": {}, | ||
"groovyism.ExplicitLinkedListInstantiation": {}, | ||
"groovyism.ExplicitStackInstantiation": {}, | ||
"groovyism.ExplicitTreeSetInstantiation": {}, | ||
"groovyism.GStringAsMapKey": {}, | ||
"groovyism.GStringExpressionWithinString": {}, | ||
"groovyism.GetterMethodCouldBeProperty": {}, | ||
"groovyism.GroovyLangImmutable": {}, | ||
"groovyism.UseCollectMany": {}, | ||
"groovyism.UseCollectNested": {}, | ||
"imports.DuplicateImport": {}, | ||
"imports.ImportFromSamePackage": {}, | ||
"imports.ImportFromSunPackages": {}, | ||
"imports.MisorderedStaticImports": {}, | ||
"imports.NoWildcardImports": {}, | ||
"imports.UnnecessaryGroovyImport": {}, | ||
"imports.UnusedImport": {}, | ||
"jdbc.DirectConnectionManagement": {}, | ||
"jdbc.JdbcConnectionReference": {}, | ||
"jdbc.JdbcResultSetReference": {}, | ||
"jdbc.JdbcStatementReference": {}, | ||
"junit.ChainedTest": {}, | ||
"junit.CoupledTestCase": {}, | ||
"junit.JUnitAssertAlwaysFails": {}, | ||
"junit.JUnitAssertAlwaysSucceeds": {}, | ||
"junit.JUnitFailWithoutMessage": {}, | ||
"junit.JUnitLostTest": {}, | ||
"junit.JUnitPublicField": {}, | ||
"junit.JUnitPublicNonTestMethod": {}, | ||
"junit.JUnitPublicProperty": {}, | ||
"junit.JUnitSetUpCallsSuper": {}, | ||
"junit.JUnitStyleAssertions": {}, | ||
"junit.JUnitTearDownCallsSuper": {}, | ||
"junit.JUnitTestMethodWithoutAssert": {}, | ||
"junit.JUnitUnnecessarySetUp": {}, | ||
"junit.JUnitUnnecessaryTearDown": {}, | ||
"junit.JUnitUnnecessaryThrowsException": {}, | ||
"junit.SpockIgnoreRestUsed": {}, | ||
"junit.UnnecessaryFail": {}, | ||
"junit.UseAssertEqualsInsteadOfAssertTrue": {}, | ||
"junit.UseAssertFalseInsteadOfNegation": {}, | ||
"junit.UseAssertNullInsteadOfAssertEquals": {}, | ||
"junit.UseAssertSameInsteadOfAssertTrue": {}, | ||
"junit.UseAssertTrueInsteadOfAssertEquals": {}, | ||
"junit.UseAssertTrueInsteadOfNegation": {}, | ||
"logging.LoggerForDifferentClass": {}, | ||
"logging.LoggerWithWrongModifiers": {}, | ||
"logging.LoggingSwallowsStacktrace": {}, | ||
"logging.MultipleLoggers": {}, | ||
"logging.PrintStackTrace": {}, | ||
"logging.Println": {}, | ||
"logging.SystemErrPrint": {}, | ||
"logging.SystemOutPrint": {}, | ||
"naming.AbstractClassName": {}, | ||
"naming.ClassName": {}, | ||
"naming.ClassNameSameAsFilename": {}, | ||
"naming.ClassNameSameAsSuperclass": {}, | ||
"naming.ConfusingMethodName": {}, | ||
"naming.FactoryMethodName": {}, | ||
"naming.FieldName": {}, | ||
"naming.InterfaceName": {}, | ||
"naming.InterfaceNameSameAsSuperInterface": {}, | ||
"naming.MethodName": {}, | ||
"naming.ObjectOverrideMisspelledMethodName": {}, | ||
"naming.PackageName": {}, | ||
"naming.PackageNameMatchesFilePath": {}, | ||
"naming.ParameterName": {}, | ||
"naming.PropertyName": {}, | ||
"naming.VariableName": {}, | ||
"security.FileCreateTempFile": {}, | ||
"security.InsecureRandom": {}, | ||
"security.JavaIoPackageAccess": {}, | ||
"security.NonFinalPublicField": {}, | ||
"security.NonFinalSubclassOfSensitiveInterface": {}, | ||
"security.ObjectFinalize": {}, | ||
"security.PublicFinalizeMethod": {}, | ||
"security.SystemExit": {}, | ||
"security.UnsafeArrayDeclaration": {}, | ||
"serialization.EnumCustomSerializationIgnored": {}, | ||
"serialization.SerialPersistentFields": {}, | ||
"serialization.SerialVersionUID": {}, | ||
"serialization.SerializableClassMustDefineSerialVersionUID": {}, | ||
"size.ClassSize": {}, | ||
"size.MethodCount": {}, | ||
"size.MethodSize": {}, | ||
"size.NestedBlockDepth": {}, | ||
"size.ParameterCount": {}, | ||
"unnecessary.AddEmptyString": {}, | ||
"unnecessary.ConsecutiveLiteralAppends": {}, | ||
"unnecessary.ConsecutiveStringConcatenation": {}, | ||
"unnecessary.UnnecessaryBigDecimalInstantiation": {}, | ||
"unnecessary.UnnecessaryBigIntegerInstantiation": {}, | ||
"unnecessary.UnnecessaryBooleanExpression": {}, | ||
"unnecessary.UnnecessaryBooleanInstantiation": {}, | ||
"unnecessary.UnnecessaryCallForLastElement": {}, | ||
"unnecessary.UnnecessaryCallToSubstring": {}, | ||
"unnecessary.UnnecessaryCast": {}, | ||
"unnecessary.UnnecessaryCatchBlock": {}, | ||
"unnecessary.UnnecessaryCollectCall": {}, | ||
"unnecessary.UnnecessaryCollectionCall": {}, | ||
"unnecessary.UnnecessaryConstructor": {}, | ||
"unnecessary.UnnecessaryDefInFieldDeclaration": {}, | ||
"unnecessary.UnnecessaryDefInMethodDeclaration": {}, | ||
"unnecessary.UnnecessaryDefInVariableDeclaration": {}, | ||
"unnecessary.UnnecessaryDotClass": {}, | ||
"unnecessary.UnnecessaryDoubleInstantiation": {}, | ||
"unnecessary.UnnecessaryElseStatement": {}, | ||
"unnecessary.UnnecessaryFinalOnPrivateMethod": {}, | ||
"unnecessary.UnnecessaryFloatInstantiation": {}, | ||
"unnecessary.UnnecessaryGString": {}, | ||
"unnecessary.UnnecessaryGetter": {}, | ||
"unnecessary.UnnecessaryIfStatement": {}, | ||
"unnecessary.UnnecessaryInstanceOfCheck": {}, | ||
"unnecessary.UnnecessaryInstantiationToGetClass": {}, | ||
"unnecessary.UnnecessaryIntegerInstantiation": {}, | ||
"unnecessary.UnnecessaryLongInstantiation": {}, | ||
"unnecessary.UnnecessaryModOne": {}, | ||
"unnecessary.UnnecessaryNullCheck": {}, | ||
"unnecessary.UnnecessaryNullCheckBeforeInstanceOf": {}, | ||
"unnecessary.UnnecessaryObjectReferences": {}, | ||
"unnecessary.UnnecessaryOverridingMethod": {}, | ||
"unnecessary.UnnecessaryPackageReference": {}, | ||
"unnecessary.UnnecessaryParenthesesForMethodCallWithClosure": {}, | ||
"unnecessary.UnnecessaryPublicModifier": {}, | ||
"unnecessary.UnnecessaryReturnKeyword": {}, | ||
"unnecessary.UnnecessarySafeNavigationOperator": {}, | ||
"unnecessary.UnnecessarySelfAssignment": {}, | ||
"unnecessary.UnnecessarySemicolon": {}, | ||
"unnecessary.UnnecessarySetter": {}, | ||
"unnecessary.UnnecessaryStringInstantiation": {}, | ||
"unnecessary.UnnecessaryTernaryExpression": {}, | ||
"unnecessary.UnnecessaryToString": {}, | ||
"unnecessary.UnnecessaryTransientModifier": {}, | ||
"unused.UnusedArray": {}, | ||
"unused.UnusedMethodParameter": {}, | ||
"unused.UnusedObject": {}, | ||
"unused.UnusedPrivateField": {}, | ||
"unused.UnusedPrivateMethod": {}, | ||
"unused.UnusedPrivateMethodParameter": {}, | ||
"unused.UnusedVariable": {} | ||
} | ||
} |
@@ -38,4 +38,3 @@ // Call CodeNarc by server or java | ||
rootPath: __dirname, | ||
mainClass: "com.nvuillam.CodeNarcServer", | ||
classPath: "java/CodeNarcServer.jar:java/*" | ||
jar: "java/CodeNarcServer.jar" | ||
}, | ||
@@ -46,5 +45,3 @@ codeNarcJava: { | ||
rootPath: __dirname, | ||
mainClass: "org.codenarc.CodeNarc", | ||
classPath: | ||
"java/CodeNarc-3.1.0.jar:java/groovy/lib/groovy-3.0.9.jar:java/groovy/lib/groovy-templates-3.0.9.jar:java/groovy/lib/groovy-xml-3.0.9.jar:java/groovy/lib/groovy-json-3.0.9.jar:java/groovy/lib/groovy-ant-3.0.9.jar:java/groovy/lib/ant-1.10.11.jar:java/groovy/lib/ant-launcher-1.10.11.jar:java/slf4j-api-1.7.9.jar:java/log4j-slf4j-impl-2.18.0.jar:java/log4j-api-2.18.0.jar:java/log4j-core-2.18.0.jar:java/GMetrics-2.1.0.jar:java/*" | ||
jar: "java/CodeNarcServer.jar" | ||
} | ||
@@ -51,0 +48,0 @@ }; |
@@ -52,3 +52,3 @@ // Imports | ||
); | ||
this.bar.start(Object.keys(this.updatedLintResult.files).length, 0); | ||
this.bar.start(Object.keys(this.updatedLintResult.files).length, 0, { file: "..." }); | ||
@@ -189,2 +189,5 @@ // Parse fixes and process them | ||
allLines = allLinesNew; | ||
debug(`Fixed ${fileFixableError.ruleName} in file ${fileNm}`); | ||
} else { | ||
debug(`Skipping ${fileFixableError.ruleName} as no change in file ${fileNm}`); | ||
} | ||
@@ -199,2 +202,4 @@ } | ||
allLines[lineNb] = fixedLine; | ||
} else { | ||
debug(`Skipping ${fileFixableError.ruleName} as no change in line: ${line}`); | ||
} | ||
@@ -277,2 +282,4 @@ } | ||
} | ||
} else { | ||
debug(`Fix type not supported: ${fix.type} / ${JSON.stringify(fixableError)}`); | ||
} | ||
@@ -279,0 +286,0 @@ return newLine; |
@@ -14,2 +14,4 @@ /** | ||
const defaultServerPort = process.env.SERVER_PORT ? process.env.SERVER_PORT : "7484"; | ||
//------------------------------------------------------------------------------ | ||
@@ -19,4 +21,3 @@ // Initialization and Public Interface | ||
// exports "parse(args)", "generateHelp()", and "generateHelpForOption(optionName)" | ||
module.exports = optionator({ | ||
let options = optionator({ | ||
prepend: "npm-groovy-lint [options]", | ||
@@ -188,4 +189,4 @@ defaults: { | ||
type: "String", | ||
default: "7484", | ||
description: "If use of CodeNarc server, port of the CodeNarc server (default: 7484)", | ||
default: defaultServerPort, | ||
description: `If use of CodeNarc server, port of the CodeNarc server (default: ${defaultServerPort})`, | ||
example: ["2702"] | ||
@@ -290,1 +291,10 @@ }, | ||
}); | ||
options.defaultServerPort = defaultServerPort; | ||
// Export: | ||
// - parse(args) | ||
// - generateHelp() | ||
// - generateHelpForOption(optionName) | ||
// - defaultServerPort | ||
module.exports = options; |
{ | ||
"name": "npm-groovy-lint", | ||
"version": "11.1.2-beta202310250645.0", | ||
"version": "11.1.2-beta202310271757.0", | ||
"description": "Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files", | ||
@@ -8,11 +8,13 @@ "main": "index.js", | ||
"lint:fix": "eslint **/*.js --fix && prettier --write \"./lib/**/*.{js,jsx}\" --tab-width 4 --print-width 150", | ||
"groovy:run-server-from-source": "npm run dev:kill-server && groovy -cp \"lib/java/*\" groovy/src/main/com/nvuillam/CodeNarcServer.groovy --server", | ||
"groovy:build": "npm run dev:kill-server && groovyc -cp \"lib/java/*\" --encoding utf-8 ./groovy/src/main/com/nvuillam/CodeNarcServer.groovy -d ./tmp && cd ./tmp && jar -cvfm ./../lib/java/CodeNarcServer.jar ./../MANIFEST.txt ./com/nvuillam/*.class && cd ..", | ||
"server:run-from-source": "npm run dev:kill-server && groovy -cp \"lib/java/*\" groovy/src/main/com/nvuillam/CodeNarcServer.groovy --server", | ||
"server:run": "npm run dev:kill-server && java -Xms256m -Xmx2048m -jar lib/java/CodeNarcServer.jar --server", | ||
"server:build": "node scripts/build-server.js", | ||
"test": "npm run dev:kill-server && mocha \"test/**/*.test.js\"", | ||
"test:coverage": "nyc npm run test", | ||
"test:debug": "npm run dev:kill-server && mocha --reporter spec --inspect-brk \"test/**/*.test.js\"", | ||
"build": "node script-build-config-all.js && cp -f README.md docs/index.md && cp -f CHANGELOG.md docs/CHANGELOG.md", | ||
"build": "node scripts/build-config-all.js && cp -f README.md docs/index.md && cp -f CHANGELOG.md docs/CHANGELOG.md", | ||
"dev:kill-server": "npm-groovy-lint --killserver", | ||
"dev:lint-install-local": "npm run dev:kill-server && npm run lint:fix && npm link --force", | ||
"dev:lint-install-local-copy-vscode": "npm run dev:lint-install-local && node script-deploy-in-vscode.js" | ||
"dev:lint-install-local-copy-vscode": "npm run dev:lint-install-local && node scripts/deploy-in-vscode.js", | ||
"dev:pre-commit": "npm-run-all lint:fix build server:build" | ||
}, | ||
@@ -73,5 +75,8 @@ "repository": { | ||
"@babel/eslint-parser": "^7.22.15", | ||
"adm-zip": "^0.5.10", | ||
"diff": "^4.0.2", | ||
"eslint": "^8.52.0", | ||
"handlebars": "^4.7.8", | ||
"mocha": "^10.2.0", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^15.1.0", | ||
@@ -78,0 +83,0 @@ "prettier": "^1.19.1", |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
14952697
121
7430
12
23