Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
25d099a
Create linter.yml
Siromanec Oct 16, 2022
872b329
added some flower, started working on flowerbucket
Siromanec Oct 16, 2022
0b33f4c
added some flower, started working on flowerbucket
Siromanec Oct 16, 2022
0b6d379
write bucket
Siromanec Oct 16, 2022
52a23eb
fix tests
Siromanec Oct 16, 2022
023e75a
Create README.md
Siromanec Oct 16, 2022
548c143
Merge pull request #1 from Siromanec/main
Siromanec Oct 16, 2022
1597f8d
Update ci.yaml
Siromanec Oct 23, 2022
1ad268d
fix tests
Siromanec Oct 23, 2022
d3fc336
Update README.md
Siromanec Oct 23, 2022
13002f6
Update ci.yaml
Siromanec Oct 23, 2022
70094c3
Merge remote-tracking branch 'origin/flower-bucket' into flower-bucket
Siromanec Oct 24, 2022
b73807c
fix this burning hellhole
Siromanec Nov 11, 2022
7de50ed
Update checkstyle.xml
Siromanec Nov 11, 2022
f78f768
docs
Siromanec Nov 11, 2022
858ab5f
Merge branch 'flower-bucket' of https://github.com/Siromanec/FlowerSt…
Siromanec Nov 11, 2022
af35708
Update ci.yaml
Siromanec Nov 11, 2022
fd46fb6
Update ci.yaml
Siromanec Nov 11, 2022
6a9ee8d
Create checkstyle.xml
Siromanec Nov 11, 2022
7070d1c
docs
Siromanec Nov 11, 2022
74646d4
Merge remote-tracking branch 'origin/flower-bucket' into flower-bucket
Siromanec Nov 11, 2022
d8ccfe8
docs
Siromanec Nov 11, 2022
35f9ffa
docs
Siromanec Nov 11, 2022
dcc54ea
docs
Siromanec Nov 11, 2022
b6adb05
docs
Siromanec Nov 11, 2022
9d7793b
Update README.md
Siromanec Nov 11, 2022
6d73ab1
Update README.md
Siromanec Nov 11, 2022
1b0ed67
docs
Siromanec Nov 11, 2022
4248b0c
Merge remote-tracking branch 'origin/flower-bucket' into flower-bucket
Siromanec Nov 11, 2022
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
7 changes: 5 additions & 2 deletions .github/linters/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@
<!-- <module name="FinalClass"/> -->
<module name="InterfaceIsType"/>
<module name="MutableException"/>

<module name="HiddenField" >
<property name="ignoreSetter" value="true" />
<property name="ignoreConstructorParameter" value="true" />
</module>

<!-- =========================================================================== -->
<!-- Coding violations -->
Expand Down Expand Up @@ -303,4 +306,4 @@

</module>

</module>
</module>
309 changes: 309 additions & 0 deletions .github/workflows/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,309 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">


<module name="Checker">


<!-- Checks that property files contain the same keys. -->
<module name="Translation"/>

<!-- Checks that no tab characters in the source code. -->
<!-- Reports only first instance. -->
<module name="FileTabCharacter">
<property name="eachLine" value="false"/>
</module>


<!-- Checks that no file is more than 1500 lines long. -->
<module name="FileLength">
<property name="max" value="1500"/>
</module>

<!-- Check that length of line is at most 80 characters. -->
<module name="LineLength">
<property name="max" value="80"/>
<property name="ignorePattern" value="^ *\* *[^ ]+$"/>
</module>


<!-- =========================================================================== -->
<!-- =========================================================================== -->
<!-- TREEWALKER BEGINS HERE -->
<!-- =========================================================================== -->
<!-- =========================================================================== -->

<module name="TreeWalker">

<!-- =========================================================================== -->
<!-- Check for annotations -->
<!-- http://checkstyle.sourceforge.net/config_annotation.html -->
<!-- =========================================================================== -->
<module name="SuppressWarnings">
<property name="format"
value="^unchecked$|^unused$"/>
<property name="tokens"
value="
CLASS_DEF,INTERFACE_DEF,ENUM_DEF,
ANNOTATION_DEF,ANNOTATION_FIELD_DEF,
ENUM_CONSTANT_DEF,METHOD_DEF,CTOR_DEF,
PARAMETER_DEF,VARIABLE_DEF
"/>
</module>

<!-- =========================================================================== -->
<!-- Block checks -->
<!-- http://checkstyle.sourceforge.net/config_blocks.html -->
<!-- =========================================================================== -->
<module name="EmptyBlock">
<property name="option" value="text"/>
</module>
<module name="AvoidNestedBlocks"/>


<!-- =========================================================================== -->
<!-- Class design -->
<!-- http://checkstyle.sourceforge.net/config_design.html -->
<!-- =========================================================================== -->
<!-- SPECIAL HACK FOR NON-STATIC PUBIC FINAL VARIABLE -->
<module name="VisibilityModifier">
<property name="publicMemberPattern" value="^SLOPE_ORDER$"/>
</module>
<!-- <module name="FinalClass"/> -->
<module name="InterfaceIsType"/>
<module name="MutableException"/>
<module name="HiddenField" >
<property name="ignoreSetter" value="true" />
<property name="ignoreConstructorParameter" value="true" />
</module>

<!-- =========================================================================== -->
<!-- Coding violations -->
<!-- http://checkstyle.sourceforge.net/config_coding.html -->
<!-- =========================================================================== -->
<module name="AvoidInlineConditionals"/>
<module name="CovariantEquals"/>
<!-- <module name="DoubleCheckedLocking"/> NO LONGER AVAILABLE IN CHECKSTYLE 5.6 -->
<module name="EmptyStatement"/>
<!-- <module name="EqualsHashCode"/> -->
<module name="HiddenField">
<property name="ignoreConstructorParameter" value="true"/>
</module>
<module name="IllegalInstantiation"/>
<module name="InnerAssignment"/>
<module name="MagicNumber">
<property name="tokens"
value="NUM_DOUBLE, NUM_FLOAT, NUM_INT, NUM_LONG"/>
<property name="ignoreNumbers" value="-1, 0, 0.5, 1, 2"/>
<property name="ignoreHashCodeMethod" value="true"/>
</module>
<module name="MissingSwitchDefault"/>
<module name="ModifiedControlVariable"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="StringLiteralEquality"/>
<module name="NestedForDepth">
<property name="max" value="4"/>
</module>
<module name="NestedIfDepth">
<property name="max" value="3"/>
</module>
<module name="NestedTryDepth">
<property name="max" value="1"/>
</module>
<module name="NoClone"/>
<module name="NoFinalizer"/>
<module name="SuperClone"/>
<module name="SuperFinalize"/>

<!-- Avoid masking of OutOfMemoryError or NullPointerExceptionError -->
<module name="IllegalCatch"/>

<!-- Don't allow variables to be declared of wrapper types -->
<module name="IllegalType">
<property name="illegalClassNames"
value="java.lang.Boolean, java.lang.Integer, java.lang.Double, java.lang.Float, java.lang.Character, java.lang.Long, java.lang.Short, java.lang.Byte, java.lang.Class"/>
</module>

<module name="DeclarationOrder"/>
<module name="ParameterAssignment"/>
<module name="DefaultComesLast"/>
<module name="FallThrough">
<property name="reliefPattern" value="continue in next case"/>
</module>
<module name="OneStatementPerLine"/>


<!-- =========================================================================== -->
<!-- Duplicate code -->
<!-- http://checkstyle.sourceforge.net/config_duplicates.html -->
<!-- =========================================================================== -->


<!-- =========================================================================== -->
<!-- Headers -->
<!-- http://checkstyle.sourceforge.net/config_header.html -->
<!-- =========================================================================== -->


<!-- =========================================================================== -->
<!-- Imports -->
<!-- http://checkstyle.sourceforge.net/config_imports.html -->
<!-- =========================================================================== -->
<module name="AvoidStarImport"/>
<module name="AvoidStaticImport"/>

<module name="IllegalImport">
<property name="illegalPkgs"
value="java.sql, sun, java.net, java.security, javax, java.applet, java.beans, java.nio, java.rmi, java.text, java.lang.reflect, java.lang.instrument"/>
</module>

<module name="RedundantImport"/>
<module name="UnusedImports"/>


<!-- =========================================================================== -->
<!-- Javadoc comments -->
<!-- http://checkstyle.sourceforge.net/config_javadoc.html -->
<!-- =========================================================================== -->


<!-- =========================================================================== -->
<!-- Metrics -->
<!-- http://checkstyle.sourceforge.net/config_metrics.html -->
<!-- =========================================================================== -->


<!-- =========================================================================== -->
<!-- Miscellaneous checks -->
<!-- http://checkstyle.sourceforge.net/config_misc.html -->
<!-- =========================================================================== -->
<module name="TodoComment"/>
<module name="UpperEll"/>
<module name="ArrayTypeStyle"/>
<module name="OuterTypeFilename"/>


<!-- =========================================================================== -->
<!-- Modifiers -->
<!-- http://checkstyle.sourceforge.net/config_modifier.html -->
<!-- =========================================================================== -->
<module name="ModifierOrder"/>
<module name="RedundantModifier"/>


<!-- =========================================================================== -->
<!-- Naming conventions -->
<!-- http://checkstyle.sourceforge.net/config_naming.html -->
<!-- =========================================================================== -->

<!-- MODIFIED TO ALLOW SINGLE LETTER UPPERCASE NAMES -->
<!-- MODIFIED TO ALLOW FINAL VARIABLES TO BE ALL UPPER-CASE -->
<!-- Disallow underscore characters -->
<module name="ConstantName">
<property name="format" value="^[A-Z][A-Z_]*$"/>
</module>
<module name="LocalFinalVariableName">
<property name="format" value="^[A-Z][A-Z_]*$"/>
</module>
<module name="LocalVariableName">
<property name="format" value="^[a-z][a-zA-Z]*$"/>
</module>
<module name="MemberName">
<property name="format" value="^[a-z][a-zA-Z]*$"/>
</module>

<module name="MethodName">
<property name="format" value="^[a-z][a-zA-Z]*$"/>
</module>

<module name="PackageName">
<property name="format" value="^[a-z]+(\.[a-z][a-z]*)*$"/>
</module>
<module name="PackageName"/>
<module name="ParameterName">
<property name="format" value="^[a-z][a-zA-Z]*$"/>
</module>
<module name="StaticVariableName">
<property name="format" value="^[a-z][a-zA-Z]*$|^[A-Z][A-Z_]*$"/>
</module>
<module name="TypeName">
<property name="format" value="^[A-Z][a-zA-Z]*$"/>
</module>

<!-- =========================================================================== -->
<!-- Regexp -->
<!-- http://checkstyle.sourceforge.net/config_regexp.html -->
<!-- =========================================================================== -->

<!-- Checks for calls to System.exit(). -->
<module name="RegexpSinglelineJava">
<property name="format" value="System\.exit"/>
<property name="ignoreComments" value="true"/>
<property name="message" value="Not permitted to call System.exit()"/>
</module>

<!-- Checks for calls to Math.pow(). -->
<module name="RegexpSinglelineJava">
<property name="format" value="Math\.pow\([^,]*, 2\)"/>
<property name="ignoreComments" value="true"/>
<property name="message" value="Use x*x instead of Math.pow(x, 2)"/>
</module>
<module name="RegexpSinglelineJava">
<property name="format" value="Math\.pow\([^,]*, 3\)"/>
<property name="ignoreComments" value="true"/>
<property name="message" value="Use x*x*x instead of Math.pow(x, 3)"/>
</module>


<!-- =========================================================================== -->
<!-- Size violations -->
<!-- http://checkstyle.sourceforge.net/config_sizes.html -->
<!-- =========================================================================== -->

<module name="MethodLength"/>
<module name="AnonInnerLength"/>
<module name="ParameterNumber"/>
<module name="OuterTypeNumber"/>
<module name="MethodCount"/>


<!-- =========================================================================== -->
<!-- Whitespace -->
<!-- http://checkstyle.sourceforge.net/config_whitespace.html -->
<!-- =========================================================================== -->
<module name="GenericWhitespace"/>
<module name="EmptyForInitializerPad"/>
<module name="EmptyForIteratorPad"/>
<module name="MethodParamPad"/>
<module name="NoWhitespaceAfter">
<property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/>
</module>
<module name="NoWhitespaceBefore"/>
<module name="OperatorWrap"/>
<module name="ParenPad"/>
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround">
<!-- removed PLUS, MINUS, STAR, DIV -->
<!-- removed GENERIC_START, GENERIC_END -->
<property name="tokens"
value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR,
BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV_ASSIGN,
EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT,
LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY,
LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED,
LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS_ASSIGN, MOD,
MOD_ASSIGN, NOT_EQUAL, PLUS_ASSIGN, QUESTION, RCURLY,
SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR_ASSIGN,
TYPE_EXTENSION_AND, WILDCARD_TYPE"/>
</module>

<module name="NeedBraces"/>


</module>

</module>
51 changes: 51 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
#################################
#################################
## Super Linter GitHub Actions ##
#################################
#################################
name: Lint Code Base

#############################
# Start the job on all push #
#############################
on:
push:
branches-ignore: [master, main]
# Remove the line above to run when pushing to master
pull_request:
branches: [master, main]

###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest

##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# FlowerStore
Rightfully acquiered from @dobosevych \
TO RUN THE STORE PROPERLY UNCOMMENT CODE FOR FILLING THE INVENTORY

## Best-selling flowers. Ever
Loading