Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .claude/hooks/check-dangerous-commands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/usr/bin/env python3
#
# Copyright (c) 2026 LabKey Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""
Claude Code PreToolUse hook - cross-platform dangerous command checker
Works on macOS, Linux, and Windows (native or WSL)
Expand Down
15 changes: 15 additions & 0 deletions .claude/hooks/check-secrets-file.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/usr/bin/env python3
#
# Copyright (c) 2026 LabKey Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""
Claude Code PreToolUse hook - blocks Read/Edit/Grep access to secrets files.
Closes the bypass where tools other than Bash can access sensitive files.
Expand Down
15 changes: 15 additions & 0 deletions .claude/hooks/secrets_patterns.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
#
# Copyright (c) 2026 LabKey Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""
Shared secrets file patterns used by both check-dangerous-commands.py and check-secrets-file.py.
Edit this single file to update secrets detection across all hooks.
Expand Down
15 changes: 15 additions & 0 deletions .claude/hooks/test-hooks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/usr/bin/env python3
#
# Copyright (c) 2026 LabKey Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""
Test harness for Claude Code PreToolUse hooks.
Tests both check-dangerous-commands.py (Bash) and check-secrets-file.py (Read/Edit/Grep).
Expand Down
15 changes: 15 additions & 0 deletions .claude/review-pr-eval/eval.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/usr/bin/env python3
#
# Copyright (c) 2026 LabKey Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""
Evaluate review-pr prompt variants against a training set of PRs with known critical bugs.

Expand Down
15 changes: 15 additions & 0 deletions .claude/scripts/tc_branch_builds.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/usr/bin/env python3
#
# Copyright (c) 2026 LabKey Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""List queued and running TeamCity builds for a given branch."""

import argparse
Expand Down
15 changes: 15 additions & 0 deletions .idea/fileTemplates/WebDriverTestClass.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/fileTemplates/WebDriverTestComponent.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/fileTemplates/WebDriverTestPage.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 LabKey Corporation
* Copyright (c) 2017-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,8 +18,6 @@
/**
* LabKey's stub version of AntClassLoader. Tomcat's JspC requires this class; providing it and a few others in our
* bootstrap jar eliminates the need to distribute and deploy ant.jar into the /tomcat/lib directory.
*
* Created by adam on 5/27/2017.
*/
@SuppressWarnings("unused")
public class AntClassLoader extends ClassLoader
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 LabKey Corporation
* Copyright (c) 2017-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,8 +18,6 @@
/**
* LabKey's stub version of ant's BuildException. Tomcat's JspC requires this class; providing it and a few others in our
* bootstrap jar eliminates the need to distribute and deploy ant.jar into the /tomcat/lib directory.
*
* Created by adam on 5/27/2017.
*/
@SuppressWarnings("unused")
public class BuildException extends RuntimeException
Expand Down
4 changes: 1 addition & 3 deletions server/bootstrap/src/org/apache/tools/ant/Project.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 LabKey Corporation
* Copyright (c) 2017-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,8 +18,6 @@
/**
* LabKey's stub version of ant's Project. Tomcat's JspC requires this class; providing it and a few others in our
* bootstrap jar eliminates the need to distribute and deploy ant.jar into the /tomcat/lib directory.
*
* Created by adam on 5/27/2017.
*/
public class Project
{
Expand Down
4 changes: 1 addition & 3 deletions server/bootstrap/src/org/apache/tools/ant/Task.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 LabKey Corporation
* Copyright (c) 2017-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,8 +18,6 @@
/**
* LabKey's stub version of ant's Task. Tomcat's JspC requires this class; providing it and a few others in our
* bootstrap jar eliminates the need to distribute and deploy ant.jar into the /tomcat/lib directory.
*
* Created by adam on 5/27/2017.
*/
@SuppressWarnings("unused")
public class Task
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008-2013 LabKey Corporation
* Copyright (c) 2008-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,10 +18,6 @@

import java.util.*;

/**
* User: jeckels
* Date: Apr 16, 2008
*/
public class ArgumentParser
{
private final List<String> _params = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008-2018 LabKey Corporation
* Copyright (c) 2008-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,11 +15,6 @@
*/
package org.labkey.bootstrap;

/*
* User: Dave
* Date: Dec 9, 2008
* Time: 10:56:03 AM
*/
public class BaseComparator
{
public static final int FILE_TIMESTAMP_ERROR = 2000;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008-2014 LabKey Corporation
* Copyright (c) 2008-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,10 +21,6 @@
import java.lang.reflect.Method;
import java.util.List;

/**
* User: jeckels
* Date: Apr 10, 2008
*/
@SuppressWarnings("ALL")
public class ClusterBootstrap
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008 LabKey Corporation
* Copyright (c) 2008-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008-2018 LabKey Corporation
* Copyright (c) 2008-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,12 +34,6 @@
import java.util.Map;
import java.util.Set;

/*
* User: Dave
* Date: Dec 8, 2008
* Time: 3:08:00 PM
*/

/**
* Represents an exploded module directory.
* This class makes assumptions about the layout of the module directories,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright (c) 2020-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.labkey.bootstrap;

import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008 LabKey Corporation
* Copyright (c) 2008-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,12 +18,6 @@
import java.io.File;
import java.util.Comparator;

/*
* User: Dave
* Date: Dec 9, 2008
* Time: 10:54:30 AM
*/

/**
* Compares two files (or directories)
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008 LabKey Corporation
* Copyright (c) 2008-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,11 +19,6 @@
import java.util.Comparator;
import java.io.File;

/*
* User: Dave
* Date: Dec 9, 2008
* Time: 10:58:14 AM
*/
public class JarEntryComparator extends BaseComparator implements Comparator<JarEntry>
{
@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 LabKey Corporation
* Copyright (c) 2017-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,10 +37,6 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;

/**
* User: jeckels
* Date: Jun 8, 2006
*/
public class LabKeyBootstrapClassLoader extends WebappClassLoader implements ExplodedModuleService
{
private final static Logger _log = LogManager.getLogger(LabKeyBootstrapClassLoader.class);
Expand Down
Loading