-
Notifications
You must be signed in to change notification settings - Fork 23
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
[Draft] Dashboard: Variable Referencing in Lattice Configuration #829
base: development
Are you sure you want to change the base?
[Draft] Dashboard: Variable Referencing in Lattice Configuration #829
Conversation
doesnt make sense to display the button on all rows if it adds the button in the same location
for more information, see https://pre-commit.ci
return duplicates | ||
|
||
@staticmethod | ||
def validate_variable_name(new_name, index) -> None: |
Check notice
Code scanning / CodeQL
Explicit returns mixed with implicit (fall through) returns Note
duplicate_indexes = LatticeVariableHandler.get_duplicate_indexes( | ||
new_name, index | ||
) | ||
send_error = set_var_error_message("error") |
Check warning
Code scanning / CodeQL
Use of the return value of a procedure Warning
LatticeVariableHandler.validate_variable_name.set_var_error_message
send_error = set_var_error_message("error") | ||
|
||
if not alpha: | ||
send_error |
Check notice
Code scanning / CodeQL
Statement has no effect Note
state.dirty("variables") | ||
return True | ||
elif duplicate_indexes: | ||
for index in duplicate_indexes: |
Check failure
Code scanning / CodeQL
Suspicious unused loop iteration variable Error
return True | ||
elif duplicate_indexes: | ||
for index in duplicate_indexes: | ||
send_error |
Check notice
Code scanning / CodeQL
Statement has no effect Note
Allows dashboard users to define variable names, assign numeric values, and reference these variables in lattice configurations.
Variable Naming Requirements:
Variable Value Requirements:
To Do: