Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
vhdl-style
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
misc
vhdl-style
Commits
16261594
Commit
16261594
authored
Mar 06, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust for cx_Freeze.
Move ohwr.py to top-level Add executables in setup.py
parent
cd596c91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
48 deletions
+47
-48
ohwr.py
ohwr.py
+41
-41
setup.py
setup.py
+6
-7
No files found.
vhdllint/
ohwr.py
→
ohwr.py
View file @
16261594
...
...
@@ -3,56 +3,56 @@
# VHDL linter for OHWR coding style
import
sys
import
rulesexec
import
vhdllint.
rulesexec
import
libghdl.thin
import
libghdl.iirs
as
iirs
# Import all rules
from
filerules.check_line_length
import
CheckLineLength
from
filerules.check_no_blank_line_at_eof
import
CheckNoBlankLineAtEOF
from
filerules.check_missing_newline
import
CheckMissingNewline
from
filerules.check_no_tab
import
CheckNoTAB
from
filerules.check_no_trailing_spaces
import
CheckNoTrailingSpaces
from
filerules.check_newline
import
CheckNewline
from
filerules.check_header
import
CheckHeader
from
filerules.check_charset
import
CheckCharSet
from
lexrules.check_keyword_case
import
CheckKeywordCase
from
lexrules.check_comments
import
CheckComments
from
lexrules.check_spaces
import
CheckSpaces
from
syntaxrules.check_attribute_decl
import
CheckAttributeDecl
from
syntaxrules.check_attribute_name
import
CheckAttributeName
from
syntaxrules.check_entity_simple
import
CheckEntitySimple
from
syntaxrules.check_enum_char_lit
import
CheckEnumCharLit
from
syntaxrules.check_guarded_signals
import
CheckGuardedSignals
from
syntaxrules.check_disconnection
import
CheckDisconnection
from
syntaxrules.check_simple_block
import
CheckSimpleBlock
from
syntaxrules.check_group
import
CheckGroup
from
syntaxrules.check_ports_mode
import
CheckPortsMode
from
syntaxrules.check_config_spec
import
CheckConfigSpec
from
syntaxrules.check_file_name
import
CheckFileName
from
syntaxrules.check_one_unit
import
CheckOneUnit
from
syntaxrules.check_generics
import
CheckGenerics
from
syntaxrules.check_ports_name
import
CheckPortsName
from
syntaxrules.check_basic_indent
import
CheckBasicIndent
from
syntaxrules.check_name_decl
import
CheckNameDecl
from
syntaxrules.check_ieee_packages
import
CheckIeeePackages
from
syntaxrules.check_signals_name
import
CheckSignalsName
from
syntaxrules.check_context_use
import
CheckContextUse
from
syntaxrules.check_end_label
import
CheckEndLabel
from
syntaxrules.check_parenthesis
import
CheckParenthesis
from
syntaxrules.check_process_label
import
CheckProcessLabel
from
syntaxrules.check_subprg_is_layout
import
CheckSubprgIsLayout
from
syntaxrules.check_complex_stmt_layout
import
CheckComplexStmtLayout
from
syntaxrules.check_instantiation
import
CheckInstantiation
from
syntaxrules.check_entity_layout
import
CheckEntityLayout
from
syntaxrules.check_context_clauses
import
CheckContextClauses
from
vhdllint.
filerules.check_line_length
import
CheckLineLength
from
vhdllint.
filerules.check_no_blank_line_at_eof
import
CheckNoBlankLineAtEOF
from
vhdllint.
filerules.check_missing_newline
import
CheckMissingNewline
from
vhdllint.
filerules.check_no_tab
import
CheckNoTAB
from
vhdllint.
filerules.check_no_trailing_spaces
import
CheckNoTrailingSpaces
from
vhdllint.
filerules.check_newline
import
CheckNewline
from
vhdllint.
filerules.check_header
import
CheckHeader
from
vhdllint.
filerules.check_charset
import
CheckCharSet
from
vhdllint.
lexrules.check_keyword_case
import
CheckKeywordCase
from
vhdllint.
lexrules.check_comments
import
CheckComments
from
vhdllint.
lexrules.check_spaces
import
CheckSpaces
from
vhdllint.
syntaxrules.check_attribute_decl
import
CheckAttributeDecl
from
vhdllint.
syntaxrules.check_attribute_name
import
CheckAttributeName
from
vhdllint.
syntaxrules.check_entity_simple
import
CheckEntitySimple
from
vhdllint.
syntaxrules.check_enum_char_lit
import
CheckEnumCharLit
from
vhdllint.
syntaxrules.check_guarded_signals
import
CheckGuardedSignals
from
vhdllint.
syntaxrules.check_disconnection
import
CheckDisconnection
from
vhdllint.
syntaxrules.check_simple_block
import
CheckSimpleBlock
from
vhdllint.
syntaxrules.check_group
import
CheckGroup
from
vhdllint.
syntaxrules.check_ports_mode
import
CheckPortsMode
from
vhdllint.
syntaxrules.check_config_spec
import
CheckConfigSpec
from
vhdllint.
syntaxrules.check_file_name
import
CheckFileName
from
vhdllint.
syntaxrules.check_one_unit
import
CheckOneUnit
from
vhdllint.
syntaxrules.check_generics
import
CheckGenerics
from
vhdllint.
syntaxrules.check_ports_name
import
CheckPortsName
from
vhdllint.
syntaxrules.check_basic_indent
import
CheckBasicIndent
from
vhdllint.
syntaxrules.check_name_decl
import
CheckNameDecl
from
vhdllint.
syntaxrules.check_ieee_packages
import
CheckIeeePackages
from
vhdllint.
syntaxrules.check_signals_name
import
CheckSignalsName
from
vhdllint.
syntaxrules.check_context_use
import
CheckContextUse
from
vhdllint.
syntaxrules.check_end_label
import
CheckEndLabel
from
vhdllint.
syntaxrules.check_parenthesis
import
CheckParenthesis
from
vhdllint.
syntaxrules.check_process_label
import
CheckProcessLabel
from
vhdllint.
syntaxrules.check_subprg_is_layout
import
CheckSubprgIsLayout
from
vhdllint.
syntaxrules.check_complex_stmt_layout
import
CheckComplexStmtLayout
from
vhdllint.
syntaxrules.check_instantiation
import
CheckInstantiation
from
vhdllint.
syntaxrules.check_entity_layout
import
CheckEntityLayout
from
vhdllint.
syntaxrules.check_context_clauses
import
CheckContextClauses
# [VHDLVersion] [M] VHDL standard version
# There is no specific rule, the analyzer will catch errors
libghdl
.
thin
.
set_option
(
"--std=93c"
)
# Create rules
rules
=
rulesexec
.
RulesExec
()
rules
=
vhdllint
.
rulesexec
.
RulesExec
()
# List of rules (v1.0):
...
...
@@ -248,4 +248,4 @@ rules.add(CheckConfigSpec())
# [FSMCoding] [R] FSM code style
rulesexec
.
execute_and_report
(
rules
,
sys
.
argv
[
1
:])
vhdllint
.
rulesexec
.
execute_and_report
(
rules
,
sys
.
argv
[
1
:])
setup.py
View file @
16261594
"""A setuptools setup module for vhdllint."""
from
setuptools
import
setup
from
cx_Freeze
import
setup
,
Executable
setup
(
name
=
'vhdllint'
,
...
...
@@ -35,11 +35,10 @@ setup(
],
keywords
=
'checker linter lint vhdl'
,
packages
=
[
"vhdllint"
],
packages
=
[
'vhdllint'
,
'vhdllint.filerules'
,
'vhdllint.lexrules'
,
'vhdllint.semrules'
,
'vhdllint.syntaxrules'
,
'vhdllint.synthrules'
],
install_requires
=
[
'libghdl'
],
entry_points
=
{
'console_scripts'
:
[
'vhdllint-ohwr = vhdllint.ohwr.main'
]
}
executables
=
[
Executable
(
'ohwr.py'
,
targetName
=
'vhdllint-ohwr.exe'
)]
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment